/* Baby-Friendly Color Palette */
:root {
    /* Primary Colors - Soft and Nurturing */
    --primary-coral: #FF8A80;        /* Soft coral pink - main accent */
    --primary-sage: #81C784;         /* Gentle sage green - secondary */
    --primary-lavender: #B39DDB;     /* Soft lavender - tertiary */
    --primary-cream: #FFF8E1;        /* Warm cream - backgrounds */
    
    /* Neutral Colors - High Contrast for Readability */
    --text-dark: #2E2E2E;           /* Almost black for text */
    --text-medium: #5D5D5D;         /* Medium gray for secondary text */
    --text-light: #8A8A8A;          /* Light gray for meta text */
    --background-white: #FFFFFF;     /* Pure white */
    --background-light: #F8F6F0;     /* Very light cream */
    
    /* Accent Colors */
    --accent-blue: #64B5F6;         /* Soft baby blue */
    --accent-peach: #FFCC80;        /* Warm peach */
    --accent-mint: #A5D6A7;         /* Soft mint green */
    
    /* Semantic Colors */
    --success: #66BB6A;             /* Success green */
    --warning: #FFA726;             /* Warning orange */
    --error: #EF5350;               /* Error red */
    
    /* Shadows and Borders */
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.15);
    --border-light: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-coral);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-sage);
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header and Navigation */
.header {
    background-color: var(--background-white);
    box-shadow: 0 2px 10px var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-coral);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-icon {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-coral);
    border-bottom-color: var(--primary-coral);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: none;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-coral) 0%, var(--primary-sage) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-coral);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-dark);
}

.cta-button:hover {
    background-color: var(--primary-cream);
    color: var(--primary-sage);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-dark);
}

/* Sections */
.featured-reviews,
.categories,
.reviews-section,
.buying-guide,
.safety-info,
.care-essentials,
.feeding-stages,
.toy-safety {
    padding: 4rem 0;
}

.featured-reviews {
    background-color: var(--background-light);
}

.categories {
    background-color: var(--background-white);
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-lavender) 0%, var(--accent-blue) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Category Filters */
.category-filters {
    background-color: white;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tab {
    background: none;
    border: 2px solid var(--primary-coral);
    color: var(--primary-coral);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background-color: var(--primary-coral);
    color: white;
}

/* Grids */
.review-grid,
.category-grid,
.safety-grid,
.stages-grid,
.essentials-grid,
.related-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.review-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.safety-grid,
.stages-grid,
.essentials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

/* Cards */
.review-card,
.category-card,
.safety-card,
.stage-card,
.essential-card,
.related-card {
    background: var(--background-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover,
.category-card:hover,
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-dark);
}

.review-image,
.category-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.review-content,
.safety-card,
.stage-card,
.essential-card,
.related-card {
    padding: 1.5rem;
}

.review-content h3,
.related-card h3 {
    margin-bottom: 0.75rem;
}

.review-content h3 a,
.related-card h3 a {
    color: var(--text-dark);
}

.review-content h3 a:hover,
.related-card h3 a:hover {
    color: var(--primary-coral);
}

.review-meta {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.category,
.rating,
.price,
.age-range,
.safety-rating {
    font-size: 0.9rem;
    font-weight: 500;
}

.category {
    background-color: var(--primary-coral);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category:hover {
    background-color: var(--primary-sage);
    color: white;
    transform: translateY(-1px);
}

.rating {
    color: var(--accent-peach);
}

.price {
    color: var(--success);
    font-weight: 600;
}

.safety-rating {
    background-color: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.pros-cons {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Article Styles */
.review-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #e74c3c;
}

.article-meta {
    display: flex;
    justiry-content: center;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.article-rating {
    margin: 1rem 0;
}

.stars {
    color: #f39c12;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.rating-text {
    background-color: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.article-content {
    line-height: 1.8;
}

.article-image {
    margin: 2rem 0;
    text-align: center;
}

.main-image {
    border-radius: 12px;
    max-width: 100%;
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

.article-summary {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.quick-picks {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pick {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.pick h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.product-review {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.product-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.product-details h4 {
    margin: 1rem 0 0.5rem 0;
}

.pros-cons {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.pros ul,
.cons ul {
    margin-left: 1rem;
}

.pros h4 {
    color: #27ae60;
}

.cons h4 {
    color: #e74c3c;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.share-btn,
.save-btn {
    background-color: var(--primary-coral);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.share-btn:hover,
.save-btn:hover {
    background-color: var(--primary-sage);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Buying Guide Styles */
.guide-content {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.guide-section ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.guide-section li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-lavender) 100%);
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

.footer-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-about {
    margin-top: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Related Categories */
.related-categories {
    background-color: var(--background-light);
    padding: 3rem 0;
}

.related-categories h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-category {
    background: var(--background-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-light);
    border-left: 4px solid var(--primary-coral);
    transition: all 0.3s ease;
}

.related-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-medium);
    border-left-color: var(--primary-sage);
}

.related-category h3 {
    margin-bottom: 0.5rem;
}

.related-category h3 a {
    color: var(--primary-coral);
    text-decoration: none;
}

.related-category h3 a:hover {
    color: var(--primary-sage);
}

.related-category p {
    color: var(--text-medium);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

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

    .product-header {
        flex-direction: column;
        text-align: center;
    }

    .product-image {
        align-self: center;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .quick-picks {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .guide-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .pros-cons {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-picks {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero {
        padding: 6rem 0;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

/* Amazon Affiliate Buttons */
.buy-now-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--warning) 0%, #FF9800 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.3);
    margin-top: 1rem;
    width: 100%;
    border: none;
    cursor: pointer;
}

.buy-now-btn:hover {
    background: linear-gradient(135deg, #FF9800 0%, var(--warning) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    color: white;
}

.review-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.amazon-disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
    line-height: 1.3;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus States for Accessibility */
button:focus,
a:focus,
.filter-tab:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .nav,
    .footer,
    .share-buttons,
    .related-articles {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .article-content {
        max-width: none;
    }
}
