/* index_styles.css - Enhanced with View Count Styling System (Fixed for compatibility) */
/* Dark Navy Blue & Gold Elegant Theme with White News Cards + View Count Styling */

:root {
    /* Dark Navy Blue & Gold Elegant Theme - Professional & Eye-Comfortable */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f1419;
    --bg-card: #1a1f2e;
    --bg-hover: #252a3a;
    
    /* White backgrounds for news cards */
    --news-bg-primary: #ffffff;
    --news-bg-hover: #f8f9fa;
    --news-text-primary: #1a202c;
    --news-text-secondary: #4a5568;
    --news-text-muted: #718096;
    
    /* Text Colors */
    --text-primary: #f8f9fa;
    --text-secondary: #e9ecef;
    --text-muted: #adb5bd;
    --text-subtle: #868e96;
    
    /* Accent Colors */
    --accent-main: #1e3a8a;
    --accent-second: #1e40af;
    --accent-warm: #2563eb;
    --accent-soft: #3b82f6;
    
    /* Gold Accent Colors */
    --accent-gold: #d97706;
    --accent-gold-warm: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-gold-soft: #fcd34d;
    
    /* Active State Colors */
    --accent-blue-dark: #1e3a8a;
    --accent-blue-darker: #1e40af;
    
    /* Border Colors */
    --border-primary: #d97706;
    --border-secondary: #f59e0b;
    --news-border: #e2e8f0;
}

/* ==================== BASE STYLES ==================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.5;
}

/* ==================== VIEW COUNT BADGE SYSTEM (Compatible with JS) ==================== */

/* Base View Badge Styles */
.view-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Badge modifiers by card type */
.view-badge--main {
    top: 12px;
    right: 12px;
}

.view-badge--double {
    top: 8px;
    right: 8px;
    padding: 5px 10px;
    font-size: 10px;
}

.view-badge--left {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 10px;
}

.view-badge--right {
    top: 6px;
    right: 6px;
    padding: 3px 6px;
    font-size: 9px;
    border-radius: 12px;
}

/* Badge colors by level */
.view-badge--level-1 {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
}

.view-badge--level-2 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.view-badge--level-3 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.view-badge--level-4 {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    color: #333;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.view-badge--level-5 {
    background: linear-gradient(135deg, #ffd89b, #19547b);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 216, 155, 0.4);
}

/* ==================== CARD VIEW LEVEL STYLING (Using data-attributes) ==================== */

/* Level 1: 1500-2000 views */
[data-view-level="1"] {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.08), rgba(58, 123, 213, 0.04));
    border-left: 4px solid #00d2ff;
}

/* Level 2: 2000-5000 views */
[data-view-level="2"] {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.04));
    border-left: 4px solid #667eea;
}

/* Level 3: 5000-10000 views */
[data-view-level="3"] {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.08), rgba(245, 87, 108, 0.04));
    border-left: 4px solid #f093fb;
}

/* Level 4: 10000-50000 views */
[data-view-level="4"] {
    background: linear-gradient(135deg, rgba(255, 236, 210, 0.12), rgba(252, 182, 159, 0.06));
    border-left: 4px solid #fcb69f;
}

/* Level 5: 50000+ views */
[data-view-level="5"] {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.15), rgba(254, 207, 239, 0.08));
    border-left: 4px solid #ffd89b;
    box-shadow: 0 8px 25px rgba(255, 216, 155, 0.2);
}

/* Hover effects for view levels */
[data-view-level="1"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 210, 255, 0.2);
}

[data-view-level="2"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

[data-view-level="3"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(240, 147, 251, 0.2);
}

[data-view-level="4"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(252, 182, 159, 0.2);
}

[data-view-level="5"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 216, 155, 0.3);
}

/* ==================== LAYOUT STRUCTURE ==================== */

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
}

.content-wrapper { 
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.main-content {
    display: grid;
    grid-template-columns: 250px 1fr 280px;
    gap: 20px;
}

/* ==================== SIDEBARS ==================== */

.left-sidebar, .right-sidebar {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    padding: 20px;
    border-radius: 12px;
    border: 3px solid var(--border-primary);
    height: fit-content;
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3);
}

.left-sidebar h3, .right-sidebar h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 3px solid var(--accent-gold);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(217, 119, 6, 0.4);
}

/* ==================== NEWS CARDS ==================== */

/* Center Main Area */
.center-main {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border-radius: 12px;
    padding: 20px;
    border: 3px solid var(--border-primary);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3);
}

/* Main Card */
.main-card {
    background: var(--news-bg-primary);
    border: 3px solid var(--accent-gold);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.2);
    position: relative;
}

.main-card:hover {
    background: var(--news-bg-hover);
    border-color: var(--accent-gold-warm);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(217, 119, 6, 0.5);
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.main-card-content {
    padding: 15px;
    background: var(--news-bg-primary);
}

.main-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--news-text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.main-description {
    font-size: 13px;
    color: var(--news-text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.main-meta {
    font-size: 11px;
    color: var(--news-text-muted);
    display: flex;
    justify-content: space-between;
}

/* Double Row Cards */
.double-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.double-card {
    background: var(--news-bg-primary);
    border: 3px solid var(--accent-gold);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.2);
    position: relative;
}

.double-card:hover {
    background: var(--news-bg-hover);
    border-color: var(--accent-gold-warm);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(217, 119, 6, 0.5);
}

.double-image-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.double-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.double-card-content {
    padding: 15px;
    background: var(--news-bg-primary);
}

.double-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--news-text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.double-meta {
    font-size: 11px;
    color: var(--news-text-muted);
    display: flex;
    justify-content: space-between;
}

/* Left Sidebar Cards */
.left-card {
    background: var(--news-bg-primary);
    border: 3px solid var(--accent-gold);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
    position: relative;
}

.left-card:hover {
    background: var(--news-bg-hover);
    border-color: var(--accent-gold-warm);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(217, 119, 6, 0.5);
}

.left-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
    position: relative;
}

.left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.left-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--news-bg-primary);
}

.left-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--news-text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    flex: 1;
}

.left-meta {
    font-size: 11px;
    color: var(--news-text-muted);
    margin-bottom: 8px;
}

/* Right Sidebar Cards */
.right-card {
    background: var(--news-bg-primary);
    border: 3px solid var(--accent-gold);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
    position: relative;
}

.right-card:hover {
    background: var(--news-bg-hover);
    border-color: var(--accent-gold-warm);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(217, 119, 6, 0.5);
}

.right-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.right-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.right-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--news-bg-primary);
}

.right-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--news-text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    flex: 1;
}

.right-meta {
    font-size: 11px;
    color: var(--news-text-muted);
    margin-bottom: 8px;
}

/* ==================== COMPONENTS ==================== */

/* Hashtags */
.hashtag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0;
}

.hashtag-tag {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(30, 64, 175, 0.15));
    color: var(--accent-main);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.3);
    line-height: 1.2;
    font-weight: 500;
}

.hashtag-tag:hover {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(245, 158, 11, 0.25));
    color: var(--accent-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.4);
}

/* News Stats */
.news-stats {
    display: flex;
    gap: 8px;
    margin: 6px 0;
    font-size: 10px;
    color: var(--news-text-muted);
    padding: 6px 0;
}

.news-stats span {
    display: flex;
    align-items: center;
    gap: 2px;
    transition: color 0.3s ease;
}

.news-stats span:hover {
    color: var(--accent-gold);
}

.news-stats .view-stat {
    font-weight: 600;
    color: var(--news-text-primary);
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: rgba(248, 249, 250, 0.9);
    gap: 6px;
}

.action-btn {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(245, 158, 11, 0.05));
    color: var(--accent-gold);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 32px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(245, 158, 11, 0.15));
    border-color: var(--accent-gold-warm);
    color: var(--accent-gold-warm);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

.action-btn i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* Active States */
.like-btn.active,
.like-btn.liked {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.3), rgba(245, 158, 11, 0.2));
    border-color: var(--accent-gold-warm);
    color: var(--accent-gold);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.5);
    transform: translateY(-2px);
}

.share-btn.active,
.share-btn.shared,
.comment-btn.active,
.comment-btn.commented {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(30, 64, 175, 0.2));
    border-color: var(--accent-blue-dark);
    color: var(--accent-blue-dark);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.5);
    transform: translateY(-2px);
}

.like-btn:disabled {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.4), rgba(245, 158, 11, 0.3));
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    cursor: not-allowed;
    opacity: 0.8;
}

/* Compact action bars for sidebars */
.right-card .action-bar,
.left-card .action-bar {
    padding: 8px 6px;
}

.right-card .action-btn,
.left-card .action-btn {
    padding: 6px 8px;
    font-size: 10px;
    min-height: 28px;
}

.right-card .action-btn i,
.left-card .action-btn i {
    font-size: 9px;
}

/* ==================== SHARE OVERLAY (Compatible with JS) ==================== */

.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-overlay.active {
    display: block;
    opacity: 1;
}

.share-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.share-header h3 {
    margin: 0;
    color: #333;
}

.share-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.share-news-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.share-button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-line {
    background: #00c300;
}

.share-copy {
    background: #666;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==================== OTHER COMPONENTS ==================== */

/* Tab Navigation */
.tab-navigation {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95), rgba(26, 31, 46, 0.9));
    border-bottom: 3px solid var(--accent-gold);
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 15px rgba(217, 119, 6, 0.4);
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.tab-container {
    display: flex;
    gap: 2px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 50px;
    align-items: center;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px 8px 0 0;
    position: relative;
    white-space: nowrap;
    background: transparent;
    border-bottom: 3px solid transparent;
}

.tab-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-warm));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.tab-item:hover::before {
    width: 80%;
}

.tab-item:hover {
    color: var(--text-secondary);
    background: rgba(30, 58, 138, 0.15);
    transform: translateY(-1px);
}

.tab-item.active {
    color: var(--text-primary);
    background: rgba(30, 58, 138, 0.2);
    border-bottom-color: var(--accent-gold);
}

.tab-item.active::before {
    width: 100%;
}

/* Mini Stats */
.mini-stats {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 3px solid var(--accent-gold);
}

.mini-stats h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mini-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.mini-stat-item {
    text-align: center;
    padding: 8px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-hover));
    border: 3px solid var(--border-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.mini-stat-item:hover {
    border-color: var(--accent-gold-warm);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.mini-stat-label {
    font-size: 9px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.mini-stat-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-gold);
}

/* Popular Hashtags */
.popular-hashtags-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 3px solid var(--accent-gold);
}

.popular-hashtags-section h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popular-hashtag {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-hover));
    border: 3px solid var(--border-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.popular-hashtag:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.15), rgba(30, 64, 175, 0.1));
    border-color: var(--accent-gold-warm);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.popular-hashtag span:first-child {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.popular-hashtag span:last-child {
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Messages */
.no-data-message,
.error-message,
.no-hashtags {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.no-hashtags {
    padding: 15px;
    font-size: 12px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    display: none;
}

.loading-spinner {
    border: 3px solid rgba(217, 119, 6, 0.3);
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-muted);
    font-size: 14px;
}

/* Load More Button */
.load-more {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-warm));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin: 20px auto;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

.load-more:hover { 
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(217, 119, 6, 0.6);
}

.load-more:disabled { 
    background: var(--text-muted); 
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    padding: 20px;
    text-align: center;
    border-top: 3px solid var(--accent-gold);
    margin-top: 30px;
    box-shadow: 0 -4px 15px rgba(217, 119, 6, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-links a:hover {
    color: var(--accent-gold);
    background: rgba(217, 119, 6, 0.1);
}

/* ==================== LOTTERY THEME ANIMATIONS ==================== */

/* Floating Lottery Balls Background */
@keyframes floatBalls {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}

.main-container::before {
    content: '🎱 🎯 🎰 💎 🎲';
    position: fixed;
    top: 10%;
    right: 5%;
    font-size: 30px;
    opacity: 0.1;
    animation: floatBalls 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.main-container::after {
    content: '888 168 999';
    position: fixed;
    bottom: 10%;
    left: 5%;
    font-size: 40px;
    font-weight: bold;
    opacity: 0.05;
    background: linear-gradient(45deg, #FFD700, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: floatBalls 20s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

/* Neon Glow Cards on Hover */
.main-card:hover,
.double-card:hover,
.left-card:hover,
.right-card:hover {
    animation: neonPulse 1.5s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        0 0 60px rgba(255, 215, 0, 0.1),
        inset 0 0 20px rgba(255, 215, 0, 0.05);
}

@keyframes neonPulse {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.7),
            0 0 60px rgba(255, 215, 0, 0.5);
    }
}

/* 3D Tilt Effect */
.main-card,
.double-card,
.left-card,
.right-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.main-card:hover {
    transform: perspective(1000px) rotateX(-5deg) rotateY(5deg) scale(1.02);
}

.double-card:hover {
    transform: perspective(1000px) rotateX(-3deg) rotateY(-3deg) scale(1.03);
}

/* Lucky Number Animation */
@keyframes luckyNumber {
    0% { 
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: scale(1.1) rotate(5deg);
        filter: hue-rotate(90deg);
    }
    50% { 
        transform: scale(1.05) rotate(-5deg);
        filter: hue-rotate(180deg);
    }
    75% { 
        transform: scale(1.1) rotate(3deg);
        filter: hue-rotate(270deg);
    }
    100% { 
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(360deg);
    }
}

.hashtag-tag {
    position: relative;
    overflow: hidden;
}

.hashtag-tag::before {
    content: '✨';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.hashtag-tag:hover::before {
    opacity: 1;
    top: -5px;
    left: -5px;
    animation: luckyNumber 2s linear infinite;
}

/* Glassmorphism Enhancement */
.left-sidebar,
.right-sidebar,
.center-main {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, 
        rgba(26, 31, 46, 0.7),
        rgba(37, 42, 58, 0.7));
    border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Magical Particles */
@keyframes particles {
    0% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 1;
    }
    10% {
        transform: translateY(-10px) translateX(10px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(0);
        opacity: 0;
    }
}

.action-btn {
    position: relative;
}

.action-btn::after {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.action-btn:active::after {
    animation: particles 0.8s ease-out;
}

/* Rainbow Border Animation */
@keyframes rainbowBorder {
    0% { border-image-source: linear-gradient(0deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000); }
    100% { border-image-source: linear-gradient(360deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000); }
}

.main-card {
    border-image-slice: 1;
    animation: rainbowBorder 10s linear infinite;
}

/* Lucky Spin Animation */
@keyframes luckySpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

.mini-stat-value {
    display: inline-block;
    transition: all 0.3s ease;
}

.mini-stat-item:hover .mini-stat-value {
    animation: luckySpin 0.6s ease-out;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #1a1f2e, #0a0a0f);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFD700, #f59e0b);
    border-radius: 10px;
    border: 2px solid #1a1f2e;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFD700, #FF6B6B);
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .left-sidebar, .right-sidebar {
        order: 2;
    }
    
    .center-main {
        order: 1;
    }
    
    .double-row {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Mobile view badge adjustments */
    .view-badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 12px;
    }
    
    .view-badge--main {
        top: 10px;
        right: 10px;
    }
    
    .view-badge--double {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .view-badge--left,
    .view-badge--right {
        top: 5px;
        right: 5px;
        padding: 2px 5px;
        font-size: 8px;
    }
    
    /* Reduce hover effects on mobile */
    [data-view-level]:hover {
        transform: translateY(-1px);
    }
    
    /* Mobile action buttons */
    .action-btn {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .left-card .action-btn,
    .right-card .action-btn {
        font-size: 11px;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .view-badge {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 9px;
        border-radius: 10px;
    }
    
    .view-badge--main,
    .view-badge--double,
    .view-badge--left,
    .view-badge--right {
        top: 4px;
        right: 4px;
        padding: 2px 4px;
        font-size: 8px;
    }
}

/* ==================== PRINT STYLES ==================== */

@media print {
    .view-badge,
    .action-bar {
        display: none !important;
    }
    
    [data-view-level] {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border-left: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}