/* ============================================
   O2 NEWS BANGLA - PREMIUM NEWS PORTAL
   Modern Design with 3D Effects & Animations
   ============================================ */

/* Google Fonts moved to HTML head for better performance */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary: #0066ff;
    --primary-dark: #0044cc;
    --primary-light: #3388ff;
    --secondary: #00d4ff;
    --accent: #ff0066;
    --accent-light: #ff3388;
    
    /* Dark Theme */
    --dark-900: #0a0a0f;
    --dark-800: #12121a;
    --dark-700: #1a1a25;
    --dark-600: #252530;
    --dark-500: #35354a;
    
    /* Light */
    --light-100: #ffffff;
    --light-200: #f8f9fc;
    --light-300: #e8eaf0;
    --light-400: #c8cad5;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --gradient-accent: linear-gradient(135deg, #ff0066 0%, #ff6600 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #1a1a25 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-shine: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    
    /* 3D Shadows */
    --shadow-3d: 0 10px 30px -10px rgba(0,0,0,0.5), 0 20px 50px -20px rgba(0,102,255,0.3);
    --shadow-card: 0 10px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05);
    --shadow-glow: 0 0 30px rgba(0,102,255,0.4), 0 0 60px rgba(0,212,255,0.2);
    --shadow-accent: 0 10px 30px rgba(255,0,102,0.3);
    
    /* Typography */
    --font-display: 'Bebas Neue', 'Oswald', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', 'Hind Siliguri', sans-serif;
    --font-bengali: 'Hind Siliguri', sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--dark-900);
    color: var(--light-100);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-800);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0,102,255,0.4); }
    50% { box-shadow: 0 0 40px rgba(0,102,255,0.8), 0 0 60px rgba(0,212,255,0.4); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes rotate-3d {
    0% { transform: perspective(1000px) rotateY(0deg); }
    100% { transform: perspective(1000px) rotateY(360deg); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes border-dance {
    0%, 100% { border-color: var(--primary); }
    50% { border-color: var(--accent); }
}

@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(0,102,255,0.5); }
    50% { text-shadow: 0 0 20px rgba(0,102,255,0.8), 0 0 40px rgba(0,212,255,0.5); }
}

/* ===== BREAKING NEWS TICKER ===== */
.breaking-ticker {
    background: linear-gradient(90deg, #dc0000, #ff2200, #dc0000);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    box-shadow: 0 5px 20px rgba(220, 0, 0, 0.5);
}

.breaking-ticker .container {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.breaking-label {
    background: var(--dark-900);
    color: white;
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.breaking-label i {
    animation: pulse-glow 1s ease-in-out infinite;
    color: #ff0;
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
}

.ticker-content {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

/* Faster ticker animation on mobile */
@media (max-width: 768px) {
    .ticker-content {
        animation: ticker-scroll 15s linear infinite;
    }
}

@media (max-width: 480px) {
    .ticker-content {
        animation: ticker-scroll 10s linear infinite;
    }
}

.ticker-content a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-right: 80px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.ticker-content a:hover {
    color: #ff0;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-image {
    opacity: 0.9;
}

/* Fallback logo text (if image fails to load) */
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 3px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: none;
    margin: 0;
}

.logo-text .tagline {
    font-family: var(--font-bengali);
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: var(--dark-700);
    border-radius: 50px;
    padding: 5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.search-box input {
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 0.95rem;
    width: 200px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--light-400);
}

.search-box button {
    background: var(--gradient-primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-glow);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-3d {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shine);
    transition: left 0.5s;
}

.btn-3d:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-3d);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,0,102,0.5);
}

/* ===== NAVIGATION ===== */
.nav-bar {
    background: var(--dark-800);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.nav-link {
    color: var(--light-300);
    text-decoration: none;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 1rem;
    transition: transform 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
    background: rgba(0, 212, 255, 0.05);
}

.nav-link:hover i {
    transform: scale(1.2);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ===== HERO SECTION ===== */
.hero {
    margin-top: 160px;
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.7) 50%, rgba(10,10,15,0.5) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    padding: 3rem;
    animation: slide-in-left 1s ease-out;
}

@media (max-width: 768px) {
    .hero-overlay {
        align-items: flex-start;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero-overlay {
        align-items: flex-start;
        padding-top: 30px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-accent);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-accent);
    animation: pulse-glow 2s infinite;
}

.hero-badge i {
    animation: float 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: text-glow 3s ease-in-out infinite;
}

.hero-excerpt {
    font-size: 1.2rem;
    color: var(--light-300);
    margin-bottom: 25px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: var(--light-400);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-meta i {
    color: var(--secondary);
}

/* Share Buttons */
.share-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 36px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
}

.share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
}

.share-btn i {
    font-size: 0.9rem;
}

.share-btn-small {
    background: var(--dark-600);
    color: var(--secondary);
    border: 1px solid var(--dark-500);
    padding: 6px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 36px;
    min-height: 32px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.share-btn-small:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

.share-btn-small:active {
    transform: scale(0.98);
    background: var(--primary-dark);
}

.share-btn-small i {
    font-size: 0.75rem;
}

.share-btn-trending {
    background: var(--dark-600);
    color: var(--secondary);
    border: 1px solid var(--dark-500);
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 0.65rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    margin-top: 6px;
    flex-shrink: 0;
    min-width: 32px;
    min-height: 28px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.share-btn-trending:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.share-btn-trending:active {
    transform: scale(0.95);
    background: var(--primary-dark);
}

.share-btn-trending i {
    font-size: 0.7rem;
}

/* Share Notification */
.share-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: var(--shadow-3d);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.share-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--light-400);
    flex-wrap: wrap;
}

.video-meta > span {
    flex: 1;
    min-width: 0;
}

.trending-content {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.trending-content h4 {
    flex: 1;
    min-width: 0;
}

/* Hero Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-arrow:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.hero-arrow.prev { left: 30px; }
.hero-arrow.next { right: 30px; }

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--dark-800);
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--dark-700);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-shine);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-3d);
}

.stat-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s linear infinite;
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-3d);
    transform: perspective(500px) rotateY(-5deg);
    transition: transform 0.4s;
}

.stat-card:hover .stat-icon {
    transform: perspective(500px) rotateY(5deg) scale(1.1);
}

.stat-icon.blue { background: var(--gradient-primary); }
.stat-icon.cyan { background: linear-gradient(135deg, #00d4ff, #00ffcc); }
.stat-icon.pink { background: var(--gradient-accent); }
.stat-icon.purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-400);
    margin-top: 5px;
}

/* ===== AD BANNERS ===== */
.ad-banner {
    background: var(--dark-700);
    border: 2px dashed var(--dark-500);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.ad-banner::before {
    content: 'ADVERTISEMENT';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--dark-500);
    letter-spacing: 3px;
    font-weight: 700;
    z-index: 1;
}

.ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--light-400);
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-700), var(--dark-600));
}

.ad-content.header-ad { height: 90px; }
.ad-content.sidebar-ad { height: 250px; }
.ad-content.inline-ad { height: 100px; margin: 30px 0; }
.ad-content.large-ad { height: 200px; margin: 40px 0; }

.ad-content i {
    font-size: 2rem;
    opacity: 0.5;
}

.ad-content span {
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.section-title i {
    color: var(--accent);
    animation: float 3s ease-in-out infinite;
}

.view-all {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.view-all:hover {
    color: var(--primary);
    gap: 15px;
}

/* ===== NEWS CARDS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-card {
    background: var(--dark-700);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
    position: relative;
    animation: slide-up 0.6s ease-out backwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-3d);
}

.news-card:hover::before {
    opacity: 0.05;
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.15);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.news-category.politics { background: linear-gradient(135deg, #dc2626, #ef4444); }
.news-category.sports { background: linear-gradient(135deg, #059669, #10b981); }
.news-category.entertainment { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.news-category.business { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.news-category.technology { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.news-category.international { background: linear-gradient(135deg, #b45309, #f59e0b); }
.news-category.education { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.news-category.health { background: linear-gradient(135deg, #be185d, #ec4899); }

.news-card-content {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.news-card-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.news-card:hover .news-card-title {
    color: var(--secondary);
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--light-400);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--light-400);
    padding-top: 15px;
    border-top: 1px solid var(--dark-500);
    gap: 10px;
    flex-wrap: nowrap;
}

.news-card-meta > span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card-meta i {
    color: var(--primary);
    margin-right: 5px;
}

/* ===== FEATURED LAYOUT ===== */
.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}

.featured-main {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    height: 500px;
    text-decoration: none;
    color: white;
    display: block;
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-main:hover img {
    transform: scale(1.1);
}

.featured-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
}

.featured-main-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.2;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-item {
    background: var(--dark-700);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.featured-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    background: var(--dark-600);
}

.featured-item img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 10px;
}

.featured-item-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.featured-item-content span {
    font-size: 0.8rem;
    color: var(--light-400);
}

/* ===== VIDEO SECTION ===== */
.video-section {
    background: linear-gradient(180deg, var(--dark-800) 0%, var(--dark-900) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,0,102,0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
}

.video-card {
    background: var(--dark-700);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: var(--shadow-accent);
    transition: all 0.3s ease;
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 40px rgba(255,0,102,0.6);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-content {
    padding: 20px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-meta {
    font-size: 0.8rem;
    color: var(--light-400);
}

/* ===== SIDEBAR ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: var(--dark-700);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.05);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--dark-500);
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-title i {
    color: var(--accent);
    animation: float 3s ease-in-out infinite;
}

.trending-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--dark-500);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    padding-left: 10px;
}

.trending-number {
    width: 35px;
    height: 35px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-3d);
}

.trending-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    transition: color 0.3s;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.trending-item:hover .trending-content h4 {
    color: var(--secondary);
}

.trending-content span {
    font-size: 0.8rem;
    color: var(--light-400);
}

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-3d);
}

.category-tag:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-900);
    padding: 40px 0 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand {
    grid-column: 1;
}

.footer-links:first-of-type {
    grid-column: 2;
}

.footer-links:nth-of-type(2) {
    grid-column: 3;
}

.footer-links:last-of-type {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 3px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.footer-brand .tagline {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--light-400);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 50px;
    height: 50px;
    background: var(--dark-700);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-300);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-400);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.footer-links a i {
    color: var(--primary);
    font-size: 0.7rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--light-400);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { 
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    .footer-links:last-of-type {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-main { height: 400px; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header { top: 48px; }
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .hero { 
        margin-top: 150px; 
        min-height: auto;
    }
    .hero-slider { height: 450px; }
    .hero-title { font-size: 2rem; }
    .hero-excerpt { font-size: 1rem; }
    .hero-content { 
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        padding-top: 2.5rem;
    }
    .hero-badge {
        margin-bottom: 20px;
    }
    .hero-meta {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 0.85rem;
    }
    .hero-meta > span {
        flex: 0 0 auto;
    }
    .share-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
        gap: 6px;
        flex: 0 0 auto;
        min-height: 38px;
    }
    .share-btn i {
        font-size: 0.8rem;
    }
    .news-card-meta {
        gap: 8px;
        align-items: center;
    }
    .share-btn-small {
        margin-left: auto;
        flex: 0 0 auto;
        min-width: 40px;
        min-height: 36px;
        padding: 8px 12px;
    }
    .video-meta {
        gap: 10px;
        align-items: center;
    }
    .video-meta .share-btn-small {
        flex: 0 0 auto;
        min-width: 40px;
        min-height: 36px;
    }
    .hero-arrow {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .hero-arrow.prev { left: 15px; }
    .hero-arrow.next { right: 15px; }
    
    .news-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .stats-grid { 
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .stats-bar {
        padding: 18px 0;
    }
    .stat-card {
        padding: 15px;
        gap: 15px;
    }
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }
    .search-box { display: none; }
    .footer-grid { 
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .footer-links:last-of-type {
        grid-column: 1;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    .footer-bottom { 
        flex-direction: column; 
        gap: 10px; 
        text-align: center; 
        font-size: 0.8rem;
    }
    .footer {
        padding: 30px 0 0;
    }
    
    .featured-main {
        height: 350px;
    }
    
    .featured-main-title {
        font-size: 1.5rem;
    }
    
    .featured-item {
        flex-direction: column;
    }
    
    .featured-item img {
        width: 100%;
        height: 150px;
    }
    
    .category-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    
    .category-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-main {
        padding: 12px 0;
    }
    
    .header-content {
        gap: 10px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .btn-3d {
        padding: 10px 18px;
        font-size: 0.75rem;
    }
    
    .btn-3d i {
        font-size: 0.9rem;
    }
    
    .hero { 
        margin-top: 140px; 
    }
    
    .hero-slider { height: 380px; }
    .hero-title { font-size: 1.6rem; }
    .hero-excerpt { font-size: 0.9rem; }
    .hero-content { 
        padding: 2rem 1.2rem 1.2rem 1.2rem;
        padding-top: 2.5rem;
    }
    .hero-badge {
        padding: 8px 18px;
        font-size: 0.75rem;
        margin-bottom: 18px;
    }
    .hero-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 0.8rem;
        align-items: flex-start;
    }
    .hero-meta > span {
        width: 100%;
    }
    .share-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        margin-top: 5px;
    }
    .share-btn i {
        font-size: 0.85rem;
    }
    .share-btn-small {
        padding: 8px 12px;
        font-size: 0.7rem;
        min-width: 44px;
        min-height: 44px;
        margin-left: auto;
        flex-shrink: 0;
    }
    .share-btn-small i {
        font-size: 0.75rem;
    }
    .share-btn-trending {
        padding: 6px 10px;
        font-size: 0.65rem;
        min-width: 36px;
        min-height: 32px;
        align-self: flex-start;
        margin-top: 8px;
    }
    .share-btn-trending i {
        font-size: 0.7rem;
    }
    .news-card-meta {
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
    }
    .news-card-meta > span {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .video-meta {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .video-meta > span {
        flex: 1 1 auto;
        min-width: 0;
    }
    .video-meta .share-btn-small {
        width: auto;
        justify-content: center;
        margin-left: auto;
        flex: 0 0 auto;
    }
    .share-notification {
        bottom: 20px;
        left: 20px;
        right: 20px;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .news-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px;
    }
    
    .video-grid { grid-template-columns: 1fr; }
    
    .logo-text h1 { font-size: 1.8rem; }
    
    .stats-bar {
        padding: 15px 0;
    }
    
    .stats-grid {
        gap: 10px;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-card {
        padding: 12px 15px;
        flex-direction: row;
        text-align: left;
        gap: 12px;
        border-radius: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
        flex-shrink: 0;
    }
    
    .stat-value {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 0.7rem;
        margin-top: 2px;
    }
    
    .stat-content {
        min-width: 0;
        flex: 1;
    }
    
    .featured-main {
        height: 300px;
    }
    
    .featured-main-content {
        padding: 25px;
    }
    
    .featured-main-title {
        font-size: 1.3rem;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .news-card-title {
        font-size: 1rem;
    }
    
    .news-card-excerpt {
        font-size: 0.85rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .breaking-label {
        padding: 6px 15px;
        font-size: 0.75rem;
        margin-right: 10px;
    }
    
    .ticker-content a {
        font-size: 0.85rem;
        margin-right: 50px;
    }
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-tab {
    padding: 12px 25px;
    background: var(--dark-700);
    border: 2px solid var(--dark-500);
    border-radius: 50px;
    color: var(--light-300);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

/* ===== PAGE STYLES ===== */
.page-hero {
    margin-top: 160px;
    padding: 60px 0;
    background: var(--dark-800);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-hero {
    display: none !important;
}

.category-hero + main.section,
main.category-main {
    margin-top: 140px;
    padding-top: 40px;
}

@media (max-width: 768px) {
    .category-hero + main.section,
    main.category-main {
        margin-top: 150px;
        padding-top: 30px;
    }
}

@media (max-width: 480px) {
    .category-hero + main.section,
    main.category-main {
        margin-top: 140px;
        padding-top: 25px;
    }
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,102,255,0.1) 0%, transparent 70%);
}

.page-hero-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-3d);
    animation: float 3s ease-in-out infinite;
}

.page-title {
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--light-400);
    font-size: 1.1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    position: relative;
    transition: all 0.3s;
    border-radius: 3px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger::before { top: -10px; }
.hamburger::after { top: 10px; }

.hamburger.active {
    background: transparent;
}

.hamburger.active::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger.active::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Main Content Wrapper */
.main-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.main-content {
    min-width: 0; /* Prevents grid overflow */
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    
    /* Mobile Navigation */
    .nav-bar {
        position: fixed;
        top: 112px;
        left: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 112px);
        background: var(--dark-800);
        border-right: 1px solid rgba(255,255,255,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 2px 0 20px rgba(0,0,0,0.5);
    }
    
    .nav-bar.mobile-active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-link {
        padding: 18px 25px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        border-radius: 0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(0, 212, 255, 0.1);
        border-left: 3px solid var(--primary);
    }
    
    /* Main Content Layout */
    .main-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        order: -1; /* Show sidebar first on mobile */
    }
}
