/* Coffee Quiz Specific Styles */

.quiz-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--light-color);
}

.quiz-header h1 {
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.quiz-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Quiz Form */
.quiz-form {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.quiz-question {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s ease;
}

.quiz-question:hover {
    transform: translateY(-2px);
}

.quiz-question h2 {
    color: var(--dark-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--light-color);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
}

.option-card {
    border: 2px solid var(--light-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card input[type="radio"]:checked + .option-content {
    border-color: var(--primary-color);
    background-color: rgba(139, 69, 19, 0.05);
}

.option-card input[type="radio"]:checked + .option-content:before {
    content: "✓";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.option-content {
    position: relative;
    transition: all 0.3s ease;
}

.option-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.option-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Submit Button */
.quiz-submit {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
}

.submit-btn:hover:not(:disabled) {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Quiz Results */
.quiz-result {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    animation: fadeIn 0.5s ease;
}

.result-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.result-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: var(--spacing-xl);
    text-align: center;
}

.result-header h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.result-header p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

.result-content {
    padding: var(--spacing-xl);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.product-image {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h3 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.product-info p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-color);
}

.shop-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.shop-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
}

.result-actions {
    padding: var(--spacing-lg) var(--spacing-xl);
    background-color: var(--light-color);
    text-align: center;
}

.retake-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 32px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retake-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Loading State */
.loading-articles {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-light);
    font-style