/* Mom's Guide 4 Baby - Main Stylesheet */

:root {
    --primary-color: #4A90A4;
    --secondary-color: #FF6B6B;
    --accent-color: #FFE66D;
    --text-color: #2D3436;
    --text-light: #636E72;
    --bg-color: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --border-color: #E9ECEF;
    --success-color: #28A745;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

/* Header */
.header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo span { color: var(--accent-color); }

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav a:hover, .nav a.active {
    opacity: 0.8;
    text-decoration: underline;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #357A8C);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #357A8C;
    transform: translateY(-2px);
}

.btn-secondary { background: var(--secondary-color); }
.btn-secondary:hover { background: #E55555; }

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

/* Section */
.section { padding: 3rem 0; }
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-secondary);
}

.product-info { padding: 1.5rem; }

.product-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars { color: #FFD700; }
.rating-count { color: var(--text-light); font-size: 0.9rem; }

/* Categories */
.categories {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}

.category-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.category-tag:hover, .category-tag.active {
    background: var(--primary-color);
    color: white;
}

/* Features */
.features {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--primary-color); }
.feature-card p { color: var(--text-light); }

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 { color: var(--accent-color); margin-bottom: 1rem; }
.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}
.footer-section a:hover { opacity: 1; }

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Newsletter */
.newsletter {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.newsletter h2 { margin-bottom: 1rem; }
.newsletter p { margin-bottom: 1.5rem; opacity: 0.9; }

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Ad Container */
.ad-container {
    background: var(--bg-secondary);
    padding: 1rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.ad-placeholder { color: var(--text-light); font-size: 0.9rem; }

/* Loading */
.loading { text-align: center; padding: 3rem; }
.spinner {
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 1rem; }
    .hero h1 { font-size: 1.8rem; }
    .product-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}
