/* * Project: Irony of India - Massive Viral Portal
 * Type: Core Stylesheet
 * Author: Senior Full Stack Developer (AI Partner)
 * Description: Premium News Magazine Layout, Mobile Responsive, SEO Optimized Structure
 */

:root {
    /* --- COLOR PALETTE --- */
    --primary-color: #e60023; /* Breaking News Red */
    --secondary-color: #0056b3; /* Cricket/Corporate Blue */
    --accent-color: #ff9900; /* Viral/India Saffron */
    --dark-bg: #111111;
    --light-bg: #f4f4f9;
    --white: #ffffff;
    --text-main: #222222;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    
    /* --- TYPOGRAPHY --- */
    --font-heading: 'Merriweather', 'Georgia', serif;
    --font-body: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
    
    /* --- SPACING & LAYOUT --- */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px 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);
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: --font-body;
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- UTILITY CLASSES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn:hover {
    background: #b3001b;
    transform: translateY(-2px);
}

/* --- SVG ICONS UTILITY --- */
.icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    fill: currentColor;
    display: inline-block;
}

/* --- 1. TOP BAR (TICKER) --- */
.top-bar {
    background: var(--dark-bg);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticker-wrap {
    width: 70%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding-right: 40px;
}

.ticker-tag {
    background: var(--primary-color);
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 3px;
    margin-right: 5px;
    font-weight: bold;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.top-socials {
    display: flex;
    gap: 15px;
}

/* --- 2. HEADER & MEGA MENU --- */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    height: 100%;
    align-items: center;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--primary-color);
}

/* Mega Menu Logic */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: -200px; /* Adjust based on layout */
    width: 900px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 20px;
    border-top: 3px solid var(--primary-color);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.nav-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-item h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.mega-item img {
    border-radius: 4px;
    margin-bottom: 8px;
    height: 120px;
    width: 100%;
}

.mega-item p {
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 500;
}

/* --- 3. HERO SECTION (GRID MAGAZINE) --- */
.hero-section {
    padding: 40px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    height: 500px;
}

.hero-main {
    grid-row: 1 / span 2;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.hero-sub {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    color: var(--white);
}

.hero-cat {
    background: var(--primary-color);
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
}

.hero-title-lg {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-title-sm {
    font-size: 1rem;
    font-weight: 600;
}

/* --- 4. TRENDING SLIDER (SCROLL SNAP) --- */
.trending-section {
    padding: 30px 0;
    background: var(--white);
}

.trending-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: thin;
}

.trending-card {
    min-width: 250px;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s;
}

.trending-card:hover {
    transform: scale(1.02);
}

.trending-content {
    padding: 15px;
}

.trending-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

/* --- 5. IPL ZONE (DENSE DATA) --- */
.ipl-section {
    background: #0d1e4c; /* Deep Blue IPL */
    color: var(--white);
    padding: 50px 0;
}

.ipl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.ipl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ipl-table th {
    background: rgba(255,255,255,0.1);
    text-align: left;
    padding: 10px;
}

.ipl-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.match-card {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
}

/* --- 6. VIRAL VIDEOS GALLERY --- */
.viral-section {
    padding: 50px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,0,0,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s;
}

.video-card:hover .play-btn-overlay {
    transform: translate(-50%, -50%) scale(1.2);
}

/* --- 7. ENTERTAINMENT ZIG ZAG --- */
.zigzag-section {
    padding: 40px 0;
    background: var(--white);
}

.zigzag-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.zigzag-item:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-img {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.zigzag-content {
    flex: 1;
}

.zigzag-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.zigzag-excerpt {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* --- 8. FEATURE: IRONY OF INDIA (EDITORIAL) --- */
.feature-section {
    padding: 60px 0;
    background: #fdf6e3; /* Editorial Sepia */
    text-align: center;
}

.feature-quote {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.4;
}

/* --- 9. WEB STORIES (VERTICAL) --- */
.stories-section {
    padding: 40px 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.story-card {
    aspect-ratio: 9/16;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.story-card img {
    width: 100%;
    height: 100%;
}

.story-overlay {
    position: absolute;
    bottom: 0;
    background: linear-gradient(transparent, #000);
    width: 100%;
    padding: 15px 10px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}

.story-ring {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    padding: 2px;
}

/* --- 10. REGIONAL TABS --- */
.regional-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -2px;
}

/* --- 11. POLLS --- */
.poll-widget {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.poll-option {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 10px 0;
    background: var(--light-bg);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.poll-option:hover {
    background: #e9ecef;
}

.poll-radio {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

/* --- 12. NEWSLETTER (PARALLAX) --- */
.newsletter-section {
    background-image: url('https://placehold.co/1920x600/111/333?text=Newsletter+BG'); /* Placeholder for pattern */
    background-attachment: fixed;
    background-size: cover;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    position: relative;
}

.newsletter-overlay {
    background: rgba(0,0,0,0.7);
    padding: 40px;
    border-radius: var(--border-radius);
    display: inline-block;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.newsletter-input {
    padding: 12px;
    width: 300px;
    border: none;
    border-radius: 4px;
}

/* --- 13. SEO CONTENT BLOCK --- */
.seo-block {
    padding: 40px 0;
    background: var(--light-bg);
    font-size: 0.95rem;
    color: #444;
}

.seo-block p {
    margin-bottom: 15px;
}

/* --- 14. FAQ ACCORDION --- */
.faq-section {
    padding: 50px 0;
    background: var(--white);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.faq-question {
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: none; /* Logic handled via CSS checks or just open in static */
}

/* Fake Toggle for Static Site */
.faq-item:hover .faq-answer {
    display: block;
}

/* --- 15. FAT FOOTER --- */
.main-footer {
    background: #1a1a1a;
    color: #cccccc;
    padding: 60px 0 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: #333;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
}

/* --- MEDIA QUERIES (MOBILE RESPONSIVE) --- */
@media (max-width: 1024px) {
    :root {
        --container-width: 100%;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .ipl-grid, .video-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* In real scenario, use hamburger menu */
    }
    
    .header-inner {
        justify-content: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .zigzag-item {
        flex-direction: column;
    }
    
    .zigzag-item:nth-child(even) {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ipl-grid, .video-grid, .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}