/* CSS Reset & Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

a { text-decoration: none; color: var(--primary-color); transition: color 0.3s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: #0f172a; margin-bottom: 0.5em; line-height: 1.2; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.btn-secondary { background-color: var(--secondary-color); color: #fff; }
.btn-secondary:hover { opacity: 0.9; }
.btn-large { font-size: 1.125rem; padding: 1rem 2rem; }

/* Header */
.site-header { background: white; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: #0f172a; }
.brand-icon { width: 32px; height: 32px; color: var(--primary-color); }
.nav-links { display: flex; list-style: none; gap: 1.5rem; }
.nav-links a { color: var(--text-main); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-color); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text-main); }

/* Hero */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: white; padding: 4rem 1rem; text-align: center; margin-bottom: 2rem; }
.hero h1 { color: white; font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }

/* Grid Layout */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.card { background: var(--bg-card); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.02); border: 1px solid var(--border-color); transition: transform 0.3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.category-tag { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: var(--primary-color); margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.card h3 a { color: #0f172a; }
.card h3 a:hover { color: var(--primary-color); }
.card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }
.read-more { font-weight: 600; font-size: 0.9rem; }

/* Article Layout */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; padding: 2rem 1rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--primary-color); }
.article-header { margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1.5rem; }
.article-header h1 { font-size: 2.5rem; }
.author-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.article-body h2 { font-size: 1.75rem; margin-top: 2rem; border-bottom: 2px solid #f1f5f9; padding-bottom: 0.5rem; }
.article-body h3 { font-size: 1.4rem; margin-top: 1.5rem; }
.article-body p, .article-body ul { margin-bottom: 1.25rem; font-size: 1.05rem; }
.article-body ul { padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: #0f172a; }

/* Key Takeaways Box (generated from markdown usually, but let's style headers matching "Key Takeaways") */
.article-body h2:first-of-type + ul {
    background: #eff6ff;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

/* Sidebar */
.sticky-sidebar-widget { position: sticky; top: 90px; }
.related-widget { background: var(--bg-card); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-color); margin-top: 1.5rem; }
.related-widget h3 { font-size: 1.1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.related-widget ul { list-style: none; }
.related-widget li { margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid #f1f5f9; font-size: 0.95rem; }
.related-widget li:last-child { border: none; margin: 0; padding: 0; }

/* Ad Containers */
.ad-container { background: #f8fafc; border: 1px dashed #cbd5e1; display: flex; justify-content: center; align-items: center; margin: 2rem 0; overflow: hidden; min-height: 100px; text-align: center; }
.ad-above-fold { min-height: 90px; margin-top: 0; }
.ad-sidebar { min-height: 600px; }

/* Social Share */
.social-share { display: flex; gap: 0.5rem; margin: 1rem 0; }
.share-btn { padding: 0.4rem 0.8rem; border: none; border-radius: 4px; font-size: 0.85rem; font-weight: 600; color: white; cursor: pointer; transition: opacity 0.3s; }
.share-btn:hover { opacity: 0.9; }
.twitter { background: #000000; }
.facebook { background: #1877f2; }
.linkedin { background: #0a66c2; }

/* Newsletter */
.inline-newsletter { background: #f0fdf4; border: 1px solid #bbf7d0; padding: 2rem; border-radius: 12px; margin: 2rem 0; text-align: center; }
.newsletter-form { display: flex; gap: 0.5rem; margin-top: 1rem; }
.newsletter-form input { flex-grow: 1; padding: 0.75rem; border: 1px solid #cbd5e1; border-radius: 8px; outline: none; }
.newsletter-form input:focus { border-color: var(--primary-color); }
.newsletter-form button { padding: 0.75rem 1.5rem; }

/* Author Box */
.author-bio-box { background: var(--bg-card); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 0.5rem; margin-top: 3rem; }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 3rem 1rem 1rem; margin-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand h3 { color: white; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.9rem; margin-bottom: 1.5rem; }
.footer-links h4 { color: white; margin-bottom: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #cbd5e1; font-size: 0.9rem; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 1rem; text-align: center; font-size: 0.85rem; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: white; padding: 1rem; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; z-index: 1000; transform: translateY(100%); transition: transform 0.3s ease-in-out; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.9rem; max-width: 800px; }

/* All Breeds Link list */
.breed-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; list-style: none; }
.breed-links a { display: block; padding: 0.5rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 4px; text-align: center; font-size: 0.9rem; color: var(--text-main); }
.breed-links a:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* Page Generic Layout */
.page-layout { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
.page-layout h1 { margin-bottom: 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .article-layout { grid-template-columns: 1fr; gap: 2rem; }
    .sticky-sidebar-widget { position: static; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .header-inner .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: white; flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--border-color); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
    .header-inner .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2rem; }
}
