/* ========================================
   style.css - Crystal Yifei Liu Design V2.0
   KidsShoeShop.com · 2026-06-20
   Inspired by: Wirecutter, Stride Rite, Lucie's List
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --deep-navy: #1B2A3B;
    --warm-blush: #E8D5C4;
    --terracotta: #C67B5C;
    --soft-gold: #C9A84C;
    --cream-bg: #FDFBF7;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--cream-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--deep-navy);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; font-family: var(--font-body); font-weight: 600; }
h4 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }

p { margin-bottom: 1.2rem; }

a { color: var(--deep-navy); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: var(--terracotta); }

/* ========== Navigation V2 ========== */
.site-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--deep-navy);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo:hover { color: var(--terracotta); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover {
    color: var(--deep-navy);
    border-bottom-color: var(--terracotta);
}

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--deep-navy); }

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Hero V2 ========== */
.hero-wrapper {
    background: linear-gradient(180deg, var(--white) 0%, var(--cream-bg) 100%);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-light);
}

.hero {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-image {
    flex: 0 0 45%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow-hover);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.hero-text { flex: 1; }

.hero-label {
    display: inline-block;
    background: var(--warm-blush);
    color: var(--deep-navy);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: 28px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--deep-navy);
    color: var(--white);
}

.btn-primary:hover {
    background: #243447;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27,42,59,0.3);
    color: var(--white);
}

.btn-secondary {
    background: var(--warm-blush);
    color: var(--deep-navy);
}

.btn-secondary:hover {
    background: #dcc9b5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200,180,160,0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--deep-navy);
    color: var(--deep-navy);
}

.btn-outline:hover {
    background: var(--deep-navy);
    color: var(--white);
}

/* ========== Trust Strip ========== */
.trust-strip {
    text-align: center;
    padding: 16px 20px;
    background: var(--deep-navy);
    color: var(--warm-blush);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.trust-strip span { margin: 0 20px; }
.trust-strip .star { color: var(--soft-gold); }

/* ========== Section Headers ========== */
.section-header {
    text-align: center;
    padding: 48px 0 32px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Article Cards Grid V2 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 24px 0 48px;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-light);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.article-card .card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.article-card .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .card-image-wrapper img {
    transform: scale(1.04);
}

.article-card .card-category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--white);
    color: var(--deep-navy);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.card-body { padding: 20px 22px 24px; }

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-body h3 a {
    color: var(--deep-navy);
    text-decoration: none;
}

.card-body h3 a:hover { color: var(--terracotta); }

.card-rating {
    color: var(--soft-gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.card-summary {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========== Pagination ========== */
.pagination {
    text-align: center;
    padding: 32px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-light);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    transition: all 0.2s;
}

.pagination button:hover {
    border-color: var(--deep-navy);
    color: var(--deep-navy);
}

.pagination button.active {
    background: var(--deep-navy);
    color: var(--white);
    border-color: var(--deep-navy);
}

.pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ========== Newsletter CTA ========== */
.newsletter-cta {
    background: var(--deep-navy);
    color: var(--white);
    text-align: center;
    padding: 60px 24px;
    border-radius: 16px;
    margin: 40px 0;
}

.newsletter-cta h2 {
    color: var(--white);
    margin-bottom: 8px;
}

.newsletter-cta p {
    color: var(--warm-blush);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--terracotta);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s;
}

.newsletter-form button:hover { background: #b56a4a; }

/* ========== Article Page V2 ========== */
.article-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 50px 24px 60px;
}

.article-container h1 {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.article-meta .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--warm-blush);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--deep-navy);
    font-size: 0.9rem;
}

/* Quick Summary Box */
.quick-summary {
    background: #f4f7fa;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-left: 4px solid var(--deep-navy);
}

.quick-summary .summary-item {
    text-align: center;
}

.summary-item .summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 600;
}

.summary-item .summary-value {
    font-weight: 700;
    color: var(--deep-navy);
    font-size: 1rem;
}

/* How We Tested Bar */
.testing-bar {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 0.9rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 10px;
}

.testing-bar .testing-icon { font-size: 1.3rem; }

/* Table of Contents */
.toc {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0 32px;
}

.toc h3 {
    margin-top: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
}

.toc ol li {
    counter-increment: toc-counter;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.toc ol li::before {
    content: counter(toc-counter);
    display: inline-block;
    width: 26px;
    height: 26px;
    background: var(--deep-navy);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 10px;
}

.toc ol li a {
    color: var(--text-medium);
    text-decoration: none;
}

.toc ol li a:hover { color: var(--terracotta); }

/* Article Content Styles */
.article-content h2 {
    font-size: 1.8rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--warm-blush);
}

.article-content h3 { font-size: 1.25rem; }

/* Comparison Table */
.comparison-table { margin: 2rem 0; overflow-x: auto; }
.comparison-table h3 { margin-bottom: 1rem; }
.comparison-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.comparison-table thead { background-color: var(--deep-navy); color: var(--white); }
.comparison-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}
.comparison-table tbody tr:nth-child(even) { background: #f9fafb; }
.comparison-table tbody tr:hover { background: #f0f4f8; }

.star-rating { color: var(--soft-gold); font-size: 1rem; letter-spacing: 2px; white-space: nowrap; }

/* Rating Badge */
.rating-badge {
    display: inline-block;
    background: var(--deep-navy);
    color: var(--soft-gold);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #f4f7fa 0%, #e8f0fe 100%);
    border: 2px solid var(--deep-navy);
    border-radius: 12px;
    padding: 28px;
    margin: 2.5rem 0;
    text-align: center;
}

.cta-box p { margin-bottom: 12px; font-size: 1.05rem; }

.cta-box .btn-cta {
    display: inline-block;
    background: var(--terracotta);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 8px;
    transition: all 0.2s;
}

.cta-box .btn-cta:hover {
    background: #b56a4a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198,123,92,0.4);
    color: var(--white);
}

/* FAQ Section */
.faq-section {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    margin: 2.5rem 0;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
}

.faq-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--deep-navy);
}

.faq-section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--deep-navy);
    margin: 20px 0 8px;
    font-family: var(--font-body);
}

.faq-section p { font-size: 0.95rem; color: var(--text-medium); }

/* Why Trust Me */
.why-trust-me {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin: 1.5rem 0 2rem;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--deep-navy);
}

.why-trust-me h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.why-trust-me p { font-size: 0.95rem; margin-bottom: 0; }

/* Author Bio */
.author-bio, .author-box {
    background: var(--white);
    border-radius: 12px;
    padding: 28px;
    margin: 3rem 0 2rem;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--terracotta);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--warm-blush);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--deep-navy);
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.author-bio p, .author-box p { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 6px; }
.author-bio strong, .author-box strong { color: var(--deep-navy); font-size: 1.05rem; }

/* ========== Category Page ========== */
.category-header {
    text-align: center;
    padding: 50px 20px 30px;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 32px;
}

.category-header h1 {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.category-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Static Pages (About, Privacy, Contact) ========== */
.page-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 50px 24px 60px;
}

.page-content h1 { font-size: 2.4rem; margin-bottom: 24px; }
.page-content h2 { font-size: 1.6rem; margin: 32px 0 12px; }
.page-content p { margin-bottom: 16px; color: var(--text-medium); }
.page-content ul { margin: 16px 0 16px 24px; }
.page-content li { margin-bottom: 8px; }

/* ========== 404 Page ========== */
.not-found {
    text-align: center;
    padding: 100px 20px;
}

.not-found h1 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.not-found p {
    color: var(--text-medium);
    margin-bottom: 36px;
    font-size: 1.1rem;
}

.not-found-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.not-found-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    width: 240px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    text-align: center;
}

.not-found-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.not-found-card .emoji { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.not-found-card strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.not-found-card small { color: var(--text-light); font-size: 0.85rem; }

/* ========== Footer V2 ========== */
.site-footer {
    background: var(--deep-navy);
    color: var(--warm-blush);
    padding: 56px 24px 28px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-col p { font-size: 0.9rem; line-height: 1.6; color: var(--warm-blush); margin-bottom: 8px; }

.footer-col a {
    display: block;
    color: var(--warm-blush);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-col a:hover { opacity: 1; color: var(--white); }

.footer-disclosure {
    font-size: 0.78rem;
    line-height: 1.6;
    opacity: 0.7;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
    .hero { flex-direction: column; gap: 32px; }
    .hero-image { flex: none; width: 100%; }
    .hero-image img { height: 280px; }
    .hero-text h1 { font-size: 2.2rem; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .quick-summary { grid-template-columns: 1fr; }
    .article-container h1 { font-size: 2rem; }
}

@media (max-width: 640px) {
    .hero-text h1 { font-size: 1.8rem; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .nav-links.nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        border-bottom: 2px solid var(--border-light);
        gap: 16px;
    }
    .nav-toggle { display: block; }
    .hero-wrapper { padding: 32px 0; }
    .hero-image img { height: 200px; }
    .not-found-links { flex-direction: column; align-items: center; }
    .author-bio { flex-direction: column; text-align: center; }
    .article-meta { flex-wrap: wrap; }
}