/* ============================================
   MARKETVOICE - Premium Financial Blog Design
   ============================================ */

:root {
    --primary-dark: #0A1628;
    --primary: #1E3A6F;
    --primary-light: #2E4A7A;
    --accent-gold: #F5A623;
    --accent-green: #00C853;
    --accent-red: #FF3B30;
    --accent-blue: #2196F3;
    --text-dark: #1A1A2E;
    --text-light: #666;
    --bg-white: #FFFFFF;
    --bg-gray: #F8F9FA;
    --border: #E5E7EB;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans Tamil', sans-serif;
    background: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.logo img {
    max-height: 48px;
}

.desktop-nav {
    display: flex;
    gap: 32px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.2s;
}

.desktop-nav a:hover {
    color: var(--accent-gold);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.dark-mode-btn, .search-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.dark-mode-btn:hover, .search-btn:hover {
    background: var(--bg-gray);
}

/* Live Ticker */
.live-ticker {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 12px 0;
    border-radius: 12px;
    margin: 16px 0;
    overflow: hidden;
}

.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    animation: tickerScroll 25s linear infinite;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-block;
    margin: 0 24px;
    color: white;
    font-weight: 500;
}

.ticker-symbol {
    color: var(--accent-gold);
    font-weight: 700;
}

.ticker-price {
    margin: 0 8px;
}

.ticker-change.positive { color: var(--accent-green); }
.ticker-change.negative { color: var(--accent-red); }

/* Breaking Alert */
.breaking-alert {
    background: var(--accent-red);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.breaking-icon {
    background: white;
    color: var(--accent-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* ========== HERO SECTION ========== */
.hero-section {
    margin: 32px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.hero-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-excerpt {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    opacity: 0.8;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-side-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 16px;
    transition: transform 0.2s;
}

.hero-side-card:hover {
    transform: translateY(-3px);
}

.hero-side-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-side-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.hero-side-content a {
    text-decoration: none;
    color: var(--text-dark);
}

/* ========== SECTION TITLES ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--accent-gold);
    border-radius: 4px;
}

.view-all {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

/* ========== POST CARDS ========== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.post-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.post-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
}

.post-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-new { background: var(--accent-blue); color: white; }
.badge-trending { background: var(--accent-red); color: white; }
.badge-sponsored { background: #9C27B0; color: white; }
.badge-featured { background: var(--accent-gold); color: var(--primary-dark); }

.sentiment-bullish { background: rgba(0,200,83,0.15); color: var(--accent-green); }
.sentiment-bearish { background: rgba(255,59,48,0.15); color: var(--accent-red); }
.sentiment-neutral { background: rgba(102,102,102,0.15); color: #666; }

.post-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card-title a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.2s;
}

.post-card-title a:hover {
    color: var(--accent-gold);
}

.post-card-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/* ========== TRENDING SECTION ========== */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.trending-item {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.trending-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.trending-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-gold);
    min-width: 50px;
}

.trending-content h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.trending-content a {
    text-decoration: none;
    color: var(--text-dark);
}

/* ========== CATEGORY COLUMNS ========== */
.categories-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 48px 0;
}

.category-col {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.category-col:hover {
    transform: translateY(-4px);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.category-title {
    font-size: 20px;
    font-weight: 700;
}

.category-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 13px;
}

.category-post {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.category-post:last-child {
    border-bottom: none;
}

.category-post-title {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.category-post-meta {
    font-size: 12px;
    color: #999;
}

/* ========== GLOW CTA CARDS ========== */
.cta-glow-section {
    margin: 60px 0;
}

.cta-glow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cta-glow-card {
    padding: 32px 24px;
    border-radius: 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-glow-card.telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
    color: white;
}
.cta-glow-card.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}
.cta-glow-card.instagram {
    background: linear-gradient(135deg, #833AB4, #E4405F, #F56040);
    color: white;
}

.cta-glow-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.cta-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.cta-glow-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.cta-glow-card p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 24px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-dark);
    color: #ccc;
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
}

.social-link.telegram { background: #0088cc; }
.social-link.whatsapp { background: #25D366; }
.social-link.instagram { background: radial-gradient(circle at 30% 110%, #ffdb8c, #e05b7c, #752277); }

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
}

.newsletter-form button {
    background: var(--accent-gold);
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .categories-row, .cta-glow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 70px;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .trending-grid {
        grid-template-columns: 1fr;
    }
    .categories-row, .cta-glow-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 20px;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    display: none;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 12px;
    gap: 4px;
}

.mobile-nav-item i {
    font-size: 22px;
}

/* Floating Social Buttons */
.floating-social {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 22px;
    transition: transform 0.2s;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn.whatsapp { background: #25D366; }
.floating-btn.telegram { background: #0088cc; }
.floating-btn.instagram { background: radial-gradient(circle at 30% 110%, #ffdb8c, #e05b7c, #752277); }
.floating-btn.print { background: #333; }

/* Reading Progress Bar */
#readingProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent-gold);
    z-index: 10000;
    transition: width 0.2s;
}

/* Blink Animation */
.blink {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Dark Mode */
.dark {
    --bg-white: #1E1E2E;
    --bg-gray: #14141E;
    --text-dark: #EEEEEE;
    --text-light: #AAAAAA;
    --border: #2A2A3A;
}