/* Universal Results Page Enhancements - Reusable across all quizzes */

/* Featured Products Section */
.featured-products {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5em;
    color: var(--secondary-color, #8b4513);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color, #d4af37);
    padding-bottom: 10px;
}

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

.product-card {
    background: linear-gradient(135deg, var(--highlight-color, #ffd700) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 2px solid var(--primary-color, #d4af37);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-title {
    font-weight: bold;
    color: var(--secondary-color, #8b4513);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.product-description {
    font-size: 0.9em;
    margin-bottom: 15px;
    color: var(--text-color, #5d4037);
    line-height: 1.4;
}

.product-button {
    background: var(--primary-color, #d4af37);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
    font-size: 0.95em;
}

.product-button:hover {
    background: var(--accent-color, #cd853f);
    color: white;
    text-decoration: none;
}

/* Related Content Section */
.related-content {
    margin-bottom: 40px;
}

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

.content-item {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--accent-color, #cd853f);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.content-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.content-link {
    color: var(--secondary-color, #8b4513);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.content-link:hover {
    color: var(--primary-color, #d4af37);
    text-decoration: underline;
}

.content-description {
    font-size: 0.9em;
    color: var(--text-color, #5d4037);
    line-height: 1.4;
}

/* Responsive design for both sections */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card,
    .content-item {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    
    .product-card,
    .content-item {
        padding: 12px;
    }
    
    .product-title,
    .content-link {
        font-size: 1em;
    }
}