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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #111827;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-secondary: #f9fafb;
    --border: #e5e7eb;
    --accent: #f3f4f6;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

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

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

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

.logo:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 20px;
    text-align: center;
}

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

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.hero-sub {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Articles Grid */
section {
    padding: 3rem 20px;
}

section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-content {
    padding: 1.5rem;
}

.category {
    display: inline-block;
    background: var(--accent);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card h3 a {
    color: var(--text);
}

.card h3 a:hover {
    color: var(--primary);
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Newsletter */
.newsletter {
    background: var(--bg-secondary);
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 0.5rem;
}

.newsletter p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 3rem 20px 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

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

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

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.affiliate-disclosure {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    margin: 0.5rem auto 0;
    line-height: 1.5;
}

/* About, Contact, Privacy Pages */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.page-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.page-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-content ul {
    margin: 1rem 0 1.5rem 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

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

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn:hover {
    background: var(--primary-dark);
    color: white;
}

/* Article Page */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.article-header .category {
    background: var(--primary);
    color: white;
}

.article-header h1 {
    font-size: 2.25rem;
    margin: 1rem 0;
    line-height: 1.3;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.article-body h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.article-body ul, .article-body ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

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

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

.article-body th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

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

.pros {
    background: #ecfdf5;
}

.cons {
    background: #fef2f2;
}

.pros h4, .cons h4 {
    margin-bottom: 1rem;
}

.pros ul, .cons ul {
    list-style: none;
    margin: 0;
}

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

.pros li::before {
    content: "✓ ";
    color: #059669;
}

.cons li::before {
    content: "✗ ";
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
}
