/* ============================================================
   USA Content Sites - Clean, Fast, AdSense-Friendly CSS
   ============================================================ */

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --text: #202124;
    --text-light: #5f6368;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --border: #dadce0;
    --success: #34a853;
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 17px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

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

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

.tagline {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Main Layout */
main.container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding-top: 30px;
    padding-bottom: 40px;
}

/* Article Content */
.article-content {
    max-width: 100%;
}

.article-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text);
}

.article-meta {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

.article-body h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: var(--text);
}

.article-body p {
    margin-bottom: 16px;
}

.article-body ul, .article-body ol {
    margin: 10px 0 20px 25px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body strong {
    color: var(--text);
}

.article-body a {
    color: var(--primary);
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

/* Article Cards (Index Page) */
.articles-list h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.article-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}

.article-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

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

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

.article-excerpt {
    color: var(--text-light);
    margin: 10px 0;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-section {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Ads */
.ad-container {
    text-align: center;
    margin: 20px auto;
    max-width: var(--max-width);
    padding: 0 20px;
}

.ad-in-article {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Footer */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 25px 0;
    text-align: center;
    margin-top: 40px;
}

.site-footer nav {
    margin-top: 10px;
}

.site-footer nav a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

.site-footer nav a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    main.container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

    .article-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    body {
        font-size: 16px;
    }
}

/* Print styles */
@media print {
    .ad-container, .sidebar, .site-header nav, .site-footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}

/* ============================================================
   Social Share Buttons
   ============================================================ */
.share-buttons {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
    margin-right: 5px;
}

.share-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s, transform 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    text-decoration: none;
}

.share-twitter { background: #000; }
.share-facebook { background: #1877f2; }
.share-linkedin { background: #0a66c2; }
.share-reddit { background: #ff4500; }
.share-whatsapp { background: #25d366; }

/* ============================================================
   Related Articles
   ============================================================ */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--primary);
}

.related-articles h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: none;
    padding-bottom: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.related-card {
    display: block;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.related-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.related-card h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-card .read-time {
    color: var(--text-light);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .share-buttons {
        justify-content: center;
    }
    .share-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
