/* ===========================
   CalculateGrowth.com — Styles
   =========================== */

/* --- Result Section --- */
.result-section {
    display: none;
}

.result-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.result-hero h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-hero p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- Difficulty Badges --- */
.difficulty-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.difficulty-achievable { background: #d1fae5; color: #065f46; }
.difficulty-challenging { background: #fef3c7; color: #92400e; }
.difficulty-difficult { background: #fee2e2; color: #991b1b; }
.difficulty-elite { background: #ddd6fe; color: #5b21b6; }

/* --- Section Header --- */
.section-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

/* --- Benchmark Rows --- */
.benchmark-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
}

.benchmark-row:last-child { border-bottom: none; }

.benchmark-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.benchmark-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.benchmark-value.highlight {
    color: var(--primary);
    font-size: 1.125rem;
}

.progress-bar-wrapper { margin-top: 1rem; }
.progress { height: 8px; border-radius: 4px; background: var(--bg-subtle); }
.progress-bar { background: var(--primary); border-radius: 4px; }

/* --- Chart --- */
.chart-wrapper {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* --- Year Breakdown --- */
.year-breakdown {
    background: var(--bg-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.year-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--primary);
}

.year-item:last-child { margin-bottom: 0; }
.year-number { font-weight: 700; color: var(--text-primary); }
.year-increase { color: var(--text-secondary); font-size: 0.875rem; margin-left: 0.5rem; }
.year-total { font-weight: 700; font-size: 1.125rem; color: var(--text-primary); }

/* --- Recommendations --- */
.recommendation-list { list-style: none; padding: 0; }

.recommendation-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.recommendation-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* --- Sources --- */
.sources-section {
    background: var(--bg-subtle);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.source-link {
    display: block;
    padding: 0.875rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.source-link:hover {
    border-color: var(--primary);
    background: #fafbff;
    transform: translateX(4px);
}

.source-category {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.methodology {
    background: white;
    border-left: 3px solid var(--primary);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 2rem;
}

.methodology h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.methodology p { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 0.5rem; }

/* --- Benchmarks Preview --- */
.benchmarks-preview { margin-bottom: 3rem; }

.benchmark-preview-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
}

.benchmark-preview-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.benchmark-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
}

.benchmark-stat .label { color: var(--text-secondary); }
.benchmark-stat .value { font-weight: 700; color: var(--primary); }

/* --- SEO Content --- */
.seo-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.seo-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.seo-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.seo-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.seo-content ol, .seo-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.seo-content li { margin-bottom: 0.5rem; }

.formula-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    font-size: 1.125rem;
    text-align: center;
}

/* --- Benchmark Tables --- */
.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9375rem;
}

.benchmark-table thead th {
    background: var(--bg-subtle);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
}

.benchmark-table tbody td {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.benchmark-table tbody tr:hover { background: var(--bg-subtle); }

/* --- FAQ --- */
.faq-section { margin-top: 1rem; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    background: white;
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
    color: var(--text-primary);
}

.faq-item p { margin-bottom: 0; font-size: 0.9375rem; }

/* --- Entity Attribute Pairs --- */
.entity-pairs {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1rem;
}
.entity-pairs dt {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.entity-pairs dd {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* --- Author Section --- */
.author-section {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 2rem auto 3rem;
    max-width: 800px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.author-info { flex: 1; }

.author-info strong {
    font-size: 1.0625rem;
    color: var(--text-primary);
    display: block;
}

.author-info .author-credentials {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.125rem;
}

.author-info p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
    line-height: 1.6;
}

.author-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.author-links a {
    font-size: 0.8125rem;
    color: var(--primary);
    text-decoration: none;
}

.author-links a:hover { text-decoration: underline; }

/* --- Footer --- */
.site-footer {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.footer-nav { display: flex; gap: 1.5rem; }

.footer-nav a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--primary); }

.footer-social { display: flex; gap: 1rem; }

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: white;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-copyright { font-size: 0.8125rem; color: var(--text-secondary); }
.footer-badge { font-size: 0.8125rem; color: var(--text-secondary); }

/* --- TOC --- */
.toc-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem auto 2rem;
    max-width: 800px;
}

.toc-box strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.toc-box ol {
    margin: 0;
    padding-left: 1.25rem;
    list-style: decimal;
}

.toc-box li {
    margin-bottom: 0.375rem;
}

.toc-box a {
    font-size: 0.9375rem;
    color: var(--primary);
    text-decoration: none;
}

.toc-box a:hover { text-decoration: underline; }

/* --- Summary Box --- */
.summary-box {
    background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 100%);
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 0 auto 2rem;
    max-width: 800px;
}

.summary-box strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.summary-box ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.summary-box li { margin-bottom: 0.25rem; }

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    background: var(--bg-subtle);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.cta-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cta-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* --- Content Images --- */
.content-figure {
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
}

.content-figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.content-figure figcaption {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

/* --- Navbar --- */
.navbar-v3 {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.navbar-v3.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-v3 .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.navbar-v3 .brand-premium {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.navbar-v3 .brand-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.navbar-v3 .icon-bar {
    width: 18px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
}

.navbar-v3 .brand-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary);
}

.navbar-v3 .brand-subtitle {
    font-size: .875rem;
    color: var(--text-secondary);
}

.navbar-v3 .nav-menu {
    display: flex;
    gap: .25rem;
}

.navbar-v3 .menu-item {
    padding: .5rem .875rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all .2s;
}

.navbar-v3 .menu-item:hover {
    color: var(--primary);
    background: var(--bg-subtle);
}

.navbar-v3 .menu-item.active {
    color: var(--primary);
    background: #eef2ff;
    font-weight: 600;
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.375rem 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
    display: block;
    padding: 0.625rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--primary); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .page-header h1 { font-size: 1.875rem; }
    .result-hero h2 { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .benchmark-table { font-size: 0.8125rem; }
    .benchmark-table thead th,
    .benchmark-table tbody td { padding: 0.5rem 0.625rem; }
    .nav-menu { display: none; }
    .brand-subtitle { display: none; }
    .hamburger { display: flex; }
    .author-section { flex-direction: column; align-items: center; text-align: center; }
    .author-links { justify-content: center; }
}
