/* ===================================
   PetRoundup - Shared Stylesheet
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.8;
    color: #2c2c2c;
    background: #fff;
}

a {
    color: #c41e3a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a;
    line-height: 1.3;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #444;
}

/* Components */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===================================
   Header
   =================================== */
.header {
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

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

.logo {
    font-family: Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #c41e3a;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: #c41e3a;
    text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 3rem 2rem;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand h3 {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #c41e3a;
}

.footer-brand p {
    color: #999;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

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

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #999;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-col a:hover {
    color: #fff;
}

.footer-disclosure {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.75rem;
    color: #666;
    text-align: center;
}

.footer-copyright {
    text-align: center;
    font-size: 0.8125rem;
    color: #666;
    margin-top: 1rem;
}

/* ===================================
   Breadcrumb
   =================================== */
.breadcrumb {
    font-family: -apple-system, sans-serif;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #c41e3a;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===================================
   Article Header
   =================================== */
.article-header {
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-family: -apple-system, sans-serif;
    font-size: 0.875rem;
    color: #666;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.author-role {
    font-size: 0.8125rem;
    color: #888;
}

/* ===================================
   Table of Contents
   =================================== */
.toc-box {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    margin-bottom: 3rem;
    font-family: -apple-system, sans-serif;
}

.toc-box h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

.toc-box ol {
    padding-left: 1.25rem;
}

.toc-box li {
    margin-bottom: 0.5rem;
}

.toc-box a {
    color: #c41e3a;
    text-decoration: none;
}

.toc-box a:hover {
    text-decoration: underline;
}

/* ===================================
   Product Card
   =================================== */
.list-item {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.list-item:last-child {
    border-bottom: none;
}

.list-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #c41e3a;
    color: #fff;
    font-family: -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.list-item h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.list-item .tagline {
    font-family: -apple-system, sans-serif;
    font-size: 0.875rem;
    color: #c41e3a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.product-image-container {
    float: right;
    margin: 0 0 1.5rem 2rem;
    width: 280px;
}

.product-image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.buy-btn {
    display: block;
    background: #c41e3a;
    color: #fff;
    text-align: center;
    padding: 0.75rem;
    text-decoration: none;
    font-family: -apple-system, sans-serif;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.buy-btn:hover {
    background: #a01830;
    text-decoration: none;
}

.key-features {
    font-family: -apple-system, sans-serif;
    background: #f5f5f5;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.key-features h3 {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.key-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.key-features li {
    font-size: 0.875rem;
}

.key-features li::before {
    content: "✓ ";
    color: #c41e3a;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
    font-family: -apple-system, sans-serif;
}

.pros, .cons {
    padding: 1rem;
    border-radius: 8px;
}

.pros {
    background: #f0fff4;
}

.cons {
    background: #fff5f5;
}

.pros h4, .cons h4 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.pros h4 { color: #16a34a; }
.cons h4 { color: #dc2626; }

.pros ul, .cons ul {
    list-style: none;
    font-size: 0.875rem;
}

.pros li, .cons li {
    padding: 0.25rem 0;
}

/* ===================================
   Sections
   =================================== */
.section {
    margin: 4rem 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.section h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #2c2c2c;
}

/* ===================================
   FAQ
   =================================== */
.faq {
    background: #fafafa;
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 8px;
    font-family: -apple-system, sans-serif;
}

.faq h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1rem;
    color: #c41e3a;
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.9375rem;
    color: #555;
}

/* ===================================
   Forms
   =================================== */
.form-group {
    margin-bottom: 1rem;
    font-family: -apple-system, sans-serif;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #c41e3a;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    background: #c41e3a;
    color: #fff;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: -apple-system, sans-serif;
}

.btn:hover {
    background: #a01830;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #c41e3a;
    border: 2px solid #c41e3a;
}

.btn-outline:hover {
    background: #fef2f2;
}

/* ===================================
   Page Templates
   =================================== */
.page-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 3rem;
}

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

.page-header .lead {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.content-section p {
    color: #444;
    line-height: 1.8;
}

.content-section ul, 
.content-section ol {
    margin-left: 1.5rem;
    color: #444;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* ===================================
   Homepage
   =================================== */
.hero {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    color: #fff;
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    color: #fff;
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

.category-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.category-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card-content {
    padding: 1.5rem;
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.category-card h3 a {
    color: #1a1a1a;
}

.category-card h3 a:hover {
    color: #c41e3a;
}

.category-card p {
    color: #666;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.category-card .count {
    font-family: -apple-system, sans-serif;
    font-size: 0.8125rem;
    color: #888;
}

/* ===================================
   Sidebar Ad
   =================================== */
.sidebar-ad {
    background: #f5f5f5;
    padding: 1rem;
    text-align: center;
    font-family: -apple-system, sans-serif;
    font-size: 0.75rem;
    color: #999;
    margin: 2rem 0;
}

/* ===================================
   Utilities
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .header-inner {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .product-image-container {
        float: none;
        width: 100%;
        margin: 0 0 1.5rem 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .key-features ul,
    .pros-cons {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}