/* Coffee Archetype Quiz Styles */

.quiz-container {
    max-width: 800px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 50px;
}

.quiz-header h1 {
    color: #BC6534;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.quiz-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #BC6534, #d4844f);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Question Card */
.question-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-card h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.question-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-top: -15px;
    margin-bottom: 20px;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-item {
    position: relative;
}

.option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-label {
    display: block;
    padding: 20px 25px;
    background: #f7efd6;
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    color: #333;
}

.option-label:hover {
    background: #f0e5c8;
    border-color: #BC6534;
    transform: translateX(5px);
}

.option-item input[type="radio"]:checked + .option-label {
    background: #BC6534;
    color: #ffffff;
    border-color: #BC6534;
    font-weight: 600;
}

/* Navigation Buttons */
.quiz-navigation {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-quiz {
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quiz-primary {
    background: #BC6534;
    color: #ffffff;
}

.btn-quiz-primary:hover {
    background: #a85529;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(188, 101, 52, 0.3);
}

.btn-quiz-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-quiz-secondary:hover {
    background: #e0e0e0;
}

.btn-quiz:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Section */
.results-container {
    display: none;
    animation: fadeIn 0.5s ease;
}

.results-container.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Archetype Result Cards */
.result-hero {
    text-align: center;
    padding: 60px 40px;
    border-radius: 25px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.result-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
}

.result-hero > * {
    position: relative;
    z-index: 1;
}

/* Archetype Color Schemes */
.result-hero.sage {
    background: linear-gradient(135deg, #6a4c93 0%, #8b6bb7 100%);
    color: #ffffff;
}

.result-hero.warrior {
    background: linear-gradient(135deg, #d64545 0%, #e76f51 100%);
    color: #ffffff;
}

.result-hero.healer {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    color: #ffffff;
}

.result-hero.creator {
    background: linear-gradient(135deg, #f4a261 0%, #e9c46a 100%);
    color: #333;
}

.result-hero.explorer {
    background: linear-gradient(135deg, #219ebc 0%, #8ecae6 100%);
    color: #ffffff;
}

.result-hero.grounded {
    background: linear-gradient(135deg, #6d4c41 0%, #8d6e63 100%);
    color: #ffffff;
}

/* Archetype Image */
.archetype-image-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.archetype-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 50%;
    background: #fdf9f0;
    padding: 20px;
    border: 3px solid #bb6334;
    box-shadow: 0 4px 15px rgba(187, 99, 52, 0.3);
}

.result-symbol {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.result-headline {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 25px;
    opacity: 0.95;
}

.result-barnum {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Recommendations Section */
.recommendations {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.recommendations h3 {
    color: #BC6534;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.rec-section {
    margin-bottom: 30px;
}

.rec-section h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.rec-section ul {
    list-style: none;
    padding: 0;
}

.rec-section li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.rec-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #BC6534;
    font-weight: bold;
    font-size: 1.2rem;
}

.brew-details {
    background: #f7efd6;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
}

.brew-details strong {
    color: #BC6534;
}

/* Disclaimers */
.disclaimers {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.disclaimers h3 {
    color: #856404;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.disclaimers h3::before {
    content: '⚠️';
    font-size: 1.5rem;
}

.disclaimers ul {
    list-style: none;
    padding: 0;
}

.disclaimers li {
    padding: 8px 0;
    color: #856404;
    line-height: 1.6;
    padding-left: 25px;
    position: relative;
}

.disclaimers li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.disclaimer-conditional {
    background: #f8d7da;
    border: 2px solid #dc3545;
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
}

.disclaimer-conditional h4 {
    color: #721c24;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.disclaimer-conditional li {
    color: #721c24;
}

/* CTA Section */
.result-cta {
    text-align: center;
    margin: 40px 0;
}

.btn-amazon {
    display: inline-block;
    padding: 20px 50px;
    background: linear-gradient(135deg, #BC6534, #d4844f);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(188, 101, 52, 0.3);
}

.btn-amazon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(188, 101, 52, 0.4);
}

/* Share Buttons */
.share-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.share-section h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-share {
    padding: 12px 25px;
    border: 2px solid #BC6534;
    background: #ffffff;
    color: #BC6534;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-share:hover {
    background: #BC6534;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-share.copied {
    background: #2d6a4f;
    border-color: #2d6a4f;
    color: #ffffff;
}

/* Retake Button */
.retake-section {
    text-align: center;
    margin-top: 40px;
}

.btn-retake {
    padding: 15px 40px;
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-retake:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-container {
        margin: 120px auto 40px;
        padding: 0 15px;
    }

    .quiz-header h1 {
        font-size: 2rem;
    }

    .quiz-header p {
        font-size: 1rem;
    }

    .question-card {
        padding: 25px;
    }

    .question-card h2 {
        font-size: 1.2rem;
    }

    .option-label {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .btn-quiz {
        width: 100%;
        padding: 15px 30px;
    }

    .result-hero {
        padding: 40px 25px;
    }

    .archetype-image {
        width: 130px;
        height: 130px;
        padding: 16px;
    }

    .result-title {
        font-size: 2.2rem;
    }

    .result-headline {
        font-size: 1.1rem;
    }

    .result-barnum {
        font-size: 1rem;
    }

    .recommendations {
        padding: 25px;
    }

    .recommendations h3 {
        font-size: 1.5rem;
    }

    .btn-amazon {
        padding: 18px 40px;
        font-size: 1.1rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .btn-share {
        width: 100%;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    .quiz-container {
        margin: 140px auto 30px;
        padding: 0 10px;
    }

    .quiz-header h1 {
        font-size: 1.8rem;
    }

    .quiz-header p {
        font-size: 0.95rem;
    }

    .question-card {
        padding: 20px;
    }

    .option-label {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .result-hero {
        padding: 30px 20px;
    }

    .archetype-image {
        width: 110px;
        height: 110px;
        padding: 14px;
    }

    .result-title {
        font-size: 1.8rem;
    }

    .result-headline {
        font-size: 1rem;
    }

    .result-barnum {
        font-size: 0.95rem;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Hidden State */
.hidden {
    display: none !important;
}

