/* MMA Demo Frontend Styles */
/* Parent selector to prevent style conflicts */

/* User Welcome Shortcode */
.mma-demo-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mma-demo-welcome .mma-demo-welcome-message {
    font-size: 16px;
    font-weight: 500;
    display: block;
}

.mma-demo-welcome .mma-demo-welcome-guest {
    font-size: 16px;
    font-weight: 500;
    display: block;
    opacity: 0.9;
}

/* Current Date Shortcode */
.mma-demo-date {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #007cba;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mma-demo-date .mma-demo-date-value {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    display: block;
}

/* Error Display */
.mma-demo-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mma-demo-welcome,
    .mma-demo-date {
        margin: 10px 0;
        padding: 12px 15px;
    }
    
    .mma-demo-welcome .mma-demo-welcome-message,
    .mma-demo-welcome .mma-demo-welcome-guest,
    .mma-demo-date .mma-demo-date-value {
        font-size: 15px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mma-demo-date {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .mma-demo-date .mma-demo-date-value {
        color: #e2e8f0;
    }
}

/* Animation for shortcode appearance */
.mma-demo-welcome,
.mma-demo-date {
    animation: mmaFadeIn 0.5s ease-in-out;
}

@keyframes mmaFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .mma-demo-welcome,
    .mma-demo-date {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}