/* Core Style Sheet - Talk Trends Hub */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #0f172a;       /* Slate 900 */
    --bg-secondary: #1e293b;     /* Slate 800 */
    --bg-tertiary: #334155;      /* Slate 700 */
    
    --text-primary: #f8fafc;     /* Slate 50 */
    --text-secondary: #cbd5e1;   /* Slate 300 */
    --text-muted: #64748b;       /* Slate 500 */
    
    --accent-indigo: #6366f1;    /* Indigo 500 */
    --accent-indigo-hover: #4f46e5;
    --accent-amber: #f59e0b;     /* Amber 500 */
    --accent-amber-hover: #d97706;
    
    --border-color: #334155;     /* Slate 700 */
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }

a {
    color: var(--accent-indigo);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
header {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent-amber);
    -webkit-text-fill-color: var(--accent-amber);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero h1 span {
    color: var(--accent-indigo);
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Main Content Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin: 2rem 0;
}

/* Category Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.badge-food { background-color: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.badge-policy { background-color: rgba(99, 102, 241, 0.15); color: var(--accent-indigo); }
.badge-business { background-color: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-game { background-color: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-health { background-color: rgba(6, 182, 212, 0.15); color: #06b6d4; }

/* Article Card Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-amber));
    opacity: 0;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--text-muted);
}

.card:hover::before {
    opacity: 1;
}

.card-content h3 {
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    margin-bottom: 1.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.card-meta .read-more {
    color: var(--accent-indigo);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card:hover .read-more {
    color: var(--text-primary);
}

/* Sidebar Widgets */
aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-indigo);
    padding-left: 8px;
}

.widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.widget ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
}

.widget ul li a:hover {
    color: var(--accent-indigo);
}

.widget ul li a span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* AdSense Placeholder Styles */
.adsense-placeholder {
    background: rgba(30, 41, 59, 0.6);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    position: relative;
    text-align: center;
    overflow: hidden;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.adsense-placeholder::before {
    content: 'SPONSORED ADVERTISEMENT';
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.adsense-mock-unit {
    width: 100%;
    height: 100%;
    min-height: 80px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--accent-indigo);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.adsense-mock-unit:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

.adsense-mock-unit span {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Header & Footer Specific Ad Styles */
.header-ad {
    margin: 1rem 0;
    max-width: 100%;
}

.sidebar-ad {
    min-height: 250px;
}

.sidebar-ad .adsense-mock-unit {
    min-height: 230px;
}

/* Article Styling */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

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

.article-header h1 {
    font-size: 2.75rem;
    margin: 0.75rem 0;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.article-body h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem 0;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-indigo);
    background-color: var(--bg-secondary);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    color: var(--text-primary);
}

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

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

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

.recipe-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-amber);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.recipe-box h3 {
    color: var(--accent-amber);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.back-btn:hover {
    color: var(--accent-indigo);
}

/* Reading Progress Bar */
.progress-bar-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 99;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-amber));
    transition: width 0.1s ease-out;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
}

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

/* Responsive adjustments */
@media (max-width: 968px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.75rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .article-header h1 {
        font-size: 2.2rem;
    }
}
