/* ============================================================
   YesNo.Fun News - Main Stylesheet
   Inspired by Cointelegraph's modern, clean design
   ============================================================ */

/* ==================== CSS Variables ==================== */
:root {
    /* Colors - Light Theme */
    --primary: #0052FF;
    --primary-dark: #0039B3;
    --primary-light: #E5EDFF;
    --success: #00D395;
    --warning: #FFB800;
    --danger: #FF4B4B;
    --purple: #8C52FF;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.2s ease;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary: #3B82F6;
    --primary-light: #1E3A8A;
    
    --white: #111827;
    --black: #FFFFFF;
    --gray-50: #1F2937;
    --gray-100: #374151;
    --gray-200: #4B5563;
    --gray-300: #6B7280;
    --gray-400: #9CA3AF;
    --gray-500: #D1D5DB;
    --gray-600: #E5E7EB;
    --gray-700: #F3F4F6;
    --gray-800: #F9FAFB;
    --gray-900: #FFFFFF;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
}

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--white);
    transition: var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ==================== Breaking Ticker ==================== */
.breaking-ticker {
    background: var(--danger);
    color: white;
    position: relative;
    display: none;
}

.breaking-ticker.active {
    display: block;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    height: 40px;
    gap: var(--spacing-lg);
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 40px;
    margin-bottom: -19px;
}

.ticker-items {
    display: flex;
    align-items: center;
    position: absolute;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding-right: var(--spacing-2xl);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.ticker-item:hover {
    text-decoration: underline;
}

.ticker-item i {
    font-size: 12px;
    opacity: 0.8;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-close:hover {
    opacity: 1;
}

/* ==================== Header ==================== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(var(--white), 0.95);
}

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

.logo svg {
    color: var(--gray-900);
}

/* Navigation */
.nav-desktop {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: var(--spacing-sm) 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.search-toggle,
.theme-toggle,
.menu-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 18px;
}

.search-toggle:hover,
.theme-toggle:hover,
.menu-toggle:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.menu-toggle {
    display: none;
}

/* Categories Bar */
.categories-bar {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: var(--spacing-sm) 0;
}

.categories-wrap {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
}

.categories-prev,
.categories-next {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.categories-prev:hover,
.categories-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.categories-scroll {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.categories-list {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-xs) 0;
}

.category-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    white-space: nowrap;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.category-item.active {
    background: var(--primary);
    color: white;
}

.category-item i {
    font-size: 16px;
}

/* ==================== Mobile Menu ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.mobile-nav-link {
    padding: var(--spacing-sm) 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-link.active {
    color: var(--primary);
}

/* ==================== Search Overlay ==================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-modal {
    width: 90%;
    max-width: 600px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
}

.search-header h3 {
    font-size: 18px;
    margin: 0;
}

.search-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    cursor: pointer;
}

.search-body {
    padding: var(--spacing-lg);
}

.search-input-wrap {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.search-input-wrap i {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-input-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 var(--spacing-md) 0 45px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 16px;
    background: var(--white);
    color: var(--gray-900);
    transition: var(--transition);
}

.search-input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
}

.trending-searches h4 {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: var(--spacing-md);
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.trending-tag {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.trending-tag:hover {
    background: var(--primary);
    color: white;
}

/* ==================== Hero Section ==================== */
.hero {
    margin: var(--spacing-2xl) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
}

.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.hero-main img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.hero-main:hover img {
    transform: scale(1.05);
}

.hero-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xl);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.hero-category {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.hero-main h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.hero-main p {
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--spacing-md);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.hero-side-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.hero-side-item:hover {
    background: var(--gray-100);
    transform: translateX(-4px);
}

.hero-side-item img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.hero-side-content h4 {
    font-size: 16px;
    margin-bottom: var(--spacing-xs);
}

.hero-side-meta {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ==================== Content Grid ==================== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

/* Feed Header */
.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--gray-200);
}

.feed-tabs {
    display: flex;
    gap: var(--spacing-sm);
}

.feed-tab {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.feed-tab:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.feed-tab.active {
    background: var(--primary);
    color: white;
}

.feed-sort select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-700);
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

/* Articles Grid */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.article-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.article-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    display: flex;
    flex-direction: column;
}

.article-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.article-category {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-badge.breaking {
    background: var(--danger);
    color: white;
}

.article-badge.hot {
    background: var(--warning);
    color: var(--gray-900);
}

.article-badge.trending {
    background: var(--purple);
    color: white;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.article-excerpt {
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: auto;
}

.article-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 24px;
    height: 24px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--gray-500);
    font-size: 13px;
}

.article-stats i {
    margin-right: 4px;
}

/* Most Read Badge */
.most-read-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    width: fit-content;
}

.most-read-badge.rank-1 {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #78350F;
}

.most-read-badge.rank-2 {
    background: linear-gradient(135deg, #94A3B8, #64748B);
    color: #0F172A;
}

.most-read-badge.rank-3 {
    background: linear-gradient(135deg, #B45309, #92400E);
    color: #FFFBEB;
}

/* Hover underline like Trending */
.most-read-item:hover .most-read-title{
    text-decoration: underline;
}


/* Load More Button */
.load-more {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-2xl);
}

.btn-load {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-2xl);
    background: transparent;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-load:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ==================== Sidebar ==================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.widget {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--gray-200);
}

.widget-header h3 {
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.widget-badge {
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.widget-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

/* Most Read List */
.most-read-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: var(--spacing-xs);
}

.most-read-item:hover {
    background: var(--gray-50);
}

.most-read-rank {
    width: 30px;
    height: 30px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-600);
}

.most-read-rank.top-1 {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
}

.most-read-rank.top-2 {
    background: linear-gradient(135deg, #94A3B8, #64748B);
    color: white;
}

.most-read-rank.top-3 {
    background: linear-gradient(135deg, #B45309, #92400E);
    color: white;
}

.most-read-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.most-read-meta {
    font-size: 11px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Markets List */
.markets-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.market-item {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-200);
}

.market-item:last-child {
    border-bottom: none;
}

.market-question {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.market-probability {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.probability-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.probability-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.probability-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
}

/* Newsletter Widget */
.widget-newsletter {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
}

.widget-newsletter h3,
.widget-newsletter p {
    color: white;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.newsletter-form input {
    flex: 1;
    height: 44px;
    padding: 0 var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--warning);
    border-radius: var(--radius-md);
    color: var(--gray-900);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

/* Topics Cloud */
.topics-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.topic-tag {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.topic-tag:hover {
    background: var(--primary);
    color: white;
}

/* ==================== Footer - Light & Dark with Different Shades ==================== */
.footer {
    background: #F8FAFC;  /* Light blue-gray for light mode */
    padding: 48px 0 24px;
    margin-top: 64px;
    border-top: 1px solid #E2E8F0;
}

[data-theme="dark"] .footer {
    background: #0B1120;  /* Dark blue-black for dark mode */
    border-top-color: #1E293B;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

/* Footer Brand */
.footer-brand p {
    color: #475569;  /* Slate-600 for light mode */
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

[data-theme="dark"] .footer-brand p {
    color: #94A3B8;  /* Slate-400 for dark mode */
}

/* Footer Logo - text color */
.footer-brand svg text {
    fill: #0F172A;  /* Slate-900 for light mode */
    transition: fill 0.2s ease;
}

[data-theme="dark"] .footer-brand svg text {
    fill: #F1F5F9;  /* Slate-100 for dark mode */
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-group h4 {
    color: #1E293B;  /* Slate-800 for light mode */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

[data-theme="dark"] .footer-group h4 {
    color: #E2E8F0;  /* Slate-200 for dark mode */
}

.footer-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-group li {
    margin-bottom: 12px;
}

.footer-group a {
    color: #64748B;  /* Slate-500 for light mode */
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-group a:hover {
    color: #2563EB;  /* Blue-600 for light mode hover */
}

[data-theme="dark"] .footer-group a {
    color: #94A3B8;  /* Slate-400 for dark mode */
}

[data-theme="dark"] .footer-group a:hover {
    color: #60A5FA;  /* Blue-400 for dark mode hover */
}

.footer-group a i {
    font-size: 14px;
    width: 20px;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: #1E293B;
}

.copyright {
    color: #64748B;  /* Slate-500 for light mode */
}

[data-theme="dark"] .copyright {
    color: #94A3B8;  /* Slate-400 for dark mode */
}

.footer-extra {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-extra a {
    color: #64748B;  /* Slate-500 for light mode */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-extra a:hover {
    color: #2563EB;  /* Blue-600 for light mode hover */
}

[data-theme="dark"] .footer-extra a {
    color: #94A3B8;  /* Slate-400 for dark mode */
}

[data-theme="dark"] .footer-extra a:hover {
    color: #60A5FA;  /* Blue-400 for dark mode hover */
}

.separator {
    color: #CBD5E1;  /* Slate-300 for light mode */
    margin: 0 4px;
}

[data-theme="dark"] .separator {
    color: #334155;  /* Slate-700 for dark mode */
}

/* Admin Link */
.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #F1F5F9;  /* Slate-100 for light mode */
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #475569 !important;  /* Slate-600 */
}

.admin-link i {
    color: #F59E0B;  /* Amber-500 */
    font-size: 12px;
}

.admin-link:hover {
    background: #E2E8F0;  /* Slate-200 for light mode hover */
    color: #2563EB !important;
}

[data-theme="dark"] .admin-link {
    background: #1E293B;  /* Slate-800 for dark mode */
    color: #E2E8F0 !important;  /* Slate-200 */
}

[data-theme="dark"] .admin-link:hover {
    background: #2D3A4F;  /* Slightly lighter for dark mode hover */
    color: #60A5FA !important;
}

[data-theme="dark"] .admin-link i {
    color: #FBBF24;  /* Amber-400 for dark mode */
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 48px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-group h4 {
        margin-bottom: 16px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-extra {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-extra {
        flex-direction: column;
        gap: 12px;
    }
    
    .separator {
        display: none;
    }
    
    .footer-extra a {
        width: 100%;
        justify-content: center;
    }
    
    .admin-link {
        width: auto;
        display: inline-flex;
    }
}

/* Optional: Add subtle hover effect to footer groups */
.footer-group a i {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-group a:hover i {
    opacity: 1;
}

/* Optional: Add decorative element */
.footer-brand::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #2cff9a);
    margin-bottom: 20px;
    border-radius: 2px;
}

[data-theme="dark"] .footer-brand::before {
    background: linear-gradient(90deg, #ff6b6b, #2cff9a);
    opacity: 0.8;
}
/* ==================== Modal ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    margin: 5vh auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 2001;
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    cursor: pointer;
    z-index: 2002;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-content {
    padding: var(--spacing-xl);
    overflow-y: auto;
    max-height: 90vh;
}

/* Article Content */
.article-full {
    max-width: 700px;
    margin: 0 auto;
}

.article-full-header {
    margin-bottom: var(--spacing-xl);
}

.article-full-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.article-full-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.article-full-author img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

.article-full-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.article-full-info p {
    font-size: 12px;
    margin: 0;
}

.article-full-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.article-full-body {
    line-height: 1.8;
    color: var(--gray-700);
}

.article-full-body h3 {
    margin: var(--spacing-xl) 0 var(--spacing-md);
}

.article-full-body p {
    margin-bottom: var(--spacing-md);
}

.article-full-body img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.article-full-body blockquote {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--gray-700);
}

.prediction-section {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-xl);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    text-align: center;
}

.prediction-options {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin: var(--spacing-lg) 0;
}

.prediction-yes,
.prediction-no {
    flex: 1;
    max-width: 200px;
    padding: var(--spacing-lg);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.prediction-yes {
    background: var(--success);
    color: white;
}

.prediction-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 211, 149, 0.3);
}

.prediction-no {
    background: var(--danger);
    color: white;
}

.prediction-no:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 75, 75, 0.3);
}

.prediction-option-icon {
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
}

.prediction-option-label {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-2xl);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.vote-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==================== Loading States ==================== */
.loading {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--gray-500);
}

.loading i {
    font-size: 32px;
    margin-bottom: var(--spacing-md);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .article-card {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 768px) {
    .hero-main h2 {
        font-size: 1.5rem;
    }
    
    .article-card {
        grid-template-columns: 1fr;
    }
    
    .article-image {
        height: 200px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .feed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .feed-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: var(--spacing-sm);
    }
    
    .feed-tab {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .hero-main-content {
        padding: var(--spacing-md);
    }
    
    .hero-main h2 {
        font-size: 1.25rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .modal-container {
        width: 95%;
        margin: 2.5vh auto;
    }
    
    .prediction-options {
        flex-direction: column;
        align-items: center;
    }
    
    .prediction-yes,
    .prediction-no {
        max-width: 100%;
    }
}

/* Crypto Price Ticker - Light/Dark compatible */
.crypto-ticker-container {
    background: var(--bg-secondary, #f8f9fa);
    border-bottom: 1px solid var(--border-color, rgba(128, 128, 128, 0.15));
    border-top: 1px solid var(--border-color, rgba(128, 128, 128, 0.15));
    padding: 8px 0;
    position: relative;
    width: 100%;
    z-index: 5;
}

.crypto-ticker-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.crypto-ticker-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f7931a 0%, #f0b90b 100%);
    padding: 4px 12px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(247, 147, 26, 0.2);
}

.crypto-ticker-label i {
    font-size: 0.8rem;
}

.crypto-ticker {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

.ticker-track {
    display: inline-flex;
    gap: 24px;
    animation: tickerScroll 40s linear infinite;
    padding-left: 20px;
    align-items: center;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.coin-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 6px;
    background: var(--bg-tertiary, rgba(128, 128, 128, 0.05));
    border-radius: 40px;
    border: 1px solid var(--border-color, rgba(128, 128, 128, 0.1));
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text-primary, #1a1a1a);
}

.coin-item:hover {
    background: var(--bg-hover, rgba(128, 128, 128, 0.1));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.coin-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: transparent;
    display: inline-block;
    flex-shrink: 0;
}

.coin-symbol {
    font-weight: 700;
    opacity: 0.9;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.coin-price {
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-primary, #1a1a1a);
}

.coin-change {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 30px;
    background: var(--bg-tertiary, rgba(128, 128, 128, 0.08));
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

.positive {
    color: #00b894;
}

.negative {
    color: #e17055;
}

.crypto-ticker-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary, #666);
    background: var(--bg-tertiary, rgba(128, 128, 128, 0.05));
    padding: 4px 10px;
    border-radius: 30px;
    white-space: nowrap;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #00b894;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.live-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark mode support - using your existing theme variables */
[data-theme="dark"] .coin-item,
.dark-mode .coin-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
}

[data-theme="dark"] .coin-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .crypto-ticker-container {
    background: var(--bg-secondary-dark, #1e1e2f);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Logo backgrounds */
.logo-btc { background-image: url('https://cryptologos.cc/logos/bitcoin-btc-logo.png?v=040'); }
.logo-eth { background-image: url('https://cryptologos.cc/logos/ethereum-eth-logo.png?v=040'); }
.logo-bnb { background-image: url('https://cryptologos.cc/logos/bnb-bnb-logo.png?v=040'); }
.logo-sol { background-image: url('https://cryptologos.cc/logos/solana-sol-logo.png?v=040'); }
.logo-xrp { background-image: url('https://cryptologos.cc/logos/xrp-xrp-logo.png?v=040'); }
.logo-ada { background-image: url('https://cryptologos.cc/logos/cardano-ada-logo.png?v=040'); }
.logo-doge { background-image: url('https://cryptologos.cc/logos/dogecoin-doge-logo.png?v=040'); }
.logo-dot { background-image: url('https://cryptologos.cc/logos/polkadot-new-dot-logo.png?v=040'); }
.logo-matic { background-image: url('https://cryptologos.cc/logos/polygon-matic-logo.png?v=040'); }
.logo-link { background-image: url('https://cryptologos.cc/logos/chainlink-link-logo.png?v=040'); }
.logo-avax { background-image: url('https://cryptologos.cc/logos/avalanche-avax-logo.png?v=040'); }

/* Responsive */
@media (max-width: 768px) {
    .crypto-ticker-label span {
        display: none;
    }
    
    .crypto-ticker-label {
        padding: 4px 8px;
    }
    
    .crypto-ticker-status .live-text {
        display: none;
    }
    
    .crypto-ticker-status {
        padding: 4px 8px;
    }
    
    .coin-item {
        padding: 3px 8px 3px 4px;
        font-size: 0.75rem;
    }
    
    .coin-logo {
        width: 18px;
        height: 18px;
    }
}

/* ============================================================
   MOBILE RESPONSIVENESS ADD-ON
   This CSS makes the entire site fully responsive across all devices
   without modifying existing styles - just append to news.css
   ============================================================ */

/* Extra small devices (phones, 320px and up) */
@media screen and (max-width: 480px) {
    /* Header & Navigation */
    .header-wrap {
        height: 60px;
        padding: 0 10px;
    }
    
    .logo svg {
        width: 140px;
        height: auto;
    }
    
    .nav-desktop {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .header-right {
        gap: 5px;
    }
    
    .search-toggle,
    .theme-toggle,
    .menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    /* Breaking Ticker */
    .ticker-wrap {
        height: 35px;
        gap: 10px;
        padding: 0 10px;
    }
    
    .ticker-label span:not(.pulse-dot) {
        font-size: 11px;
    }
    
    .ticker-item {
        font-size: 12px;
        padding-right: 20px;
    }
    
    .ticker-item i {
        display: none;
    }
    
    /* Categories Bar */
    .categories-bar {
        padding: 5px 0;
    }
    
    .categories-wrap {
        gap: 5px;
        padding: 0 5px;
    }
    
    .categories-prev,
    .categories-next {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    
    .category-item {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .category-item i {
        font-size: 14px;
    }
    
    /* Crypto Ticker */
    .crypto-ticker-wrap {
        gap: 8px;
        padding: 0 10px;
    }
    
    .crypto-ticker-label {
        padding: 3px 8px;
    }
    
    .crypto-ticker-label i {
        font-size: 12px;
    }
    
    .crypto-ticker-label span {
        font-size: 10px;
    }
    
    .crypto-ticker {
        height: 32px;
    }
    
    .coin-item {
        padding: 3px 8px 3px 4px;
        font-size: 11px;
        gap: 4px;
    }
    
    .coin-logo {
        width: 16px;
        height: 16px;
    }
    
    .coin-symbol {
        font-size: 11px;
    }
    
    .coin-price {
        font-size: 11px;
    }
    
    .coin-change {
        font-size: 9px;
        padding: 2px 4px;
        min-width: 38px;
    }
    
    .crypto-ticker-status {
        padding: 3px 6px;
    }
    
    .live-dot {
        width: 4px;
        height: 4px;
    }
    
    /* Hero Section */
    .hero {
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-main img {
        height: 200px;
    }
    
    .hero-main-content {
        padding: 15px;
    }
    
    .hero-main h2 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .hero-main p {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 5px;
    }
    
    .hero-category {
    font-size: 10px;
    padding: 2px 8px;
}

.hero-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.hero-side-item {
    padding: 10px;
    cursor: pointer;
}

.hero-side-item img {
    width: 80px;
    height: 60px;
}

.hero-side-content h4 {
    font-size: 13px;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hover effect */
.hero-side-item:hover h4{
    text-decoration: underline;
}

.hero-side-meta {
    font-size: 10px;
}
    
    
    /* Content Grid */
    .content-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin: 20px 0;
        padding: 0 10px;
    }
    
    /* Feed Header */
    .feed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .feed-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 5px;
        gap: 5px;
    }
    
    .feed-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .feed-tab {
        padding: 6px 15px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .feed-tab i {
        font-size: 12px;
    }
    
    .feed-sort {
        width: 100%;
    }
    
    .feed-sort select {
        width: 100%;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Articles Grid */
    .articles-grid {
        gap: 15px;
    }
    
    .article-card {
        display: flex;
        flex-direction: column;
        padding: 15px;
        gap: 12px;
    }
    
    .article-image {
        width: 100%;
        height: 180px;
    }
    
    .article-content {
        padding: 0;
    }
    
    .article-header {
        gap: 5px;
        margin-bottom: 8px;
    }
    
    .article-category {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .article-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .article-title {
        font-size: 1rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .article-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
        margin-bottom: 10px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .article-author {
        font-size: 12px;
    }
    
    .author-avatar {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .article-stats {
        font-size: 11px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    /* Sidebar */
    .sidebar {
        order: 2;
        gap: 15px;
    }
    
    .widget {
        padding: 15px;
    }
    
    .widget-header {
        margin-bottom: 15px;
    }
    
    .widget-header h3 {
        font-size: 14px;
    }
    
    .widget-header h3 i {
        font-size: 14px;
    }
    
    .widget-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .most-read-item {
        padding: 8px;
    }
    
    .most-read-rank {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .most-read-title {
        font-size: 12px;
    }
    
    .most-read-meta {
        font-size: 10px;
    }
    
    .market-question {
        font-size: 12px;
    }
    
    .probability-value {
        font-size: 11px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
        height: 40px;
        font-size: 12px;
    }
    
    .newsletter-form button {
        width: 100%;
        height: 40px;
    }
    
    .topic-tag {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    /* Load More Button */
    .load-more {
        margin-top: 20px;
    }
    
    .btn-load {
        width: 100%;
        padding: 12px 20px;
        font-size: 13px;
        justify-content: center;
    }
    
    /* Footer */
    .footer {
        padding: 30px 15px 20px;
        margin-top: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-brand p {
        font-size: 12px;
        max-width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-group h4 {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .footer-group a {
        font-size: 12px;
    }
    
    .footer-group a i {
        font-size: 12px;
        width: 18px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 15px;
    }
    
    .copyright {
        font-size: 11px;
        order: 2;
    }
    
    .footer-extra {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        order: 1;
    }
    
    .footer-extra a {
        font-size: 11px;
    }
    
    .separator {
        display: none;
    }
    
    .admin-link {
        padding: 4px 10px;
        font-size: 10px;
    }
    
    /* Mobile Menu */
    .mobile-menu {
        width: 280px;
        padding: 20px;
    }
    
    .mobile-menu-header {
        margin-bottom: 20px;
    }
    
    .mobile-logo svg {
        width: 100px;
        height: auto;
    }
    
    .mobile-nav-link {
        font-size: 14px;
        padding: 10px 0;
    }
    
    /* Search Overlay */
    .search-modal {
        width: 95%;
    }
    
    .search-header {
        padding: 15px;
    }
    
    .search-header h3 {
        font-size: 16px;
    }
    
    .search-body {
        padding: 15px;
    }
    
    .search-input-wrap input {
        height: 44px;
        font-size: 14px;
    }
    
    .trending-searches h4 {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .trending-tag {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    /* Article Modal */
    .modal-container {
        width: 95%;
        margin: 2.5vh auto;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
    
    .article-full-header {
        margin-bottom: 20px;
    }
    
    .article-full-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-full-author img {
        width: 32px;
        height: 32px;
    }
    
    .article-full-info h4 {
        font-size: 12px;
    }
    
    .article-full-info p {
        font-size: 10px;
    }
    
    .article-full-image {
        max-height: 200px;
    }
    
    .article-full-body {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .article-full-body h3 {
        font-size: 1.1rem;
        margin: 20px 0 10px;
    }
    
    .prediction-section {
        padding: 20px 15px;
    }
    
    .prediction-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .prediction-yes,
    .prediction-no {
        max-width: 100%;
        padding: 15px;
    }
    
    .prediction-option-icon {
        font-size: 24px;
    }
    
    .prediction-option-label {
        font-size: 16px;
    }
    
    .vote-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        justify-content: center;
    }
}

/* Small devices (tablets, 481px to 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Header */
    .header-wrap {
        height: 65px;
    }
    
    .nav-desktop {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .logo svg {
        width: 160px;
    }
    
    /* Hero Section */
    .hero {
        margin: 25px 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-main img {
        height: 300px;
    }
    
    .hero-main h2 {
        font-size: 1.5rem;
    }
    
    .hero-side {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Content Grid */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Articles */
    .article-card {
        grid-template-columns: 200px 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .article-image {
        height: 140px;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    /* Sidebar */
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .widget:last-child {
        grid-column: span 2;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Medium devices (tablets landscape, 769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 25px;
    }
    
    /* Header */
    .nav-desktop {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    /* Hero Section */
    .hero-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 20px;
    }
    
    .hero-main img {
        height: 350px;
    }
    
    .hero-main h2 {
        font-size: 1.8rem;
    }
    
    /* Articles */
    .article-card {
        grid-template-columns: 240px 1fr;
    }
    
    .article-image {
        height: 150px;
    }
    
    /* Sidebar */
    .sidebar {
        width: 280px;
    }
    
    /* Footer */
    .footer-links {
        gap: 25px;
    }
}

/* Fix for very small devices (320px and below) */
@media screen and (max-width: 320px) {
    .logo svg {
        width: 120px;
    }
    
    .search-toggle,
    .theme-toggle,
    .menu-toggle {
        width: 32px;
        height: 32px;
    }
    
    .crypto-ticker-label {
        display: none;
    }
    
    .crypto-ticker-status .live-text {
        display: none;
    }
    
    .coin-item {
        padding: 2px 6px 2px 3px;
    }
    
    .coin-symbol {
        display: none;
    }
    
    .hero-side {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .footer-extra {
        flex-direction: column;
        gap: 8px;
    }
}

/* Landscape mode fixes */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .mobile-menu {
        padding: 15px;
        overflow-y: auto;
    }
    
    .mobile-nav {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .modal-container {
        max-height: 85vh;
        margin: 7.5vh auto;
    }
    
    .modal-content {
        max-height: 85vh;
    }
    
    .search-modal {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Fix for notched phones */
@supports (padding: max(0px)) {
    .header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .footer {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    
    .mobile-menu {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .category-item,
    .article-card,
    .most-read-item,
    .topic-tag,
    .btn-load,
    .coin-item {
        cursor: default;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-link:active,
    .category-item:active,
    .article-card:active {
        opacity: 0.7;
    }
    
    .feed-tab,
    .search-toggle,
    .theme-toggle,
    .menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .coin-item {
        padding: 6px 12px 6px 6px;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .sidebar,
    .crypto-ticker-container,
    .breaking-ticker,
    .search-overlay,
    .mobile-menu,
    .modal-close,
    .load-more,
    .feed-tabs,
    .feed-sort {
        display: none !important;
    }
    
    .content-grid {
        display: block;
    }
    
    .article-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ============================================================
   CATEGORIES BAR MOBILE FIX - Make categories smaller and show more
   ============================================================ */

/* Small phones (up to 480px) */
@media screen and (max-width: 480px) {
    .categories-bar {
        padding: 4px 0;
    }
    
    .categories-wrap {
        gap: 4px;
    }
    
    .categories-prev,
    .categories-next {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 10px;
    }
    
    .categories-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .categories-scroll::-webkit-scrollbar {
        display: none;
    }
    
    .categories-list {
        gap: 6px;
        padding: 2px 0;
    }
    
    .category-item {
        padding: 4px 10px;
        font-size: 11px;
        gap: 4px;
        white-space: nowrap;
        border-radius: 20px;
    }
    
    .category-item i {
        font-size: 10px;
    }
    
    /* Remove text from some categories to save space (optional) */
    .category-item span {
        font-size: 10px;
        font-weight: 500;
    }
    
    /* Make navigation buttons smaller */
    .categories-prev i,
    .categories-next i {
        font-size: 10px;
    }
}

/* Extra small phones (320px and below) */
@media screen and (max-width: 360px) {
    .categories-bar {
        padding: 3px 0;
    }
    
    .category-item {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .category-item i {
        font-size: 9px;
    }
    
    .category-item span {
        font-size: 9px;
    }
    
    .categories-prev,
    .categories-next {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }
}

/* Alternative: Even more compact for very crowded categories */
@media screen and (max-width: 380px) {
    /* Option 1: Hide icons on mobile to save space */
    .category-item i {
        display: none;
    }
    
    .category-item {
        padding: 4px 10px;
    }
}

/* Option 2: If you want to keep icons but make them smaller */
@media screen and (max-width: 420px) {
    .category-item {
        padding: 3px 8px;
    }
    
    .category-item i {
        margin-right: 2px;
        font-size: 9px;
    }
    
    .category-item span {
        font-size: 9px;
    }
}

/* Tablet fix (481px to 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .categories-bar {
        padding: 5px 0;
    }
    
    .category-item {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .category-item i {
        font-size: 11px;
    }
}

/* Make categories scrollable horizontally with more items visible */
@media screen and (max-width: 768px) {
    .categories-wrap {
        width: 100%;
    }
    
    .categories-scroll {
        flex: 1;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .categories-list {
        display: inline-flex;
        flex-wrap: nowrap;
        min-width: 100%;
    }
    
    /* Ensure at least 4-5 categories visible */
    .category-item {
        flex: 0 0 auto;
    }
    
    /* Hide scrollbar but keep functionality */
    .categories-scroll {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .categories-scroll::-webkit-scrollbar {
        display: none;
    }
}

/* Force more categories to show by reducing padding/margin */
@media screen and (max-width: 400px) {
    .categories-list {
        gap: 4px;
    }
    
    .category-item {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    /* Remove left/right padding from container to maximize space */
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Very small devices - show even more categories */
@media screen and (max-width: 340px) {
    .category-item {
        padding: 2px 6px;
        font-size: 9px;
    }
    
    .category-item i {
        display: none; /* Hide icons on very small screens */
    }
    
    .categories-prev,
    .categories-next {
        display: none; /* Hide navigation buttons on very small screens */
    }
    
    .categories-wrap {
        justify-content: center;
    }
}

/* Fix for category items with long text */
.category-item {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 480px) {
    .category-item {
        max-width: 90px;
    }
}

@media screen and (max-width: 360px) {
    .category-item {
        max-width: 75px;
    }
}

/* Ensure the categories bar doesn't push content */
.categories-bar + .crypto-ticker-container {
    margin-top: 0;
}

/* Optional: Make categories wrap on very small screens if needed */
@media screen and (max-width: 320px) {
    .categories-list {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .category-item {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* ============================================================
   CRYPTO PRICE TICKER MOBILE FIX - Make ticker smaller and compact
   ============================================================ */

/* Small phones (up to 480px) */
@media screen and (max-width: 480px) {
    .crypto-ticker-container {
        padding: 4px 0;
    }
    
    .crypto-ticker-wrap {
        gap: 6px;
        padding: 0 8px;
    }
    
    /* Make the LIVE label smaller */
    .crypto-ticker-label {
        padding: 2px 8px;
        gap: 3px;
        border-radius: 20px;
    }
    
    .crypto-ticker-label i {
        font-size: 10px;
    }
    
    .crypto-ticker-label span {
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }
    
    /* Reduce ticker height */
    .crypto-ticker {
        height: 28px;
    }
    
    /* Make each coin item more compact */
    .coin-item {
        padding: 2px 8px 2px 4px;
        gap: 4px;
        border-radius: 30px;
    }
    
    /* Smaller logos */
    .coin-logo {
        width: 14px;
        height: 14px;
    }
    
    /* Smaller text */
    .coin-symbol {
        font-size: 9px;
        font-weight: 700;
    }
    
    .coin-price {
        font-size: 9px;
        font-weight: 600;
    }
    
    .coin-change {
        font-size: 8px;
        padding: 1px 4px;
        min-width: 32px;
        border-radius: 20px;
    }
    
    /* Make status indicator smaller */
    .crypto-ticker-status {
        padding: 2px 6px;
        gap: 3px;
        border-radius: 20px;
    }
    
    .live-dot {
        width: 4px;
        height: 4px;
    }
    
    .live-text {
        font-size: 8px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }
    
    /* Slower animation on mobile for better readability */
    .ticker-track {
        animation: tickerScroll 50s linear infinite;
        gap: 16px;
        padding-left: 12px;
    }
}

/* Extra small phones (360px and below) */
@media screen and (max-width: 360px) {
    .crypto-ticker-container {
        padding: 3px 0;
    }
    
    .crypto-ticker-wrap {
        gap: 4px;
    }
    
    /* Hide the "LIVE" text on very small screens, keep only dot */
    .crypto-ticker-label span {
        display: none;
    }
    
    .crypto-ticker-label {
        padding: 2px 6px;
    }
    
    .crypto-ticker-label i {
        font-size: 9px;
        margin: 0;
    }
    
    /* Make coins even more compact */
    .coin-item {
        padding: 2px 6px 2px 3px;
    }
    
    .coin-logo {
        width: 12px;
        height: 12px;
    }
    
    .coin-symbol {
        font-size: 8px;
    }
    
    .coin-price {
        font-size: 8px;
    }
    
    .coin-change {
        font-size: 7px;
        padding: 1px 3px;
        min-width: 28px;
    }
    
    /* Hide status text, keep only dot */
    .crypto-ticker-status .live-text {
        display: none;
    }
    
    .crypto-ticker-status {
        padding: 2px 4px;
    }
}

/* Alternative: Hide coin symbols on very small screens to save space */
@media screen and (max-width: 380px) {
    /* Option 1: Hide symbols, keep only logo and price */
    .coin-symbol {
        display: none;
    }
    
    .coin-item {
        padding: 2px 6px 2px 2px;
    }
}

/* Alternative: Hide price change on very small screens */
@media screen and (max-width: 340px) {
    /* Option 2: Hide change percentage, keep only price */
    .coin-change {
        display: none;
    }
    
    .coin-item {
        padding: 2px 8px 2px 3px;
    }
}

/* Tablet fix (481px to 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .crypto-ticker-container {
        padding: 6px 0;
    }
    
    .crypto-ticker-label {
        padding: 3px 10px;
    }
    
    .crypto-ticker-label i {
        font-size: 11px;
    }
    
    .crypto-ticker-label span {
        font-size: 10px;
    }
    
    .crypto-ticker {
        height: 32px;
    }
    
    .coin-item {
        padding: 3px 10px 3px 5px;
        gap: 5px;
    }
    
    .coin-logo {
        width: 16px;
        height: 16px;
    }
    
    .coin-symbol {
        font-size: 10px;
    }
    
    .coin-price {
        font-size: 10px;
    }
    
    .coin-change {
        font-size: 9px;
        padding: 2px 5px;
        min-width: 38px;
    }
    
    .crypto-ticker-status {
        padding: 3px 8px;
    }
}

/* Landscape mode on mobile */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .crypto-ticker-container {
        padding: 3px 0;
    }
    
    .crypto-ticker {
        height: 26px;
    }
}

/* Make ticker sticky on scroll (optional - uncomment if needed) */
/*
.crypto-ticker-container {
    position: sticky;
    top: 70px;
    z-index: 99;
}

@media screen and (max-width: 768px) {
    .crypto-ticker-container {
        top: 60px;
    }
}
*/

/* Ensure ticker doesn't overflow on very small screens */
@media screen and (max-width: 320px) {
    .crypto-ticker-label {
        display: none; /* Hide label completely on smallest screens */
    }
    
    .crypto-ticker-status {
        padding: 2px 4px;
    }
    
    .coin-item {
        padding: 2px 5px 2px 2px;
    }
    
    .coin-price {
        max-width: 45px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Pause animation on hover for better readability */
@media (hover: hover) {
    .ticker-track:hover {
        animation-play-state: paused;
    }
}

/* Touch devices - pause on tap/click */
@media (hover: none) {
    .coin-item:active {
        animation-play-state: paused;
        background: rgba(128, 128, 128, 0.15);
    }
}

/* Ensure the ticker doesn't push content too much */
.crypto-ticker-container + .main {
    margin-top: 5px;
}

@media screen and (max-width: 480px) {
    .crypto-ticker-container + .main {
        margin-top: 0;
    }
}

/* Fix for iOS devices */
@supports (-webkit-touch-callout: none) {
    .crypto-ticker {
        height: 30px;
    }
    
    @media screen and (max-width: 480px) {
        .crypto-ticker {
            height: 28px;
        }
        
        .coin-item {
            padding: 3px 8px 3px 4px;
        }
    }
}

/* Make the ticker more compact on all mobile devices */
@media screen and (max-width: 768px) {
    /* Speed up animation slightly on mobile to show more content */
    .ticker-track {
        animation-duration: 45s;
    }
    
    /* Reduce gap between coins */
    .ticker-track {
        gap: 15px;
    }
}

/* Optional: Add a subtle gradient mask on mobile for better readability */
@media screen and (max-width: 480px) {
    .crypto-ticker {
        mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    }
}

/* ============================================================
   HERO SECTION MOBILE FIX - Ensure all content is visible
   ============================================================ */

/* Fix for all mobile devices */
@media screen and (max-width: 768px) {
    .hero {
        margin: 20px 0;
        overflow: visible;
    }
    
    .hero-grid {
        display: block;
        width: 100%;
    }
    
    /* Hero main content - make sure everything shows */
    .hero-main {
        width: 100%;
        margin-bottom: 20px;
        position: relative;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .hero-main img {
        width: 100%;
        height: auto;
        min-height: 200px;
        max-height: 250px;
        object-fit: cover;
    }
    
    .hero-main-content {
        position: relative;
        background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
        padding: 20px 15px;
        color: white;
        width: 100%;
    }
    
    .hero-category {
        display: inline-block;
        padding: 4px 10px;
        background: var(--primary, #0052FF);
        border-radius: 4px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 10px;
        color: white;
    }
    
    .hero-main h2 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 10px;
        color: white;
        display: block;
        word-wrap: break-word;
    }
    
    .hero-main p {
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 15px;
        font-size: 14px;
        line-height: 1.5;
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }
    
    /* Hero meta information */
    .hero-meta {
        display: flex;
        align-items: center;
        gap: 15px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .hero-meta i {
        margin-right: 4px;
        font-size: 11px;
    }
    
    .hero-meta span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    
    /* Hero side items */
    .hero-side {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px;
    }
    
    .hero-side-item {
        display: flex;
        gap: 12px;
        padding: 12px;
        background: var(--gray-50, #f8f9fa);
        border-radius: 12px;
        border: 1px solid var(--gray-200, #e5e7eb);
        width: 100%;
    }
    
    .hero-side-item img {
        width: 100px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    .hero-side-content {
        flex: 1;
        min-width: 0; /* Prevents flex overflow */
    }
    
    .hero-side-content h4 {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 6px;
        display: block;
        word-wrap: break-word;
        font-weight: 600;
    }
    
    .hero-side-meta {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 11px;
        color: var(--gray-500, #6b7280);
        flex-wrap: wrap;
    }
    
    .hero-side-meta i {
        font-size: 10px;
        margin-right: 2px;
    }
}

/* Small phones (up to 480px) */
@media screen and (max-width: 480px) {
    .hero-main img {
        min-height: 180px;
        max-height: 200px;
    }
    
    .hero-main-content {
        padding: 15px 12px;
    }
    
    .hero-main h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .hero-main p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .hero-meta {
        font-size: 11px;
        gap: 12px;
    }
    
    .hero-meta i {
        font-size: 10px;
    }
    
    .hero-side-item {
        padding: 10px;
        gap: 10px;
    }
    
    .hero-side-item img {
        width: 80px;
        height: 70px;
    }
    
    .hero-side-content h4 {
        font-size: 13px;
    }
    
    .hero-side-meta {
        font-size: 10px;
        gap: 8px;
    }
}

/* Extra small phones (up to 360px) */
@media screen and (max-width: 360px) {
    .hero-main h2 {
        font-size: 1.1rem;
    }
    
    .hero-main p {
        font-size: 12px;
    }
    
    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .hero-side-item {
        flex-direction: column;
    }
    
    .hero-side-item img {
        width: 100%;
        height: 120px;
    }
}

/* Fix for very small devices (320px) */
@media screen and (max-width: 320px) {
    .hero-main h2 {
        font-size: 1rem;
    }
    
    .hero-category {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .hero-meta span {
        font-size: 10px;
    }
}

/* Ensure hero section doesn't get cut off */
.hero {
    overflow: visible;
}

.hero-main-content {
    overflow: visible;
}

/* Fix for dark mode */
[data-theme="dark"] .hero-side-item {
    background: var(--gray-800, #1f2937);
    border-color: var(--gray-700, #374151);
}

[data-theme="dark"] .hero-side-content h4 {
    color: var(--gray-200, #e5e7eb);
}

[data-theme="dark"] .hero-side-meta {
    color: var(--gray-400, #9ca3af);
}

/* Ensure text doesn't get hidden behind overlays */
.hero-main-content {
    position: relative;
    z-index: 2;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero-main img {
        height: auto;
    }
}

/* Fix for landscape mode */
@media screen and (orientation: landscape) and (max-width: 768px) {
    .hero-main img {
        max-height: 180px;
    }
    
    .hero-side {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   HERO SECTION MOBILE FIX - Ensure all content is visible
   ============================================================ */

/* Fix for all mobile devices */
@media screen and (max-width: 768px) {
    .hero {
        margin: 20px 0;
        overflow: visible;
    }
    
    .hero-grid {
        display: block;
        width: 100%;
    }
    
    /* Hero main content - make sure everything shows */
    .hero-main {
        width: 100%;
        margin-bottom: 20px;
        position: relative;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .hero-main img {
        width: 100%;
        height: auto;
        min-height: 200px;
        max-height: 250px;
        object-fit: cover;
    }
    
    .hero-main-content {
        position: relative;
        background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
        padding: 20px 15px;
        color: white;
        width: 100%;
    }
    
    .hero-category {
        display: inline-block;
        padding: 4px 10px;
        background: var(--primary, #0052FF);
        border-radius: 4px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 10px;
        color: white;
    }
    
    .hero-main h2 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 10px;
        color: white;
        display: block;
        word-wrap: break-word;
    }
    
    .hero-main p {
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 15px;
        font-size: 14px;
        line-height: 1.5;
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }
    
    /* Hero meta information */
    .hero-meta {
        display: flex;
        align-items: center;
        gap: 15px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .hero-meta i {
        margin-right: 4px;
        font-size: 11px;
    }
    
    .hero-meta span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    
    /* Hero side items */
    .hero-side {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px;
    }
    
    .hero-side-item {
        display: flex;
        gap: 12px;
        padding: 12px;
        background: var(--gray-50, #f8f9fa);
        border-radius: 12px;
        border: 1px solid var(--gray-200, #e5e7eb);
        width: 100%;
    }
    
    .hero-side-item img {
        width: 100px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    .hero-side-content {
        flex: 1;
        min-width: 0; /* Prevents flex overflow */
    }
    
    .hero-side-content h4 {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 6px;
        display: block;
        word-wrap: break-word;
        font-weight: 600;
    }
    
    .hero-side-meta {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 11px;
        color: var(--gray-500, #6b7280);
        flex-wrap: wrap;
    }
    
    .hero-side-meta i {
        font-size: 10px;
        margin-right: 2px;
    }
}

/* Small phones (up to 480px) */
@media screen and (max-width: 480px) {
    .hero-main img {
        min-height: 180px;
        max-height: 200px;
    }
    
    .hero-main-content {
        padding: 15px 12px;
    }
    
    .hero-main h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .hero-main p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .hero-meta {
        font-size: 11px;
        gap: 12px;
    }
    
    .hero-meta i {
        font-size: 10px;
    }
    
    .hero-side-item {
        padding: 10px;
        gap: 10px;
    }
    
    .hero-side-item img {
        width: 80px;
        height: 70px;
    }
    
    .hero-side-content h4 {
        font-size: 13px;
    }
    
    .hero-side-meta {
        font-size: 10px;
        gap: 8px;
    }
}

/* Extra small phones (up to 360px) */
@media screen and (max-width: 360px) {
    .hero-main h2 {
        font-size: 1.1rem;
    }
    
    .hero-main p {
        font-size: 12px;
    }
    
    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .hero-side-item {
        flex-direction: column;
    }
    
    .hero-side-item img {
        width: 100%;
        height: 120px;
    }
}

/* Fix for very small devices (320px) */
@media screen and (max-width: 320px) {
    .hero-main h2 {
        font-size: 1rem;
    }
    
    .hero-category {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .hero-meta span {
        font-size: 10px;
    }
}

/* Ensure hero section doesn't get cut off */
.hero {
    overflow: visible;
}

.hero-main-content {
    overflow: visible;
}

/* Fix for dark mode */
[data-theme="dark"] .hero-side-item {
    background: var(--gray-800, #1f2937);
    border-color: var(--gray-700, #374151);
}

[data-theme="dark"] .hero-side-content h4 {
    color: var(--gray-200, #e5e7eb);
}

[data-theme="dark"] .hero-side-meta {
    color: var(--gray-400, #9ca3af);
}

/* Ensure text doesn't get hidden behind overlays */
.hero-main-content {
    position: relative;
    z-index: 2;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero-main img {
        height: auto;
    }
}

/* Fix for landscape mode */
@media screen and (orientation: landscape) and (max-width: 768px) {
    .hero-main img {
        max-height: 180px;
    }
    
    .hero-side {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   FIX FOR DUPLICATE HERO SECTION AND EMPTY SPACE
   ============================================================ */

/* Hide any duplicate hero content that might be coming from elsewhere */
.hero-section-duplicate,
.hero-placeholder,
.hero-default {
    display: none !important;
}

/* Ensure only one hero section is visible */
#heroSection {
    display: block !important;
}

#heroSection .hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
}

/* Fix for mobile - ensure proper display */
@media screen and (max-width: 768px) {
    #heroSection .hero-grid {
        display: block;
    }
    
    #heroSection .hero-main {
        width: 100%;
        margin-bottom: 20px;
    }
    
    #heroSection .hero-side {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Remove any extra padding/margin that might be causing empty space */
.hero + .hero,
.hero + .hero-section,
.hero + .hero-grid {
    display: none !important;
}

/* Fix for the broken article showing above */
.hero-section:not(#heroSection) {
    display: none !important;
}

/* Clear any floating elements that might cause extra space */
.hero::after,
.hero::before {
    display: none !important;
}

/* Ensure the hero section doesn't have extra bottom margin */
#heroSection {
    margin-bottom: 0;
}

/* Fix for any potential duplicate from sample data */
.hero-main[data-id="1"]:first-of-type {
    display: block;
}

.hero-main[data-id="1"]:nth-of-type(2) {
    display: none !important;
}

/* Remove any empty space at the top */
body > :first-child {
    margin-top: 0;
}

/* Ensure the breaking ticker doesn't create extra space */
.breaking-ticker + .header {
    margin-top: 0;
}

/* Fix for any potential margin collapse issues */
.container {
    overflow: visible;
}

/* Hide any empty divs that might be creating space */
div:empty {
    display: none !important;
}

/* Fix for the specific issue - hide the broken duplicate */
.hero-main:not(#heroSection .hero-main) {
    display: none !important;
}

/* Ensure the JavaScript-rendered hero is the only one visible */
[class*="hero"]:not(#heroSection):not(#heroSection *) {
    display: none !important;
}

/* Add this to your existing media queries */
@media screen and (max-width: 768px) {
    /* Remove any extra space above hero */
    #heroSection {
        margin-top: 15px;
    }
    
    /* Ensure proper spacing */
    .crypto-ticker-container + .main {
        margin-top: 10px;
    }
    
    .main .container {
        padding-top: 0;
    }
}

/* Force hide any potential duplicate content */
body > .hero:not(#heroSection),
body > div:not(.container) > .hero:not(#heroSection),
main > .hero:not(#heroSection) {
    display: none !important;
}

/* Debug helper - uncomment to see what elements are causing issues */
/*
* {
    outline: 1px solid red;
}
*/

/* ============================================================
   HERO SIDE WITH 5 ITEMS - STYLING
   ============================================================ */

/* For desktop - make side items fit perfectly without scroll */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: fit-content;
}

/* Make side items compact to fit 5 */
.hero-side-item {
    padding: 14px;
    display: flex;
    gap: 12px;
}

.hero-side-item img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.hero-side-content {
    flex: 1;
}

.hero-side-content h4 {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-side-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--gray-500);
}

/* Mobile responsiveness */
@media screen and (max-width: 1024px) {
    .hero-side {
        max-height: 450px;
        overflow-y: auto;
    }
}

@media screen and (max-width: 768px) {
    .hero-side {
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hero-side-item {
        margin-bottom: 0;
    }
    
    .hero-side-item img {
        width: 100px;
        height: 80px;
    }
    
    .hero-side-content h4 {
        font-size: 14px;
    }
}

/* ============================================================
   NEWSLETTER WIDGET - MOBILE RESPONSIVE FIX
   Beautiful email input section for all devices
   ============================================================ */

/* Newsletter Widget Base Styles */
.widget-newsletter {
    background: linear-gradient(135deg, #0052FF, #8C52FF);
    color: white;
    border: none;
    overflow: hidden;
    position: relative;
}

/* Add decorative elements */
.widget-newsletter::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.widget-newsletter::after {
    content: '✉️';
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 60px;
    opacity: 0.1;
    transform: rotate(15deg);
    pointer-events: none;
}

.widget-newsletter .widget-header h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.widget-newsletter .widget-header h3 i {
    color: #FFD700;
}

.widget-newsletter p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* Newsletter Form - Beautiful email input */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.newsletter-form input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.newsletter-form button {
    width: 52px;
    height: 48px;
    border: none;
    background: #FFD700;
    border-radius: 12px;
    color: #0052FF;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.newsletter-form button:hover {
    background: #FFC800;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.newsletter-form button i {
    transition: transform 0.3s ease;
}

.newsletter-form button:hover i {
    transform: translateX(3px);
}

/* ============================================================
   MOBILE RESPONSIVE STYLES
   ============================================================ */

/* Small phones (up to 480px) */
@media screen and (max-width: 480px) {
    .widget-newsletter {
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    .widget-newsletter::after {
        font-size: 80px;
        bottom: 0;
        right: 0;
        opacity: 0.08;
    }
    
    .widget-newsletter .widget-header h3 {
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .widget-newsletter .widget-header h3 i {
        font-size: 18px;
        background: rgba(255, 255, 255, 0.2);
        padding: 6px;
        border-radius: 50%;
    }
    
    .widget-newsletter p {
        font-size: 13px;
        margin-bottom: 18px;
        line-height: 1.5;
    }
    
    /* Stack input and button vertically on very small phones */
    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .newsletter-form input {
        width: 100%;
        height: 52px;
        font-size: 15px;
        padding: 0 18px;
        border-radius: 14px;
        border-width: 2px;
    }
    
    .newsletter-form button {
        width: 100%;
        height: 52px;
        border-radius: 14px;
        font-size: 18px;
        gap: 8px;
        background: #FFD700;
        color: #0052FF;
        font-weight: 600;
    }
    
    .newsletter-form button i {
        font-size: 18px;
    }
    
    /* Add button text on mobile for better UX */
    .newsletter-form button::after {
        content: 'Subscribe';
        font-size: 15px;
        font-weight: 600;
        margin-left: 5px;
    }
}

/* Extra small phones (320px and below) */
@media screen and (max-width: 360px) {
    .widget-newsletter {
        padding: 18px 12px;
    }
    
    .widget-newsletter .widget-header h3 {
        font-size: 16px;
    }
    
    .widget-newsletter p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .newsletter-form input {
        height: 48px;
        font-size: 14px;
        padding: 0 14px;
    }
    
    .newsletter-form button {
        height: 48px;
    }
    
    .newsletter-form button::after {
        font-size: 14px;
    }
}

/* Medium phones (481px to 600px) */
@media screen and (min-width: 481px) and (max-width: 600px) {
    .newsletter-form {
        flex-direction: row;
    }
    
    .newsletter-form input {
        height: 50px;
        font-size: 14px;
    }
    
    .newsletter-form button {
        width: 60px;
        height: 50px;
    }
    
    .newsletter-form button::after {
        display: none; /* Hide text on medium phones, keep icon only */
    }
}

/* Tablets (601px to 768px) */
@media screen and (min-width: 601px) and (max-width: 768px) {
    .widget-newsletter {
        padding: 22px 18px;
    }
    
    .widget-newsletter .widget-header h3 {
        font-size: 18px;
    }
    
    .widget-newsletter p {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .newsletter-form {
        flex-direction: row;
    }
    
    .newsletter-form input {
        height: 50px;
        font-size: 14px;
    }
    
    .newsletter-form button {
        width: 55px;
        height: 50px;
    }
    
    .newsletter-form button::after {
        display: none;
    }
}

/* Small desktop (769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
        height: 48px;
        margin-bottom: 5px;
    }
    
    .newsletter-form button {
        width: 100%;
        height: 48px;
        border-radius: 10px;
    }
    
    .newsletter-form button::after {
        content: 'Subscribe';
        font-size: 14px;
        font-weight: 600;
        margin-left: 5px;
    }
}

/* ============================================================
   DARK MODE SUPPORT
   ============================================================ */
[data-theme="dark"] .widget-newsletter {
    background: linear-gradient(135deg, #1E3A8A, #5B21B6);
}

[data-theme="dark"] .newsletter-form input {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

[data-theme="dark"] .newsletter-form input:focus {
    border-color: #FFD700;
    background: rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .newsletter-form button {
    background: #FFD700;
    color: #1E3A8A;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.widget-newsletter {
    animation: slideIn 0.5s ease-out;
}

/* Success state for form submission */
.newsletter-form.success input {
    border-color: #00D395;
    background: rgba(0, 211, 149, 0.1);
}

.newsletter-form.success button {
    background: #00D395;
    color: white;
}

/* Error state */
.newsletter-form.error input {
    border-color: #FF4B4B;
    background: rgba(255, 75, 75, 0.1);
}

/* ============================================================
   BEAUTIFUL FOCUS EFFECTS
   ============================================================ */
.newsletter-form input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.newsletter-form button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5);
}

/* ============================================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
    .newsletter-form input,
    .newsletter-form button {
        min-height: 52px;
    }
    
    .newsletter-form button {
        -webkit-tap-highlight-color: transparent;
    }
    
    .newsletter-form button:active {
        transform: scale(0.98);
        background: #FFC800;
    }
}

/* ============================================================
   LOADING STATE
   ============================================================ */
.newsletter-form.loading button {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.newsletter-form.loading button i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================
   SUCCESS MESSAGE
   ============================================================ */
.newsletter-success {
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.newsletter-success i {
    font-size: 48px;
    color: #00D395;
    margin-bottom: 10px;
}

.newsletter-success h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 5px;
}

.newsletter-success p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   VIEW COUNTER & SHARE BUTTONS - ADD AT THE END OF news.css
   ============================================================ */

/* View count styling */
.view-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Share button base styles */
.share-btn {
    background: transparent;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
}

.share-btn:active {
    transform: translateY(0);
}

/* Hero section share button */
.hero-share {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    font-weight: 500;
}

.hero-share:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Side share button */
.side-share {
    padding: 2px 6px;
    font-size: 11px;
}

/* Share Modal */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.share-modal {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.share-modal-header h3 {
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-modal-header h3 i {
    color: var(--primary);
}

.share-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.share-modal-close:hover {
    background: var(--danger);
    color: white;
}

.share-modal-body {
    padding: 24px;
}

/* Article preview in share modal */
.share-article-preview {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.share-preview-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.share-preview-text {
    flex: 1;
}

.share-preview-text h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-preview-text p {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* URL container */
.share-url-container {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.share-url-container input {
    flex: 1;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 13px;
    color: var(--gray-700);
    background: var(--gray-50);
}

.share-url-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

.copy-url-btn {
    height: 44px;
    padding: 0 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-url-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.copy-url-btn:active {
    transform: translateY(0);
}

/* Share platforms grid */
.share-platforms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.share-platform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.share-platform i {
    font-size: 16px;
}

/* Platform-specific colors */
.share-platform.twitter {
    background: #1DA1F2;
    color: white;
}
.share-platform.twitter:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
}

.share-platform.facebook {
    background: #4267B2;
    color: white;
}
.share-platform.facebook:hover {
    background: #3b5a9e;
    transform: translateY(-2px);
}

.share-platform.linkedin {
    background: #0077B5;
    color: white;
}
.share-platform.linkedin:hover {
    background: #006699;
    transform: translateY(-2px);
}

.share-platform.telegram {
    background: #0088cc;
    color: white;
}
.share-platform.telegram:hover {
    background: #0077b3;
    transform: translateY(-2px);
}

.share-platform.whatsapp {
    background: #25D366;
    color: white;
}
.share-platform.whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.share-platform.email {
    background: #64748B;
    color: white;
}
.share-platform.email:hover {
    background: #475569;
    transform: translateY(-2px);
}

.share-platform.reddit {
    background: #FF4500;
    color: white;
}
.share-platform.reddit:hover {
    background: #e03d00;
    transform: translateY(-2px);
}

.share-platform.hackernews {
    background: #F0652F;
    color: white;
}
.share-platform.hackernews:hover {
    background: #d85526;
    transform: translateY(-2px);
}

/* Dark mode support */
[data-theme="dark"] .share-modal {
    background: var(--gray-800);
}

[data-theme="dark"] .share-modal-header {
    border-bottom-color: var(--gray-700);
}

[data-theme="dark"] .share-modal-header h3 {
    color: var(--gray-200);
}

[data-theme="dark"] .share-article-preview {
    background: var(--gray-900);
    border-color: var(--gray-700);
}

[data-theme="dark"] .share-preview-text h4 {
    color: var(--gray-200);
}

[data-theme="dark"] .share-preview-text p {
    color: var(--gray-400);
}

[data-theme="dark"] .share-url-container input {
    background: var(--gray-900);
    border-color: var(--gray-700);
    color: var(--gray-300);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile responsive */
@media screen and (max-width: 480px) {
    .share-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .share-article-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .share-preview-image {
        width: 120px;
        height: 120px;
    }
    
    .share-platforms {
        grid-template-columns: 1fr;
    }
    
    .share-url-container {
        flex-direction: column;
    }
    
    .copy-url-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-share span {
        display: none;
    }
}

/* Small phones */
@media screen and (max-width: 360px) {
    .share-modal-body {
        padding: 16px;
    }
    
    .share-article-preview {
        padding: 12px;
    }
    
    .share-preview-image {
        width: 100px;
        height: 100px;
    }
}

/* Add these new platform styles to your existing share-platforms section */

/* X (Twitter) - Updated from twitter */
.share-platform.x {
    background: #000000;
    color: white;
}
.share-platform.x:hover {
    background: #333333;
    transform: translateY(-2px);
}

/* Discord - New */
.share-platform.discord {
    background: #5865F2;
    color: white;
}
.share-platform.discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

/* Share note for Instagram/TikTok */
.share-note {
    margin-top: 16px;
    padding: 10px;
    background: var(--gray-100);
    border-radius: 8px;
    font-size: 12px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid var(--primary);
}

.share-note i {
    color: var(--primary);
    font-size: 14px;
}

[data-theme="dark"] .share-note {
    background: var(--gray-800);
    color: var(--gray-400);
}

/* Add these new platform styles to your existing share-platforms section */

/* WeChat */
.share-platform.wechat {
    background: #07C160;
    color: white;
}
.share-platform.wechat:hover {
    background: #06a34e;
    transform: translateY(-2px);
}

/* Threads */
.share-platform.threads {
    background: #000000;
    color: white;
}
.share-platform.threads:hover {
    background: #333333;
    transform: translateY(-2px);
}

/* Bluesky */
.share-platform.bluesky {
    background: #0285FF;
    color: white;
}
.share-platform.bluesky:hover {
    background: #0166cc;
    transform: translateY(-2px);
}


/* Keep all existing platform styles */

/* ================= TRENDING MARKETS BLUR OVERLAY ================= */

.trending-widget {
    position: relative;
    overflow: hidden;
}

/* This is the blur glass */
.trending-widget .markets-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    backdrop-filter: blur(1.2px);
    -webkit-backdrop-filter: blur(1.5px);

    background: rgba(255,255,255,0.02); /* almost invisible */
    border-radius: var(--radius-lg);
    z-index: 5;
}

/* Battery layout */
.tm-battery {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Blocks */
.tm-blocks {
    display: flex;
    gap: 4px;
}

.tm-blocks span {
    width: 12px;     /* was smaller */
    height: 24px;    /* taller */
    border-radius: 4px;
    background: #dcdcdc;
    transition: all 0.3s ease;
}

.tm-blocks span.active {
    background: #21976f;
}


.tm-blocks span.blink {
    animation: tmBlink 0.6s infinite;
}

@keyframes tmBlink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* 99% */
.tm-percent {
    font-size: 20px;   /* bigger % */
    font-weight: 700;
    color: #21976f;
}

.tm-loading-text {
    font-size: 16px;   /* bigger */
    font-weight: 600;
    color: #21976f;
    letter-spacing: 0.5px;
}

.market-probability {
    display: flex;
    align-items: center;
    gap: 10px;
}

.probability-bar {
    flex: 1;
    height: 10px;
    background: #f3d6d6;   /* light red background */
    border-radius: 6px;
    overflow: hidden;
}

.probability-fill {
    height: 100%;
    transition: width 0.4s ease;
}

.probability-fill.positive {
    background: #16c784;   /* green */
}

.probability-fill.negative {
    background: #ea3943;   /* red */
}

.probability-value {
    font-weight: 600;
    font-size: 14px;
    min-width: 40px;
}

.probability-value.positive {
    color: #16c784;
}

.probability-value.negative {
    color: #ea3943;
}

/* ===== HERO SIDE DARK FIX ===== */

[data-theme="dark"] .hero-side-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

[data-theme="dark"] .hero-side-item h4 {
    color: var(--gray-900);
}

[data-theme="dark"] .hero-side-meta span,
[data-theme="dark"] .hero-side-meta i {
    color: var(--gray-400);
}

[data-theme="dark"] .hero-side-item:hover {
    background: var(--gray-100);
}

.coin-symbol {
    color: var(--gray-700);
    font-weight: 600;
}

.coin-price {
    color: var(--gray-900);
    font-weight: 600;
}

.coin-change.positive {
    color: var(--success);
}

.coin-change.negative {
    color: var(--danger);
}

/* ====================================
   Crypto Ticker Logos
   ==================================== */

.coin-logo {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
    vertical-align: middle;
}

/* Crypto logos as inline SVGs or emoji fallbacks */
.logo-btc {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23F7931A'%3E%3Cpath d='M31.5 16c0 8.5-7 15.5-15.5 15.5S.5 24.5.5 16 7.5.5 16 .5 31.5 7.5 31.5 16z'/%3E%3Cpath fill='%23FFF' d='M23.2 11.2c-.3-1.3-1.5-2-3-2.2l.6-2.6-1.5-.4-.6 2.5c-.4-.1-.8-.2-1.3-.3l.6-2.5-1.5-.4-.6 2.6c-.3-.1-.7-.2-1-.3l0-.1-2-.5-.4 1.7s1.1.3 1.1.3c.6.2.7.5.7.9l-.7 3.1c0 .1 0 .2.1.3-.1 0-.3 0-.4.1l-.7 3.1c-.1.2-.3.5-.8.4 0 0-1.1-.3-1.1-.3l-.8 1.8 2 .5c.4.1.7.2 1.1.3l-.6 2.6 1.5.4.6-2.6c.4.1.8.2 1.2.3l-.6 2.5 1.5.4.6-2.6c2.1.3 3.7.1 4.4-1.7.5-1.5 0-2.4-1.2-3 .8-.2 1.4-.8 1.6-2 .3-1.5-.3-2.4-1.5-2.9zm-2.7 5c.4 1.5-1.6 2.1-2.8 2.2l.7-2.8c1.2.1 2.2.2 2.1.6zm.3-3.8c.3 1.3-1.2 1.8-2.2 2l.6-2.4c1 .1 1.7.1 1.6.4z'/%3E%3C/g%3E%3C/svg%3E");
}

.logo-eth {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%233C3C3D'%3E%3Cpath fill='%233C3C3D' d='M16 31.5C7.7 31.5.9 24.7.9 16.4.9 8.1 7.7 1.3 16 1.3s15.1 6.8 15.1 15.1c0 8.3-6.8 15.1-15.1 15.1z'/%3E%3Cpath fill='%23FFF' d='M10.6 16.7l5.4 2.9 5.4-2.9-5.4-7.1-5.4 7.1zm5.4 4.2l-5.4-2.9 5.4 7.9 5.4-7.9-5.4 2.9z'/%3E%3C/g%3E%3C/svg%3E");
}

.logo-bnb {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23F3BA2F'%3E%3Ccircle cx='16' cy='16' r='15.5' fill='%23F3BA2F' stroke='%23F3BA2F'/%3E%3Cpath fill='%23FFF' d='M10.3 16l-2.2 2.2-2.2-2.2 2.2-2.2 2.2 2.2zm5.8-5.8l4.1 4.1 2.2-2.2-4.1-4.1-2.2 2.2zm8.3 3.6l-2.2 2.2 2.2 2.2 2.2-2.2-2.2-2.2zm-8.3 8.2l-4.1-4.1-2.2 2.2 4.1 4.1 2.2-2.2zm0-5.1l-2.6 2.6 2.6 2.6 2.6-2.6-2.6-2.6z'/%3E%3C/g%3E%3C/svg%3E");
}

.logo-sol {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23994DFF'%3E%3Ccircle cx='16' cy='16' r='15.5' fill='%23994DFF'/%3E%3Cpath fill='%23FFF' d='M21.3 19.5l-2.6 2.6-6.3-6.3-1.5 1.5 7.8 7.8 2.6-2.6-1.5-1.5zm-8.6-2.9l2.6-2.6 6.3 6.3 1.5-1.5-7.8-7.8-2.6 2.6 1.5 1.5z'/%3E%3C/g%3E%3C/svg%3E");
}

.logo-xrp {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23222'%3E%3Ccircle cx='16' cy='16' r='15.5' fill='%2323292F'/%3E%3Cpath fill='%23FFF' d='M21.8 10h-3.2L16 13.2 13.4 10h-3.2l4.8 5.8-4.8 5.8h3.2l2.6-3.2 2.6 3.2h3.2l-4.8-5.8 4.8-5.8z'/%3E%3C/g%3E%3C/svg%3E");
}

.logo-ada {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%230033AD'%3E%3Ccircle cx='16' cy='16' r='15.5' fill='%230033AD'/%3E%3Cpath fill='%23FFF' d='M16 5.3L8.7 16 16 26.7 23.3 16 16 5.3zm0 4.4l5.1 6.3-5.1 6.3-5.1-6.3 5.1-6.3z'/%3E%3C/g%3E%3C/svg%3E");
}

.logo-doge {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23C2A633'%3E%3Ccircle cx='16' cy='16' r='15.5' fill='%23C2A633'/%3E%3Cpath fill='%23FFF' d='M19.5 15.5h-3v-2h3c.3 0 .5.2.5.5v1c0 .3-.2.5-.5.5zm0 3h-3v-2h3c.3 0 .5.2.5.5v1c0 .3-.2.5-.5.5zM22 13c0-1.1-.9-2-2-2h-5v10h5c1.1 0 2-.9 2-2v-1.5c0-.8-.5-1.5-1.2-1.8.7-.3 1.2-1 1.2-1.8V13z'/%3E%3C/g%3E%3C/svg%3E");
}

.logo-dot {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23E6007A'%3E%3Ccircle cx='16' cy='16' r='15.5' fill='%23E6007A'/%3E%3Cpath fill='%23FFF' d='M16 6.5L7.5 16 16 25.5 24.5 16 16 6.5zm0 3.5l6 6-6 6-6-6 6-6z'/%3E%3C/g%3E%3C/svg%3E");
}

.logo-matic {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%238246DF'%3E%3Ccircle cx='16' cy='16' r='15.5' fill='%238246DF'/%3E%3Cpath fill='%23FFF' d='M22 12.5v7l-6 3.5-6-3.5v-7l6-3.5 6 3.5zm-6 2.5v4l4-2.5v-3l-4 2.5z'/%3E%3C/g%3E%3C/svg%3E");
}

.logo-link {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%232A5ADA'%3E%3Ccircle cx='16' cy='16' r='15.5' fill='%232A5ADA'/%3E%3Cpath fill='%23FFF' d='M16 6.5L7.5 16 16 25.5 24.5 16 16 6.5zm0 3.5l6 6-6 6-6-6 6-6z'/%3E%3C/g%3E%3C/svg%3E");
}

.logo-avax {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23E84142'%3E%3Ccircle cx='16' cy='16' r='15.5' fill='%23E84142'/%3E%3Cpath fill='%23FFF' d='M15.5 21.5h-4l-2-3.5 4-7 2 3.5-2 3.5 2 3.5zm5-7h-2l-2 3.5 2 3.5h2l2-3.5-2-3.5z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Fallback for any missing logos */
.coin-logo {
    background-color: #f0f0f0;
    border-radius: 50%;
}

/* Dark theme adjustments */
[data-theme="dark"] .coin-logo {
    filter: brightness(0.9);
}

/* ===== CLEAN HEADER ===== */

.clean-header {
    margin-bottom: 28px;
}

.clean-category-row {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-bottom: 14px;
}

.clean-badge {
    margin-left: 10px;
    background: #f97316;
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.clean-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    color: #111827;
}

.clean-meta {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.clean-meta strong {
    font-weight: 600;
    color: #111827;
}

.dot {
    color: #d1d5db;
}

/* ===== BODY ===== */

.clean-body {
    font-size: 18px;
    line-height: 1.8;
    color: #1f2937;
}

.clean-body h2 {
    margin-top: 36px;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
}

.clean-body blockquote {
    border-left: 3px solid #111827;
    padding-left: 16px;
    margin: 24px 0;
    font-style: italic;
    color: #374151;
}

/* ===== STATS ===== */

.clean-stats {
    display: flex;
    gap: 40px;
    margin: 32px 0;
}

.clean-stats div {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
}

/* ===== IMAGE ===== */

.featured-wrapper{
    margin:28px 0;
}

.featured-wrapper img{
    width:100%;
    height:auto !important;
    object-fit:contain !important;
    display:block;
}

.image-caption{
    font-size:13px;
    color:#6b7280;
    margin-top:8px;
}

/* ====================================
   Share Tooltip Styles
   ==================================== */

.copy-tooltip {
    position: fixed;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    pointer-events: none;
    animation: fadeInOut 1.2s ease forwards;
    z-index: 9999;
    white-space: nowrap;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 5px); }
    20% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Sidebar share buttons hover states */
.share-btn-sidebar {
    transition: all 0.2s ease;
}

.share-btn-sidebar:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.share-btn-sidebar.twitter:hover { background: #000; }
.share-btn-sidebar.facebook:hover { background: #1877f2; }
.share-btn-sidebar.linkedin:hover { background: #0a66c2; }
.share-btn-sidebar.telegram:hover { background: #0088cc; }
.share-btn-sidebar.whatsapp:hover { background: #25D366; }
.share-btn-sidebar.reddit:hover { background: #FF4500; }
.share-btn-sidebar.email:hover { background: #6b7280; }
.share-btn-sidebar.copy:hover { background: #4b5563; }

.mobile-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 18px;
    padding: 10px 16px;
    border-bottom: 1px solid #222;
    background: #0f0f0f;
}

.mobile-nav-link {
    flex: 0 0 auto;
    font-size: 14px;
    color: #aaa;
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: 0.2s ease;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: #fff;
    border-color: #fff;
}

/* ===============================
   FORCE CATEGORY TEXT VISIBILITY
=============================== */

#categoriesScroll .category-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
}

#categoriesScroll .category-item span {
    display: inline !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: inherit !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#categoriesScroll .category-item i {
    font-size: 15px !important;
}

#categoriesScroll {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
}

#categoriesScroll .categories-list {
    display: flex !important;
    gap: 18px !important;
    padding: 14px 20px !important;
    min-width: max-content !important;
}

/* ===============================
   Mobile Category Compact Mode
=============================== */

@media (max-width: 768px) {

    #categoriesScroll .categories-list {
        gap: 10px !important;
        padding: 10px 12px !important;
    }

    #categoriesScroll .category-item {
        padding: 6px 12px !important;
        font-size: 12px !important;
        border-radius: 999px !important;
    }

    #categoriesScroll .category-item span {
        font-size: 12px !important;
        font-weight: 500 !important;
    }

    #categoriesScroll .category-item i {
        font-size: 12px !important;
    }

}

/* ===============================
   Article Page Category Results
=============================== */

.category-results {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.category-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.category-card h4 {
    font-size: 14px;
    font-weight: 600;
}

.category-card:hover {
    transform: translateY(-3px);
}

/* ================= FORCE DARK – CATEGORY / TICKER BAR ONLY ================= */

/* Entire categories/ticker wrapper */
:root[data-theme="dark"] #categoriesScroll,
:root[data-theme="dark"] .categories-wrapper,
:root[data-theme="dark"] .categories-container {
    background-color: #0f172a !important;
}

/* Category pills */
:root[data-theme="dark"] #categoriesScroll .category-item {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
}

/* Icon inside */
:root[data-theme="dark"] #categoriesScroll .category-item i {
    color: #94a3b8 !important;
}

/* Text inside */
:root[data-theme="dark"] #categoriesScroll .category-item span {
    color: #e2e8f0 !important;
}

/* Hover */
:root[data-theme="dark"] #categoriesScroll .category-item:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}

/* Active */
:root[data-theme="dark"] #categoriesScroll .category-item.active {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

/* ===== TEMP: REMOVE ALL VIEW COUNTERS ===== */
.view-count {
    display: none !important;
}

/* ============================
   SHARE URL SECTION
============================ */

.share-url-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.share-url-container input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    background: #f9fafb;
    color: #111827;
    outline: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-url-btn {
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    background: #111827;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-url-btn:hover {
    background: #000;
}

/* ============================
   MOBILE IMPROVEMENT
============================ */

@media (max-width: 640px) {

    .share-url-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .share-url-container input {
        width: 100%;
        font-size: 13px;
        padding: 11px 12px;
    }

    .copy-url-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
}

/* ============================
   TRENDING ARTICLES
============================ */

/* =========================
   TRENDING SIDEBAR
========================= */

.trending-item{
display:flex;
gap:12px;
margin-bottom:16px;
align-items:flex-start;
cursor:pointer;
}

/* Thumbnail */

.trending-thumb{
width:95px;
height:70px;
object-fit:cover;
border-radius:8px;
flex-shrink:0;
}

/* Text container */

.trending-text{
flex:1;
min-width:0;
}

/* Title */

.trending-title{
font-size:15px;
font-weight:600;
line-height:1.35;
margin:0 0 6px;
color:var(--text-primary);

/* limit headline to 3 lines */
display:-webkit-box;
-webkit-line-clamp:3;
-webkit-box-orient:vertical;
overflow:hidden;
}

/* Meta row */

.trending-meta{
display:flex;
align-items:center;
font-size:12px;
color:#6b7280;
}

.trending-time{
display:flex;
align-items:center;
gap:5px;
}

.trending-share{
margin-left:center;
background:none;
border:none;
cursor:pointer;
font-size:14px;
color:#96999f;
padding:0;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */

@media (max-width:768px){

.trending-thumb{
width:85px;
height:64px;
}

.trending-title{
font-size:14px;
}

.trending-meta{
font-size:11px;
}

}

/* =========================
   VERY SMALL DEVICES
========================= */

@media (max-width:420px){

.trending-item{
gap:10px;
}

.trending-thumb{
width:75px;
height:58px;
}

.trending-title{
font-size:13px;
}

}

.trending-item:hover .trending-title{
text-decoration:underline;
}

.clean-standfirst{
font-size: 20px;
line-height: 1.6;
color:#555;
max-width:700px;
margin-top:12px;
margin-bottom:20px;
font-weight:400;
}

.article-card .article-image{
    height:auto !important;
}

.article-card .article-image img{
    width:100%;
    height:auto !important;
    object-fit:contain !important;
    display:block;
}

/* ======================================================
MOBILE UX FIX — YESNO.FUN NEWS
Paste at bottom of news.css
====================================================== */

/* Smooth scrolling */
html{
scroll-behavior:smooth;
}

/* Sticky header */
.header{
position:sticky;
top:0;
z-index:1000;
background:var(--background);
border-bottom:1px solid var(--border);
}

/* Categories scroll (All News, Crypto etc) */
.categories-scroll{
display:flex;
gap:10px;
overflow-x:auto;
overflow-y:hidden;
white-space:nowrap;
padding:6px 0;
-webkit-overflow-scrolling:touch;
scrollbar-width:none;
}

.categories-scroll::-webkit-scrollbar{
display:none;
}

.category-item{
flex:0 0 auto;
min-height:40px;
display:flex;
align-items:center;
}

/* Feed tabs (Latest, Trending, Most Read, Breaking) */
.feed-tabs{
display:flex;
gap:10px;
overflow-x:auto;
overflow-y:hidden;
white-space:nowrap;
padding:10px 0;
-webkit-overflow-scrolling:touch;
scrollbar-width:none;
}

.feed-tabs::-webkit-scrollbar{
display:none;
}

.feed-tab{
flex:0 0 auto;
padding:8px 14px;
font-size:14px;
border-radius:999px;
min-height:40px;
display:flex;
align-items:center;
}

/* Sticky filters section */
.filters-bar{
position:sticky;
top:60px;
z-index:900;
background:var(--background);
}

/* Mobile article card improvements */
@media (max-width:768px){

.article-card{
border-radius:16px;
overflow:hidden;
}

.article-image img{
width:100%;
height:auto;
}

.article-title{
font-size:18px;
line-height:1.35;
}

.article-excerpt{
font-size:14px;
}

.article-meta{
font-size:13px;
}

}

/* ===== HERO RIGHT ITEMS MOBILE FIX ===== */

@media (max-width: 768px){

.hero-side-item{
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-start;
    gap:12px;
}

.hero-side-item img{
    width:90px;
    height:70px;
    object-fit:cover;
    flex-shrink:0;
}

.hero-side-content{
    flex:1;
}

}

.categories-scroll{
overflow-x:auto;
overflow-y:hidden;
scroll-behavior:smooth;
-webkit-overflow-scrolling:touch;
}

.categories-list{
display:flex;
gap:10px;
min-width:max-content;
}

.categories-scroll::-webkit-scrollbar{
display:none;
}

@media (max-width: 768px) {

.nav-desktop{
display:none;
}

.menu-toggle{
display:none;
}

}

@media (max-width: 768px){

.mobile-menu{
display:none !important;
}

}

/* ===== MOBILE ARTICLE TITLE FIX ===== */
@media (max-width:768px){

.clean-title{
    font-size:28px !important;
    line-height:1.2 !important;
    letter-spacing:-0.01em;
}

}

/* ===== FORCE CLEAN MOBILE META LAYOUT ===== */
@media (max-width:768px){

/* Reduce title size slightly */
.article-title{
    font-size:20px !important;
    line-height:1.3 !important;
}

/* Author row */
.article-author{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    font-size:14px !important;
    margin-bottom:4px;
}

/* Meta row (time + share) */
.article-stats{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    font-size:13px !important;
}

/* Make share icon stick right */
.article-stats .share-btn{
    margin-left:auto !important;
}

}

