/* Quiz page specific styles */
@import url('style.css');

/* Quiz section */
.quiz-section {
    padding: 3rem 0;
}
#result-type{
    font-size: 1.5rem;
}
.quiz-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

/* Quiz intro */
.quiz-intro {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.05) 0%, rgba(124, 179, 66, 0.1) 100%);
    border-radius: 12px;
    margin: 1rem;
}

.policy-highlights {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.highlight-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem 0.7rem;
    text-align: center;
    transition: var(--transition);
    max-width: 195px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(139, 195, 74, 0.2);
}

.highlight-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 195, 74, 0.15);
}

.highlight-item i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background: rgba(139, 195, 74, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
}

.highlight-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0rem;
    color: var(--dark-color);
}

.highlight-item p {
    font-size: 1rem;
    margin: 0;
    color: var(--gray-color);
    line-height: 1.6;
}

/* Start Quiz Button */
#start-quiz-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.4);
    position: relative;
    overflow: hidden;
}

#start-quiz-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 195, 74, 0.6);
}

#start-quiz-btn:active {
    transform: translateY(-2px);
}

#start-quiz-btn::after {
    content: "▶";
    margin-left: 10px;
    transition: all 0.3s ease;
}

#start-quiz-btn:hover::after {
    transform: translateX(5px);
}

.quiz-header {
    margin-bottom: 2rem;
}

.quiz-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.quiz-header h1 i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.8rem;
}

.quiz-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--dark-color);
    flex-direction: column;
}

.meta-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(139, 195, 74, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Quiz questions */
.quiz-questions {
    padding: 2rem;
}

.question-progress {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 15px;
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.progress-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s infinite;
}

.question-counter {
    text-align: center;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.question-container {
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.question-text {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-color);
    line-height: 1.4;
    font-weight: 600;
}

.options-container {
    display: grid;
    gap: 1.2rem;
}

.option-btn {
    background-color: white;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.option-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(139, 195, 74, 0.03);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.1);
}

.option-btn:hover::before {
    transform: scaleY(1);
}

.option-btn.selected {
    border-color: var(--primary-color);
    background-color: rgba(139, 195, 74, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.15);
}

.option-btn.selected::before {
    transform: scaleY(1);
}

.option-btn.selected::after {
    content: "✓";
    margin-left: auto;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.8rem;
    background: rgba(139, 195, 74, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.option-btn span {
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(139, 195, 74, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Quiz results */
.quiz-results {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.05) 0%, rgba(124, 179, 66, 0.1) 100%);
    border-radius: 12px;
    margin: 1rem;
}

.result-header {
    margin-bottom: 2rem;
}

.result-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(139, 195, 74, 0.3);
    position: relative;
    overflow: hidden;
}

.result-badge::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.result-emoji {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.result-type {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.result-description {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.result-traits {
    margin-bottom: 2rem;
}

.traits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.trait-badge {
    background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    color: var(--dark-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(139, 195, 74, 0.3);
    transition: all 0.3s ease;
}

.trait-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.2);
}

.science-insights {
    background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(139, 195, 74, 0.2);
}

.science-insights h4 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
}

.science-insights h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.science-insights p {
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.science-insights ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.science-insights li {
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.science-insights li::before {
    content: "🔬";
    position: absolute;
    left: 0;
    top: 0;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.result-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.4);
}

.result-actions .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 195, 74, 0.6);
}

.result-actions .btn-secondary {
    background: white;
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.result-actions .btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Recommended tests */
.recommended-tests {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--light-color) 0%, #e8f5e9 100%);
}

.recommended-tests .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.recommended-tests .section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.recommended-tests .section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.recommended-tests .section-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 1rem auto 0;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.test-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.test-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.test-card-header {
    padding: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.test-card-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.test-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.test-card-header h3 i {
    font-size: 1.8rem;
}

.test-card-body {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.test-card-body p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.test-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.test-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.test-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.8rem 1.8rem;
}

.difficulty-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-easy {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #4caf50;
}

.difficulty-medium {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #ff9800;
}

.difficulty-hard {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #f44336;
}

.test-card-footer .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.test-card-footer .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quiz-intro,
    .quiz-results {
        padding: 2rem 1.5rem;
    }
    
    .quiz-header h1 {
        font-size: 1.7rem;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .option-btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .result-badge {
        width: 120px;
        height: 120px;
    }
    
    .result-emoji {
        font-size: 2.5rem;
    }
    
    .result-type {
        font-size: 1.3rem;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .result-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .quiz-meta {
        flex-direction: column;
        gap: 1rem;
    }
}