/* ========================================
   ANDREA PADOAN - QUIZ FITNESS STYLES
   Complete styling for quiz interface
   ======================================== */

/* ========================================
   BASE & RESET
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%, #000000 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================================
   HEADER
   ======================================== */
.quiz-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid #ff6b35;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-btn {
    background: linear-gradient(45deg, #ff6b35, #ff8533);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
}

.home-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
    text-decoration: none;
    color: white;
}

.quiz-logo {
    color: #ff6b35;
    font-size: 1.2rem;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.progress-container {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ffaa80);
    border-radius: 50px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

/* ========================================
   QUIZ CONTAINER
   ======================================== */
.quiz-container {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    position: relative;
    z-index: 10;
}

.quiz-card {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 50px 40px;
    max-width: 700px;
    width: 100%;
    text-align: center;
    border: 2px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 107, 53, 0.1);
    position: relative;
    overflow: hidden;
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #ffaa80, #ff6b35);
    border-radius: 25px 25px 0 0;
}

/* ========================================
   WELCOME SCREEN
   ======================================== */
.welcome-screen {
    display: block;
}

.welcome-title {
    color: #ff6b35;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #ff6b35, #ffaa80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 35px;
    line-height: 1.5;
    font-weight: 600;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-benefits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.benefit-item i {
    color: #ff6b35;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.benefit-item:hover {
    color: #ff6b35;
    transform: translateY(-2px);
}

.start-quiz-btn {
    background: linear-gradient(135deg, #ff6b35, #ffaa80);
    color: white;
    border: none;
    padding: 22px 50px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.start-quiz-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.start-quiz-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.6);
}

.start-quiz-btn:hover::before {
    left: 100%;
}

.trust-indicator {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.trust-indicator i {
    color: #ff6b35;
    font-size: 16px;
}

/* ========================================
   USER INFO SCREEN
   ======================================== */
.user-info-screen {
    display: none;
}

.info-title {
    color: #ff6b35;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.info-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 35px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #ff6b35;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.continue-btn {
    background: linear-gradient(135deg, #ff6b35, #ffaa80);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.continue-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.5);
}

.continue-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   QUIZ QUESTIONS
   ======================================== */
.quiz-screen {
    display: none;
}

.question-counter {
    color: #ff6b35;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.question-title {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 35px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.answers-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 35px;
}

.answer-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 15px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.answer-option:hover {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.15);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.answer-option.selected {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.25);
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
}

.answer-option.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #ff6b35;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 107, 53, 0.3);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.next-btn {
    background: linear-gradient(135deg, #ff6b35, #ffaa80);
    border: none;
}

.next-btn:hover {
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.5);
}

/* ========================================
   LOADING & SAVING SCREENS
   ======================================== */
.saving-screen, .loading-screen {
    display: none;
}

.saving-title, .loading-title {
    color: #ff6b35;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.saving-spinner, .loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.saving-steps {
    text-align: left;
    max-width: 350px;
    margin: 20px auto;
}

.saving-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.saving-step.completed {
    color: #ff6b35;
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.saving-step.current {
    color: #ffaa80;
    transform: scale(1.05);
}

.saving-step i {
    font-size: 1.1rem;
    width: 18px;
}

/* ========================================
   RESULTS SCREEN
   ======================================== */
.results-screen {
    display: none;
}

.success-badge {
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid #ff6b35;
    color: #ff6b35;
    padding: 12px 25px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.results-title {
    color: #ff6b35;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.results-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 35px;
    font-weight: 500;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.result-category {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
}

.result-category:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.category-name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.score-display {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 15px;
}

.score-star {
    width: 25px;
    height: 25px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.score-star.filled {
    color: #ff6b35;
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
}

.category-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

.results-report {
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 35px;
    text-align: left;
    backdrop-filter: blur(15px);
}

.report-title {
    color: #ff6b35;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.report-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1rem;
    white-space: pre-line;
    font-weight: 500;
}

.results-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.primary-action {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.secondary-action {
    background: linear-gradient(135deg, #ff6b35, #ffaa80);
    color: white;
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
}

.action-btn:hover {
    transform: translateY(-5px) scale(1.05);
    text-decoration: none;
    color: white;
}

.primary-action:hover {
    box-shadow: 0 25px 50px rgba(37, 211, 102, 0.6);
}

.secondary-action:hover {
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.6);
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .quiz-card {
        padding: 35px 25px;
        margin: 15px;
    }

    .welcome-benefits {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .quiz-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .results-actions {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .progress-container {
        width: 150px;
    }

    .start-quiz-btn {
        padding: 18px 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .quiz-header {
        padding: 12px 15px;
    }

    .home-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .quiz-logo {
        font-size: 1.1rem;
    }

    .welcome-benefits {
        gap: 15px;
    }

    .benefit-item {
        font-size: 0.9rem;
    }
}