/* AI Tools Review - Minimal SEO Theme */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
    --success: #10b981;
}

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

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

/* Header */
header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-links a {
    margin-left: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover { color: var(--primary); }

/* Main */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0;
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.category-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.category-card .emoji { font-size: 2rem; }
.category-card h3 { margin: 0.5rem 0; }
.category-card p { font-size: 0.85rem; color: var(--text-light); }

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.post-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.post-card h2, .post-card h3 { 
    font-size: 1.1rem; 
    margin-bottom: 0.5rem;
}

.post-card a { color: var(--text); text-decoration: none; }
.post-card a:hover { color: var(--primary); }
.post-card p { font-size: 0.9rem; color: var(--text-light); }
.post-card time { font-size: 0.8rem; color: var(--text-light); }

/* Article */
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.post-meta { color: var(--text-light); font-size: 0.9rem; }
.post-meta a { color: var(--primary); }

.post-content { font-size: 1.05rem; }
.post-content h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.post-content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.25rem; }
.post-content p { margin-bottom: 1rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content a { color: var(--primary); }
.post-content code { 
    background: var(--bg-alt); 
    padding: 0.2rem 0.4rem; 
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content th, .post-content td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
}

.post-content th { background: var(--bg-alt); }

/* Affiliate Box */
.affiliate-box {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.affiliate-box h3 { margin-bottom: 0.5rem; }

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
}

.cta-button:hover { background: var(--primary-dark); }

/* TOC */
.toc {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.toc h2 { font-size: 1rem; margin-bottom: 0.5rem; }
.toc ul { margin-left: 1rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--primary); }

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 3rem;
}

/* Section pages */
.list-page h1 { margin-bottom: 1rem; }
.section-description { color: var(--text-light); margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    header { padding: 1rem; }
    .nav-links a { margin-left: 1rem; font-size: 0.85rem; }
    main { padding: 1rem; }
    .hero h1 { font-size: 1.75rem; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}
