/**
 * Quiz Intro Screen Styling
 * Professional typography and responsive layout for quiz introduction screens
 */

/* Hidden quiz content (shown after intro is dismissed) */
.ssp-quiz-hidden {
    display: none !important;
}

/* Base intro container */
.ssp-quiz-intro {
    max-width: 700px;
    margin: 40px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ssp-quiz-intro-inner {
    padding: 48px 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Card style (default) */
.ssp-quiz-intro-style-card .ssp-quiz-intro-inner {
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Banner style with gradient */
.ssp-quiz-intro-style-banner .ssp-quiz-intro-inner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.ssp-quiz-intro-style-banner .ssp-quiz-intro-title,
.ssp-quiz-intro-style-banner .ssp-quiz-intro-description,
.ssp-quiz-intro-style-banner .ssp-quiz-intro-meta,
.ssp-quiz-intro-style-banner .ssp-quiz-intro-instructions-title,
.ssp-quiz-intro-style-banner .ssp-quiz-intro-instructions-content {
    color: #ffffff;
}

.ssp-quiz-intro-style-banner .ssp-quiz-intro-instructions {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

/* Minimal style */
.ssp-quiz-intro-style-minimal .ssp-quiz-intro-inner {
    box-shadow: none;
    border: 1px solid #e5e7eb;
    padding: 32px;
}

/* Typography */
.ssp-quiz-intro-title {
    font-size: 32px;
    font-size: clamp(24px, 5vw, 32px); /* Responsive size */
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.ssp-quiz-intro-description {
    font-size: 18px;
    font-size: clamp(16px, 3vw, 18px);
    line-height: 1.6;
    margin: 0 0 32px 0;
    color: #4b5563;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* Meta information */
.ssp-quiz-intro-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0 0 32px 0;
    flex-wrap: wrap;
}

.ssp-quiz-intro-time,
.ssp-quiz-intro-questions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
}

.ssp-quiz-intro-time svg,
.ssp-quiz-intro-questions svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.ssp-quiz-intro-style-banner .ssp-quiz-intro-time,
.ssp-quiz-intro-style-banner .ssp-quiz-intro-questions {
    color: rgba(255, 255, 255, 0.9);
}

/* Instructions section */
.ssp-quiz-intro-instructions {
    text-align: left;
    margin: 0 0 40px 0;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.ssp-quiz-intro-instructions-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1f2937;
}

.ssp-quiz-intro-instructions-content {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

.ssp-quiz-intro-instructions-content p {
    margin: 0 0 8px 0;
}

.ssp-quiz-intro-instructions-content p:last-child {
    margin-bottom: 0;
}

/* Disclaimer section */
.ssp-quiz-intro-disclaimer {
    text-align: left;
    margin: 0 0 32px 0;
    padding: 16px 20px;
    background: #fef3c7;
    border-radius: 8px;
    border: 1px solid #fbbf24;
}

.ssp-quiz-disclaimer-text {
    font-size: 13px;
    line-height: 1.6;
    color: #78350f;
    margin: 0;
}

.ssp-quiz-disclaimer-text strong {
    font-weight: 600;
    color: #92400e;
}

.ssp-quiz-intro-style-banner .ssp-quiz-intro-disclaimer {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ssp-quiz-intro-style-banner .ssp-quiz-disclaimer-text,
.ssp-quiz-intro-style-banner .ssp-quiz-disclaimer-text strong {
    color: rgba(255, 255, 255, 0.95);
}

/* Start button */
.ssp-quiz-intro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
    font-family: inherit;
}

.ssp-quiz-intro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.ssp-quiz-intro-btn:active {
    transform: translateY(0);
}

.ssp-quiz-intro-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.ssp-quiz-intro-btn:hover svg {
    transform: translateX(4px);
}

/* Banner style button variation */
.ssp-quiz-intro-style-banner .ssp-quiz-intro-btn {
    background: #ffffff;
    color: #667eea;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.ssp-quiz-intro-style-banner .ssp-quiz-intro-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .ssp-quiz-intro {
        margin: 24px auto;
        padding: 0 16px;
    }

    .ssp-quiz-intro-inner {
        padding: 32px 24px;
    }

    .ssp-quiz-intro-meta {
        gap: 16px;
    }

    .ssp-quiz-intro-instructions {
        padding: 20px;
    }

    .ssp-quiz-intro-btn {
        padding: 14px 36px;
        font-size: 16px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ssp-quiz-intro-inner {
        padding: 24px 20px;
    }

    .ssp-quiz-intro-meta {
        flex-direction: column;
        gap: 12px;
    }
}

/* Smooth transition animations */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

.ssp-quiz-intro.ssp-fading-out {
    animation: fadeOut 0.3s ease forwards;
}

.sportpersonalities-custom-quiz-wrapper.ssp-fading-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Accessibility improvements */
.ssp-quiz-intro-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 3px;
}

.ssp-quiz-intro-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Print styles */
@media print {
    .ssp-quiz-intro {
        break-inside: avoid;
    }

    .ssp-quiz-intro-btn {
        display: none;
    }
}
