/* SmartNestLife - Main Stylesheet */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,.1);
    --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
nav .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.nav-logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.nav-logo span { color: var(--text); }
.nav-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.nav-links a { font-weight: 500; color: var(--text-light); }
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero { background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%); color: #fff; padding: 80px 0; text-align: center; }
.hero h1 { font-size: 2.8rem; margin-bottom: 16px; }
.hero p { font-size: 1.2rem; opacity: .9; max-width: 600px; margin: 0 auto; }
.hero .tagline { margin-top: 24px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .tagline span { background: rgba(255,255,255,.15); padding: 8px 20px; border-radius: 50px; font-size: .95rem; }

/* Section cards */
.section-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; padding: 60px 0; }
.section-card { background: var(--bg-alt); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); transition: transform .2s; }
.section-card:hover { transform: translateY(-4px); }
.section-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.section-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.section-card p { color: var(--text-light); margin-bottom: 16px; }
.section-card a { font-weight: 600; }

/* Article cards */
.articles-section { padding: 60px 0; background: var(--bg-alt); }
.articles-section h2 { text-align: center; font-size: 2rem; margin-bottom: 40px; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.article-card { background: var(--bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.article-card img { width: 100%; height: 200px; object-fit: cover; }
.article-card .card-body { padding: 20px; }
.article-card .card-tag { display: inline-block; background: #dbeafe; color: var(--primary); padding: 4px 12px; border-radius: 50px; font-size: .8rem; font-weight: 600; margin-bottom: 8px; }
.article-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.article-card p { color: var(--text-light); font-size: .9rem; margin-bottom: 12px; }

/* Article page */
.article-header { padding: 60px 0 32px; }
.article-header .breadcrumb { color: var(--text-light); margin-bottom: 12px; font-size: .9rem; }
.article-header h1 { font-size: 2.2rem; margin-bottom: 12px; }
.article-meta { color: var(--text-light); font-size: .9rem; margin-bottom: 24px; }
.article-content { max-width: 750px; margin: 0 auto; padding-bottom: 60px; }
.article-content h2 { font-size: 1.5rem; margin: 32px 0 12px; color: var(--primary); }
.article-content h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px 24px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote { border-left: 4px solid var(--primary); padding: 12px 20px; margin: 24px 0; background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.article-content .affiliate-note { background: #fef3c7; border: 1px solid #fcd34d; padding: 16px; border-radius: var(--radius); margin: 32px 0; font-size: .9rem; }
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.article-content th { background: var(--bg-alt); padding: 12px; text-align: left; border-bottom: 2px solid var(--border); }
.article-content td { padding: 12px; border-bottom: 1px solid var(--border); }
.btn { display: inline-block; background: var(--primary); color: #fff !important; padding: 12px 28px; border-radius: 8px; font-weight: 600; margin: 16px 0; text-decoration: none !important; }
.btn:hover { background: var(--primary-dark); }

/* Footer */
footer { background: #1e293b; color: #cbd5e1; padding: 40px 0; text-align: center; }
footer a { color: #94a3b8; }
footer .footer-links { display: flex; gap: 24px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }

/* Section header */
.section-hero { background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%); color: #fff; padding: 60px 0; text-align: center; }
.section-hero h1 { font-size: 2.2rem; }
.section-hero p { opacity: .9; margin-top: 8px; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .article-header h1 { font-size: 1.6rem; }
    nav .container { flex-direction: column; gap: 12px; }
    .nav-links { gap: 16px; }
}
