/*
Theme Name: First Time Mom Every Time
Theme URI: https://example.com/
Author: Parenting Blog Team
Description: A custom WordPress theme based on the "First Time Mom, Every Time" blog design. It features a warm and calming purple palette, responsive layout and sections for a hero, about, posts, categories, and a newsletter.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: first-time-mom-every-time
Tags: blog, parenting, personal, purple, responsive
*/

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

:root {
    /* Color Palette - Warm and Calming Purples */
    /*
      To evoke a warm and calming feeling while shifting the palette to purples,
      we've chosen a range of soft violet hues.  The primary color is a
      medium lavender that reads inviting and gentle, the secondary color is a
      pastel purple, and the accent color is a muted lilac.  Background
      colors are tinted off‑whites with a hint of purple to maintain a
      light and airy feel.  Soft gendered colors have been adjusted to
      complementary purple tones as well.
    */
    --primary-color: #a678b5; /* Warm medium purple */
    --secondary-color: #d9cfe7; /* Pastel lavender */
    --accent-color: #c0a7d1; /* Muted lilac */
    --text-dark: #2c2c2c;
    --text-light: #5e4b69;
    --text-muted: #998fa6;
    --background-light: #f7f3fa; /* Off‑white with a hint of purple */
    --background-cream: #f3e9f7; /* Creamy lavender */
    --white: #ffffff;
    --pink-soft: #eacff3; /* Soft pink‑lavender for girl */
    --blue-soft: #e0d9f3; /* Soft blue‑lavender for boy */
    --green-soft: #e9e0f4; /* Soft purple‑green for growth */
    
    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-light: 0 2px 8px rgba(212, 165, 116, 0.1);
    --shadow-medium: 0 4px 16px rgba(212, 165, 116, 0.15);
    --shadow-strong: 0 8px 32px rgba(212, 165, 116, 0.2);
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header and Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.nav-brand h1 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

.nav-brand .tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--background-cream) 0%, var(--secondary-color) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.hero-content h2 {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
}

.stat i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.stat span {
    font-weight: 500;
    color: var(--text-dark);
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-strong);
    border: 4px solid var(--secondary-color);
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.image-placeholder p {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.about h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.highlight {
    background: var(--background-cream);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s ease;
}

.highlight:hover {
    transform: translateY(-5px);
}

.highlight i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.highlight h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.highlight p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Featured Posts Section */
.featured-posts {
    padding: var(--spacing-xxl) 0;
    background: var(--background-cream);
}

.featured-posts h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.post-image {
    height: 200px;
    background: linear-gradient(135deg, var(--pink-soft), var(--blue-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
}

.post-content {
    padding: var(--spacing-lg);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-category {
    background: var(--secondary-color);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
}

.post-stats {
    display: flex;
    gap: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.load-more {
    text-align: center;
}

.load-more-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Categories Section */
.categories {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.categories h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.category-card {
    background: var(--background-cream);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: var(--shadow-strong);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.category-card h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.category-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--background-light);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
}

.footer-section p {
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: var(--spacing-lg);
    text-align: center;
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: var(--spacing-lg) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

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

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

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .nav-container {
        padding: 0 var(--spacing-sm);
    }

    .hero {
        padding: var(--spacing-lg) 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .stat {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .stat span {
        font-size: 0.9rem;
    }

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

    .post-card {
        margin-bottom: var(--spacing-md);
    }

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

    .category-card {
        padding: var(--spacing-lg);
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--secondary-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}