/* Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-main: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-color: #60a5fa;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Ad Placements */
.ad-container {
    display: flex; justify-content: center; align-items: center;
    margin: 20px auto; text-align: center; overflow: hidden;
    min-height: 50px;
}
.ad-desktop { display: none; }
.ad-mobile { display: block; }

@media (min-width: 768px) {
    .ad-desktop { display: block; }
    .ad-mobile { display: none; }
}

/* Floating Side Ads for Desktop */
.sidebar-ad-left, .sidebar-ad-right {
    position: fixed; top: 100px; display: none; z-index: 50;
}
.sidebar-ad-left { left: 10px; }
.sidebar-ad-right { right: 10px; }

@media (min-width: 1250px) {
    .sidebar-ad-left, .sidebar-ad-right { display: block; }
}

/* Smartlink Button */
.smartlink-btn {
    display: block; width: 100%; max-width: 400px; margin: 50px auto;
    padding: 18px 24px; background: var(--accent-gradient); color: white;
    text-align: center; border-radius: 50px; font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4); transition: transform 0.3s;
}
.smartlink-btn:hover { transform: scale(1.05); }

/* Progress Bar */
.progress-container {
    width: 100%; height: 4px; background: rgba(255,255,255,0.05);
    position: fixed; top: 0; left: 0; z-index: 1000;
}
.progress-bar {
    height: 4px; background: var(--accent-gradient); width: 0%;
    transition: width 0.1s;
}

/* Glassmorphism Navbar */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.8rem; font-weight: 800; letter-spacing: -1px;
}
.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animated Hero Section (Homepage) */
.hero {
    padding: 60px 0 80px; text-align: center;
    position: relative; overflow: hidden;
    background: radial-gradient(circle at top, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
}
.hero h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin: 20px 0; letter-spacing: -1.5px; }
.hero p { font-size: 1.3rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Story Grid */
.story-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px;
}

/* Glass Cards */
.story-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
}
.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}
.card-img-wrapper { height: 220px; overflow: hidden; position: relative; }
.card-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.story-card:hover .card-img-wrapper img { transform: scale(1.08); }
.card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,1) 0%, rgba(15,23,42,0) 100%);
}
.card-badge {
    position: absolute; top: 15px; left: 15px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.1);
}
.card-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; color: white; }
.card-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; flex-grow: 1; }
.read-more-btn {
    margin-top: 20px; display: inline-flex; align-items: center;
    color: var(--accent-color); font-weight: 600; font-size: 0.9rem;
}
.read-more-btn svg { width: 16px; height: 16px; margin-left: 5px; transition: transform 0.2s; }
.story-card:hover .read-more-btn svg { transform: translateX(5px); }


/* Article Page */
.article-header-wrapper { text-align: center; margin: 40px 0; }
.article-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }

.article-meta {
    display: flex; justify-content: center; align-items: center; gap: 20px;
    color: var(--text-secondary); font-size: 1rem;
}

.featured-image-container { position: relative; border-radius: 24px; overflow: hidden; margin-bottom: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.featured-image { width: 100%; height: auto; max-height: 600px; object-fit: cover; display: block; }
.featured-image-container::after {
    content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); border-radius: 24px; pointer-events: none;
}

/* Typography for Story */
.article-content {
    font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.9; color: #cbd5e1; max-width: 760px; margin: 0 auto;
}
.article-content p { margin-bottom: 30px; }
.drop-cap::first-letter {
    font-family: var(--font-sans); font-size: 4.5rem; float: left; line-height: 0.8; margin-right: 12px; font-weight: 800;
    background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Quote */
.quote-block {
    margin: 40px -20px; padding: 40px; background: var(--bg-card);
    border-left: 4px solid var(--accent-color); font-size: 1.6rem; font-style: italic; color: white; border-radius: 0 16px 16px 0; backdrop-filter: blur(10px);
}

/* Interactive Floating Reactions */
.reaction-bar {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: var(--glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--glass-border);
    padding: 10px 20px; border-radius: 50px; display: flex; gap: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 99;
}
.react-btn {
    background: none; border: none; font-size: 1.8rem; cursor: pointer; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.react-btn:hover { transform: scale(1.4); }
.react-btn:active { transform: scale(0.9); }

/* Footer */
.footer { border-top: 1px solid var(--glass-border); padding: 40px 0; text-align: center; margin-top: 80px; color: var(--text-secondary); }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .article-title { font-size: 2.5rem; }
    .article-content { font-size: 1.15rem; }
    .quote-block { margin: 30px 0; padding: 25px; font-size: 1.3rem; }
}
