/* Paw Insurance Guide - Main Stylesheet */
:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary: #198754;
    --accent: #fd7e14;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border: #e9ecef;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 10px;
}

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Navbar */
.navbar { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.navbar-brand { font-size: 1.1rem; letter-spacing: -0.5px; }
.navbar .nav-link { font-size: 0.9rem; font-weight: 500; }
.navbar .nav-link.active { color: var(--primary) !important; }
.navbar .form-control { font-size: 0.85rem; border-radius: 20px; }
.navbar .btn { border-radius: 20px; }

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #f0f7ff 100%);
    border-bottom: 1px solid var(--border);
}
.hero-section h1 { letter-spacing: -1px; }

/* Article Cards */
.article-card {
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.article-card .card-img-top {
    border-radius: var(--radius) var(--radius) 0 0;
    height: 200px;
    object-fit: cover;
}
.article-card .badge { font-size: 0.7rem; font-weight: 500; }

/* Category Cards */
.category-card {
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}
.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Article Detail */
.article-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.3;
}
.article-content { font-size: 1.05rem; }
.article-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}
.article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.article-content p { margin-bottom: 1.2rem; }
.article-content ul, .article-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content a:hover { color: var(--primary-dark); }
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Table of Contents */
.article-toc {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
}
.article-toc h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-toc li {
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}
.article-toc li:last-child { border-bottom: none; }
.article-toc li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
}
.article-toc li a:hover { color: var(--primary); }
.article-toc .toc-sub { padding-left: 1.25rem; }
.article-toc .toc-sub a { font-size: 0.85rem; color: var(--text-muted); }

/* FAQ Section */
.faq-section { margin-top: 2rem; }
.faq-section .accordion-button {
    font-size: 0.95rem;
    background: var(--bg-light);
    color: var(--text-dark);
}
.faq-section .accordion-button:not(.collapsed) {
    background: #e8f4fd;
    color: var(--primary);
}
.faq-section .accordion-body { font-size: 0.9rem; }

/* Sidebar */
.sidebar-sticky {
    position: sticky;
    top: 80px;
}

/* Ad Placeholders (dev mode) */
.ad-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    color: #999;
    margin: 15px 0;
    border-radius: 6px;
    font-size: 0.85rem;
}
.ad-container { margin: 15px 0; }

/* Breadcrumbs */
.breadcrumb { font-size: 0.85rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }

/* Footer */
footer h5, footer h6 { font-size: 0.95rem; font-weight: 600; }
footer a:hover { color: var(--primary) !important; }

/* Back to top */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 1;
    box-shadow: var(--shadow);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border-color: var(--border);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Badge colors */
.badge { border-radius: 4px; }

/* Newsletter */
.newsletter-form .form-control { border-radius: 20px 0 0 20px; }
.newsletter-form .btn { border-radius: 0 20px 20px 0; }
.newsletter-msg.text-success { color: #2ecc71 !important; }
.newsletter-msg.text-danger { color: #e74c3c !important; }

/* Responsive */
@media (max-width: 768px) {
    .article-title { font-size: 1.5rem; }
    .article-content { font-size: 1rem; }
    .hero-section h1 { font-size: 1.6rem; }
    .sidebar-sticky { position: static; }
    .category-card { padding: 1rem !important; }
}

@media (max-width: 576px) {
    .hero-section { padding: 2rem 0 !important; }
    .row.g-3 > .col { flex: 0 0 50%; }
}

/* Print */
@media print {
    .navbar, footer, .ad-placeholder, .ad-container, #backToTop,
    .sidebar-sticky, .article-toc, .faq-section { display: none !important; }
    .article-content { font-size: 12pt; }
}
