/* Base Variables & Reset */
:root {
    --bg-color: #f9fbfc;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;
    --max-width: 800px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Navbar */
.navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-color);
}

.nav-links a {
    margin-left: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

/* Main Article Area */
.article-container {
    margin-top: 40px;
    background-color: var(--card-bg);
    padding: 40px 60px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--accent-color);
}

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

/* Header */
.category-badge {
    display: inline-block;
    background-color: #eff6ff;
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: #111827;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.meta-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.dot {
    margin: 0 8px;
}

/* Featured Image */
.featured-image-container {
    margin-bottom: 40px;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 10px;
    font-style: italic;
}

/* Content Typography */
.article-content {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
}

.article-content p {
    margin-bottom: 24px;
}

.drop-cap::first-letter {
    font-size: 3.5rem;
    float: left;
    line-height: 0.8;
    margin-right: 8px;
    font-family: var(--font-sans);
    font-weight: 800;
    color: var(--accent-color);
}

.quote-block {
    margin: 32px 0;
    padding: 24px 32px;
    background-color: #f8fafc;
    border-left: 4px solid var(--accent-color);
    font-size: 1.3rem;
    font-style: italic;
    color: #1e293b;
    border-radius: 0 8px 8px 0;
}

/* Ad Placeholders */
.ad-placeholder {
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    text-align: center;
    padding: 30px;
    margin: 32px 0;
    color: #94a3b8;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

/* Share Section */
.share-section {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-sans);
}

.share-section p {
    font-weight: 600;
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    color: white;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.9;
}

.fb { background-color: #1877f2; }
.wa { background-color: #25d366; }
.tw { background-color: #1da1f2; }

/* Read Next Section */
.read-next {
    background-color: #f1f5f9;
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.read-next h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.next-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

.card-badge {
    display: inline-block;
    background: #fef2f2;
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    margin: 16px 16px 8px;
    text-transform: uppercase;
}

.story-card h3 {
    padding: 0 16px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
}

/* Footer */
.footer {
    background: #111827;
    color: #9ca3af;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin-top: 16px;
}

.footer-links a {
    margin: 0 12px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .article-container {
        padding: 30px 20px;
        margin-top: 20px;
    }

    .article-title {
        font-size: 2.2rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .next-story-grid {
        grid-template-columns: 1fr;
    }
}
