/*
 * Final Professional Design
 * Fonts: Lora (Serif), Inter (Sans-Serif)
 * Aesthetic: Sophisticated, clean, with a subtle gradient background.
 */

/* --- CSS Variables & Base Styles --- */
:root {
    --font-serif: 'Lora', serif;
    --font-sans: 'Inter', sans-serif;
    --accent-color: #007aff;
    --accent-hover: #0056b3;
    --text-primary: #1c1c1e;
    --text-secondary: #636366;
    --border-color: #e5e5e5;
    --white: #ffffff;
    --bg-soft: #f9f9f9;
    --green: #34c759;
    --red: #ff3b30;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    zoom: 0.80;
}

.container {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

main {
    padding: 2rem 0 4rem 0;
    animation: fadeIn 0.5s ease-out;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
}

hr {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 2.5rem 0;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1.25rem;
}
nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; }
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-link:hover { color: var(--accent-color); }

/* --- Page Headers (for Intro & Static Pages) --- */
.intro-box, .page-header {
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
}
.intro-box h1, .page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-primary);
}
.intro-box .intro-text, .page-header .intro-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    padding: 0.8rem 2rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-start {
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 1.1rem;
    padding: 1rem 3rem;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.2);
}
.btn-start:hover {
    background-color: var(--accent-hover);
}

/* --- Test Interface & Result Card --- */
.test-container, .result-card, .content-box {
    margin: 30px;
}
.test-container {
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.test-container.fade-out { opacity: 0; transform: scale(0.99); }
.progress-bar { height: 6px; background-color: var(--accent-color); transition: width 0.3s ease-in-out; }
.question-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); }
.question-header h1 { font-family: var(--font-sans); font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.question-box { padding: 3rem 1.5rem; text-align: center; }
.question-text { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; margin-bottom: 3rem; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.answer-form { display: flex; justify-content: center; gap: 1rem; }
.btn-yes, .btn-no { color: var(--white); min-width: 140px; }
.btn-yes { background-color: var(--green); }
.btn-yes:hover { background-color: #249a42; box-shadow: 0 4px 15px rgba(52, 199, 89, 0.3); }
.btn-no { background-color: var(--red); }
.btn-no:hover { background-color: #ff281e; box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3); }

/* --- Result Display --- */
.result-container { padding: 2rem 0; }
.result-card { padding: 2.5rem; text-align: center; }
.result-title { font-family: var(--font-sans); font-size: 1.1rem; color: var(--text-secondary); font-weight: 500; }
.result-score { font-family: var(--font-serif); font-size: 6rem; font-weight: 700; margin: 1rem 0; color: var(--accent-color); }
.result-interpretation { font-size: 1.75rem; font-weight: 600; margin-bottom: 0.5rem; }
.result-comment { color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 350px; margin-left: auto; margin-right: auto; }
.result-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-retake { background-color: var(--accent-color); color: var(--white); }
.btn-retake:hover { background-color: var(--accent-hover); }
.btn-share { background-color: transparent; color: var(--text-primary); border: 1px solid var(--border-color); display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-share:hover { background-color: var(--bg-soft); border-color: #cfcfcf; }

/* --- Result Breakdown --- */
.result-details { margin-top: 2.5rem; border-top: 1px solid var(--border-color); padding-top: 1.5rem; text-align: left; }
.result-details h3 { font-size: 1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 1.5rem; text-align: center; }
.detail-row { margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.detail-label { font-weight: 500; flex-basis: 140px; flex-shrink: 0; font-size: 0.9rem; }
.detail-bar-container { flex-grow: 1; height: 8px; background-color: #e9ecef; border-radius: 4px; overflow: hidden; }
.detail-bar { height: 100%; background-color: var(--accent-color); border-radius: 4px; transition: width 0.5s ease-out; }

/* --- Static Content (Homepage & Pages) --- */
.content-section { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.content-block h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.content-block p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.text-link { color: var(--accent-color); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.content-box { /* Container for about/scores pages */ padding: 3rem; }
.content-box h2 { font-size: 2rem; margin-top: 2rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.content-box h2:first-of-type { margin-top: 0; }
.content-box p { font-size: 1.1rem; line-height: 1.8; color: var(--text-secondary); }
.faq-item { margin: 1.5rem 0; }
.faq-item h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.score-section { margin: 2rem 0; padding-bottom: 2rem; border-bottom: 1px solid #f0f0f0; }
.score-section:last-of-type { border-bottom: none; }

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    width: 100%;
    font-size: 0.9rem;
}
.hidden { display: none; }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .intro-box h1, .page-header h1 { font-size: 2.5rem; }
    .question-text { font-size: 1.75rem; }
    .content-section { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    nav.container { flex-direction: column; gap: 1rem; }
    .intro-box h1, .page-header h1 { font-size: 2rem; }
    .result-score { font-size: 5rem; }
    .content-box { padding: 1.5rem; }
}




/* --- Add to the bottom of style.css --- */

/* --- Enhanced Footer Styles --- */
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}
.footer-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: var(--accent-color);
}
p.copyright-text {
    margin: 0;
    font-size: 0.85rem;
}





















/* --- Add this entire block to the bottom of your style.css file --- */

/* 1. STYLES FOR STANDARD CONTENT LISTS
/* ========================================================================== */

/* This styles the simple bullet points in the first few sections */
.content-block ul {
    list-style: none;
    padding-left: 0;
}

.content-block ul li {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 28px;
    position: relative;
    margin-bottom: 0.75rem;
}

.content-block ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    font-weight: 600;
    color: var(--accent-color);
}


/* 2. DETAILED INFO SECTION (STATS, HISTORY, PRIVACY)
/* ========================================================================== */

.detailed-info-section {
    background-color: var(--bg-soft);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.info-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Specific card content styles */
.stat-list { display: flex; justify-content: space-around; text-align: center; gap: 1rem; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 600; color: var(--accent-color); }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); }

.timeline-item { position: relative; padding-left: 20px; margin-bottom: 1rem; }
.timeline-item::before { content: ''; position: absolute; left: 4px; top: 4px; width: 8px; height: 8px; background: var(--accent-color); border-radius: 50%; }
.timeline-item:not(:last-child)::after { content: ''; position: absolute; left: 7px; top: 16px; bottom: -1rem; width: 2px; background: var(--border-color); }
.timeline-year { font-weight: 600; }
.timeline-desc { font-size: 0.9rem; color: var(--text-secondary); }

.privacy-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; color: var(--text-secondary); }
.privacy-icon { font-weight: 600; color: var(--green); }

.trend-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); }
.trend-item:last-child { border-bottom: none; }
.trend-region { font-weight: 500; }
.trend-avg { color: var(--text-secondary); }


/* 3. COMPREHENSIVE GUIDE SECTION
/* ========================================================================== */

.comprehensive-guide,
.myths-section {
    padding: 4rem 0;
}

.guide-header,
.myths-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem auto;
}

.guide-header h2,
.myths-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.guide-header p,
.myths-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.guide-section {
    margin-bottom: 3rem;
}

.guide-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.score-range { display: flex; align-items: flex-start; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border-color); }
.score-range:last-child { border-bottom: none; }
.score-badge { font-family: var(--font-serif); font-weight: 600; padding: 0.5rem 1rem; border-radius: 8px; color: var(--white); min-width: 80px; text-align: center; }
.score-badge.high { background-color: #34c759; }
.score-badge.high-med { background-color: #5856d6; }
.score-badge.medium { background-color: #ff9500; }
.score-badge.med-low { background-color: #ff3b30; }
.score-badge.low { background-color: #c41c11; }

.score-details h4 { font-size: 1.2rem; margin: 0 0 0.5rem 0; }
.score-details p { margin: 0 0 1rem 0; color: var(--text-secondary); line-height: 1.7; }
.score-characteristics { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.characteristic { background-color: var(--bg-soft); color: var(--text-secondary); font-size: 0.85rem; padding: 0.25rem 0.75rem; border-radius: 12px; border: 1px solid var(--border-color); }

.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.category-card { border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 12px; }
.category-card h4 { font-size: 1.1rem; margin: 0 0 0.5rem 0; }
.category-card p { font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); margin: 0; }


/* 4. MYTHS VS FACTS SECTION
/* ========================================================================== */

.myths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.myth-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.myth-label, .fact-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1rem;
}

.myth-label {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--red);
}

.fact-label {
    background-color: rgba(52, 199, 89, 0.1);
    color: var(--green);
}

.myth-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
}

.myth-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

.myth-card .fact-label {
    margin-top: 1.5rem;
}

/* 5. RESPONSIVE ADJUSTMENTS FOR NEW SECTIONS
/* ========================================================================== */
@media (max-width: 768px) {
    .score-range {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .myths-grid {
        grid-template-columns: 1fr;
    }
    .guide-header h2, .myths-header h2 {
        font-size: 1.75rem;
    }
}


.checklist {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}
.checklist li {
    color: var(--text-secondary);
    padding-left: 28px;
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    font-weight: 600;
    color: var(--accent-color);
}
.checklist li strong {
    color: var(--text-primary);
}

.score-overview, .comparison-data, .next-steps {
    margin: 3rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.next-steps {
    border-bottom: none;
}
.content-box section h2 {
    font-size: 1.75rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: none;
}
.content-box section > p {
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.scoring-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.scoring-item {
    background-color: var(--bg-soft);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.scoring-item h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}
.scoring-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Detailed Score Section Cards */
.score-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 2rem;
    padding: 2rem;
    border-top: 4px solid;
}
.score-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.score-range-header h2 {
    font-size: 1.75rem;
    margin: 0;
    text-align: left;
}

/* Score Badges */
.score-badge {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    color: var(--white);
}
.score-badge.badge-green { background-color: #34c759; }
.score-badge.badge-blue { background-color: #007aff; }
.score-badge.badge-purple { background-color: #5856d6; }
.score-badge.badge-orange { background-color: #ff9500; }
.score-badge.badge-red { background-color: #ff3b30; }
.score-badge.badge-dark-red { background-color: #c41c11; }

/* Score Section Colors */
#score-100-95 { border-top-color: #34c759; }
#score-94-85 { border-top-color: #007aff; }
#score-84-70 { border-top-color: #5856d6; }
#score-69-45 { border-top-color: #ff9500; }
#score-44-25 { border-top-color: #ff3b30; }
#score-24-0 { border-top-color: #c41c11; }

.score-details h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Grid for Stats and Next Steps */
.stats-grid, .next-steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.stat-category, .step-item {
    background: var(--bg-soft);
    padding: 1.5rem;
    border-radius: 12px;
}
.stat-category h3, .step-item h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}
.step-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* Final CTA Section */
.cta-section {
    text-align: center;
    margin-top: 3rem;
}

/* Responsive adjustments for Scores page */
@media (max-width: 768px) {
    .stats-grid, .next-steps-grid {
        grid-template-columns: 1fr;
    }
    .score-range-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}