/* ============================================
   QUIZ.CSS - Style dla quizu witalności
   (Brandbook EagleGym)
   ============================================ */

/* Quiz Section */
.quiz-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px 0;
    background: var(--color-sand);
}

/* Quiz Container */
.quiz-container {
    width: 100%;
    max-width: 700px;
    background: white;
    border: 1px solid rgba(45, 90, 61, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.quiz-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-forest);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(45, 90, 61, 0.1);
    margin-bottom: 30px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-forest);
    width: 0%;
    transition: width 0.4s ease;
}

/* Question Counter */
.question-counter {
    font-size: 0.8rem;
    color: var(--color-forest);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

/* Question Text */
.question-text {
    font-size: 1.4rem;
    font-family: var(--font-head);
    color: var(--color-charcoal);
    margin-bottom: 30px;
    line-height: 1.3;
}

/* Options Grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Option Button */
.option-btn {
    background: var(--color-sand);
    border: 1px solid rgba(45, 90, 61, 0.1);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.option-btn:hover {
    background: rgba(45, 90, 61, 0.05);
    border-color: var(--color-forest);
    transform: translateX(5px);
}

.option-btn.selected {
    background: rgba(45, 90, 61, 0.1);
    border-color: var(--color-forest);
}

/* Option Marker */
.option-marker {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-charcoal-soft);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--color-charcoal-soft);
}

.option-btn:hover .option-marker {
    border-color: var(--color-forest);
    color: var(--color-forest);
}

.option-btn.selected .option-marker {
    background: var(--color-forest);
    border-color: var(--color-forest);
    color: white;
}

/* Option Text */
.option-text {
    color: var(--color-charcoal-soft);
    font-size: 1rem;
    line-height: 1.5;
}

.option-text strong {
    color: var(--color-charcoal);
    display: block;
    margin-bottom: 4px;
}

/* Result Styles */
.result-view {
    text-align: center;
    display: none;
    animation: quizFadeIn 0.8s ease;
}

.result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
}

/* Result Colors */
.result-green .result-icon {
    background: rgba(45, 90, 61, 0.1);
    color: var(--color-forest);
    border: 2px solid var(--color-forest);
}

.result-yellow .result-icon {
    background: rgba(212, 168, 75, 0.1);
    color: var(--color-warning);
    border: 2px solid var(--color-warning);
}

.result-red .result-icon {
    background: rgba(196, 92, 74, 0.1);
    color: var(--color-error);
    border: 2px solid var(--color-error);
}

.result-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--color-charcoal);
}

.result-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--color-charcoal-soft);
}

.result-box {
    background: var(--color-sand);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    border-left: 4px solid var(--color-forest);
    text-align: left;
}

@keyframes quizFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loader / Analyzing */
.analyzing {
    display: none;
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(45, 90, 61, 0.1);
    border-top-color: var(--color-forest);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-container {
        padding: 25px 20px;
        width: 95%;
    }

    .question-text {
        font-size: 1.2rem;
    }
}
