/* ============================================
   Rollbit Clone - Main Stylesheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --bg-primary: #1a1d29;
    --bg-secondary: #222639;
    --bg-tertiary: #2a2f45;
    --text-primary: #ffffff;
    --text-secondary: #b1b6c6;
    --accent-gold: #F5C518;
    --accent-gold-hover: #e6b800;
    --accent-green: #00d26a;
    --accent-red: #ff4757;
    --border-color: #2e3348;
    --card-bg: #252a3a;
    --header-bg: #151824;
    --sidebar-bg: #1a1d29;
    --sidebar-width: 240px;
    --header-height: 64px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.25s ease;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(203,215,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(203,215,255,0.2); }

/* ---- Global Layout ---- */
.site-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.content-area {
    flex: 1;
    padding: 24px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

/* ============================================
   Header Top Bar
   ============================================ */
.header-top {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    backdrop-filter: blur(10px);
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img,
.header-logo svg {
    height: 32px;
    width: auto;
}

.header-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 24px;
}

.header-nav-item {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.header-nav-item:hover,
.header-nav-item.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.header-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.live-wins-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0,210,106,0.1);
    border: 1px solid rgba(0,210,106,0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    white-space: nowrap;
}

.live-wins-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.chat-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-icon-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* ============================================
   Search Bar
   ============================================ */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 260px;
    flex-shrink: 0;
}

.search-bar input[type="search"],
.search-bar input[type="text"] {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 8px 16px 8px 40px;
    font-size: 0.875rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.search-bar input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.search-bar input:focus {
    border-color: var(--accent-gold);
    background: var(--bg-secondary);
}

.search-bar .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.875rem;
    pointer-events: none;
}

.search-bar-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    align-items: center;
    justify-content: center;
}

/* ============================================
   Sidebar Navigation
   ============================================ */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 900;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
}

.sidebar-nav-inner {
    padding: 16px 0;
    flex: 1;
}

.sidebar-section {
    margin-bottom: 8px;
}

.sidebar-section-title {
    padding: 12px 20px 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    display: block;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.sidebar-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
    border-left-color: var(--accent-gold);
}

.sidebar-nav-link.active,
.sidebar-nav-link.current-menu-item {
    color: var(--text-primary);
    background: rgba(245,197,24,0.08);
    border-left-color: var(--accent-gold);
    font-weight: 600;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.nav-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 16px;
}

.sidebar-nav-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

/* Mobile overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 899;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active { display: block; }

/* Hamburger */
.hamburger-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(3px,3px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background: var(--accent-gold);
    color: #1a1d29;
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    color: #1a1d29;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,197,24,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.btn-login {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-weight: 600;
}

.btn-login:hover {
    color: var(--text-primary);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* ============================================
   Game Cards & Grid
   ============================================ */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.game-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--card-bg);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 3 / 4;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    z-index: 2;
}

.game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
}

.game-card:hover .game-card-overlay { opacity: 1; }

.game-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.game-card-provider {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.game-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1;
}

.badge-hot { background: var(--accent-red); color: #fff; }
.badge-new { background: var(--accent-green); color: #fff; }
.badge-exclusive { background: var(--accent-gold); color: #1a1d29; }

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 32px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(135deg, #2a2f45 0%, #1a1d29 100%);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(245,197,24,0.3);
    transform: translateY(-2px);
}

.feature-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.feature-card-content {
    position: relative;
    z-index: 1;
}

.feature-card-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.feature-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

/* ============================================
   Section Titles
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.section-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    white-space: nowrap;
}

.section-link:hover { color: var(--accent-gold-hover); }

/* ============================================
   Nav Tabs (Horizontal Category Tabs)
   ============================================ */
.nav-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 24px;
    scrollbar-width: none;
}

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

.nav-tab {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.nav-tab.active {
    background: var(--accent-gold);
    color: #1a1d29;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    min-height: 360px;
    background: radial-gradient(ellipse at center, #2a2f45 0%, #1a1d29 70%);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(245,197,24,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   Carousel / Horizontal Scroll
   ============================================ */
.carousel-wrapper {
    position: relative;
    margin-bottom: 32px;
}

.carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel-item {
    flex: 0 0 auto;
    width: 280px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-gold);
}

.carousel-btn-prev { left: -16px; }
.carousel-btn-next { right: -16px; }

/* ============================================
   Live Bets Panel
   ============================================ */
.live-bets-panel {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 32px;
}

.live-bets-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.live-bets-header .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-dot 1.5s infinite;
}

.live-bets-list {
    max-height: 320px;
    overflow-y: auto;
}

.live-bet-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(46,51,72,0.5);
    font-size: 0.8125rem;
    transition: background 0.15s ease;
}

.live-bet-row:hover { background: rgba(255,255,255,0.02); }

.live-bet-user {
    color: var(--text-secondary);
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-bet-game {
    color: var(--text-primary);
    font-weight: 600;
    flex: 1.5;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-bet-amount {
    font-weight: 700;
    white-space: nowrap;
}

.live-bet-amount.win { color: var(--accent-green); }
.live-bet-amount.loss { color: var(--accent-red); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--header-bg);
    border-top: 1px solid var(--border-color);
    padding: 48px 24px 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column-title {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-links a:hover { color: var(--accent-gold); }

.footer-info {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #1a1d29;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 900;
    color: var(--accent-red);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #1a1d29;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(245,197,24,0.3);
    transition: var(--transition);
}

.back-to-top.visible { display: flex; }
.back-to-top:hover { transform: translateY(-3px); }

/* ============================================
   Post / Page Styles
   ============================================ */
.post-list { display: flex; flex-direction: column; gap: 24px; }

.post-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    transition: var(--transition);
}

.post-card:hover { border-color: rgba(245,197,24,0.3); }

.post-card-image {
    flex: 0 0 200px;
    background-size: cover;
    background-position: center;
    min-height: 150px;
}

.post-card-body { padding: 20px; flex: 1; }

.post-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--accent-gold); }

.post-card-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
}

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
}

.entry-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    margin: 1.5em 0 0.5em;
}

.entry-content p { margin-bottom: 1em; }

.entry-content a { color: var(--accent-gold); text-decoration: underline; }

.entry-content img {
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

/* 404 Page */
.error-404-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 48px 24px;
}

.error-404-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.3;
}

.error-404-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.error-404-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 420px;
}

.error-404-search {
    max-width: 400px;
    width: 100%;
    margin-bottom: 24px;
}

.error-404-search input {
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.error-404-search input:focus { border-color: var(--accent-gold); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover { background: var(--border-color); color: var(--text-primary); }

.pagination .current {
    background: var(--accent-gold);
    color: #1a1d29;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet: 768px - 1200px */
@media (max-width: 1200px) {
    :root { --sidebar-width: 0px; }

    .sidebar-nav {
        transform: translateX(-260px);
        width: 260px;
        transition: transform 0.3s ease;
        z-index: 1100;
    }

    .sidebar-nav.open {
        transform: translateX(0);
    }

    .hamburger-btn { display: flex; }

    .header-nav { display: none; }

    .main-content { margin-left: 0; }

    .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

    .footer-columns { grid-template-columns: 1fr 1fr; }
}

/* Mobile: < 768px */
@media (max-width: 768px) {
    .header-top { padding: 0 12px; gap: 8px; }

    .content-area { padding: 16px; }

    .search-bar { display: none; }
    .search-bar.expanded {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        max-width: 100%;
        padding: 8px 12px;
        background: var(--header-bg);
        border-bottom: 1px solid var(--border-color);
        z-index: 10;
    }

    .search-bar-toggle { display: flex; }

    .live-wins-indicator { display: none; }

    .hero-section { padding: 40px 16px; min-height: 260px; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-logo { width: 120px; }

    .game-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
    .game-card { border-radius: 8px; }

    .feature-card { padding: 20px; min-height: 150px; }
    .feature-card-title { font-size: 1.125rem; }

    .features-grid { grid-template-columns: 1fr; }

    .footer-columns { grid-template-columns: 1fr; gap: 24px; }

    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

    .post-card { flex-direction: column; }
    .post-card-image { flex: none; min-height: 180px; }

    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }

    .carousel-item { width: 220px; }

    .error-404-code { font-size: 5rem; }
}

/* Small mobile: < 480px */
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .btn-login { display: none; }
}

/* ============================================
   Additional Styles for Templates
   ============================================ */

/* ---- Hero Section Enhanced ---- */
.hero-logo-wrap {
    margin-bottom: 24px;
    filter: drop-shadow(0 0 30px rgba(245,197,24,0.3));
}

.hero-logo-svg {
    width: 180px;
    height: 180px;
    transition: transform 0.4s ease;
}

.hero-logo-svg:hover {
    transform: scale(1.05) rotate(3deg);
}

.hero-social-logins {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.hero-social-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.hero-social-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #1a1d29;
    transform: translateY(-2px);
}

.hero-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-decor span {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,197,24,0.08) 0%, transparent 70%);
    animation: float-decor 8s ease-in-out infinite;
}

.hero-bg-decor span:nth-child(1) { top: -50px; left: 10%; animation-delay: 0s; }
.hero-bg-decor span:nth-child(2) { bottom: -30px; right: 15%; animation-delay: 2.5s; width: 150px; height: 150px; }
.hero-bg-decor span:nth-child(3) { top: 20%; right: 5%; animation-delay: 5s; width: 100px; height: 100px; }

@keyframes float-decor {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 0.8; }
}

/* ---- Explore Header ---- */
.explore-header {
    margin-bottom: 16px;
}

.explore-arrows {
    display: flex;
    gap: 8px;
}

.explore-arrows .carousel-btn {
    position: static;
    transform: none;
    width: 34px;
    height: 34px;
}

/* ---- Feature Carousel Cards ---- */
.feature-carousel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-color: rgba(245,197,24,0.3);
}

.feature-carousel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.feature-carousel-card:hover .feature-carousel-bg {
    transform: scale(1.08);
}

.feature-carousel-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.feature-carousel-title {
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.feature-carousel-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.feature-carousel-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Category Banner ---- */
.category-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
}

.category-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26,29,41,0.9) 0%, rgba(26,29,41,0.5) 100%);
}

.category-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.category-banner-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Provider Logos ---- */
.providers-section {
    margin-bottom: 32px;
}

.provider-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.provider-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 140px;
    flex: 1;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.provider-logo-card:hover {
    border-color: rgba(245,197,24,0.3);
    transform: translateY(-2px);
    background: var(--bg-tertiary);
}

.provider-logo-img {
    height: 32px;
    width: auto;
    max-width: 80px;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.provider-logo-card:hover .provider-logo-img {
    filter: brightness(1);
}

.provider-logo-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.provider-logo-count {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.8125rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--accent-gold);
}

.breadcrumb-sep {
    color: var(--text-secondary);
    opacity: 0.4;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* ---- Single Post Page ---- */
.single-post-page {
    max-width: 100%;
}

.single-article {
    margin-bottom: 40px;
}

.single-post-header {
    margin-bottom: 24px;
}

.single-post-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-item svg {
    opacity: 0.6;
}

.meta-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.meta-item a:hover {
    color: var(--accent-gold);
}

.single-featured-image {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.single-featured-image .featured-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 48px;
}

.single-post-content {
    min-width: 0;
}

.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
}

.tags-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.post-tag {
    padding: 4px 12px;
    border-radius: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.post-tag:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #1a1d29;
}

.single-post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.share-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.share-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.share-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ---- Single Post Sidebar ---- */
.single-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.sidebar-widget .widget-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-related-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(46,51,72,0.5);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-related-item:last-child { border-bottom: none; }
.sidebar-related-item:hover { opacity: 0.8; }

.sidebar-related-thumb {
    flex: 0 0 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
}

.sidebar-related-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sidebar-related-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-related-date {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-cloud-item {
    padding: 4px 10px;
    border-radius: 14px;
    background: var(--bg-tertiary);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.tag-cloud-item:hover {
    background: var(--accent-gold);
    color: #1a1d29;
}

/* ---- Related Posts Bottom Grid ---- */
.related-posts-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
}

.related-post-card:hover {
    border-color: rgba(245,197,24,0.3);
    transform: translateY(-2px);
}

.related-post-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

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

.related-post-info {
    padding: 16px;
}

.related-post-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-post-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ---- Comments Section ---- */
.comments-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.comments-section .comment-list {
    list-style: none;
    padding: 0;
}

.comments-section .comment {
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

/* ---- Archive Tabs ---- */
.archive-tabs {
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.archive-tabs-inner {
    display: flex;
    gap: 4px;
    padding-bottom: 4px;
    white-space: nowrap;
}

.archive-tab {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.archive-tab:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.archive-tab.active {
    background: var(--accent-gold);
    color: #1a1d29;
}

.archive-tab-news {
    background: rgba(0,210,106,0.15);
    color: var(--accent-green);
    border: 1px solid rgba(0,210,106,0.3);
}

.archive-tab-news:hover {
    background: var(--accent-green);
    color: #fff;
}

/* ---- Archive Search ---- */
.archive-search {
    margin-bottom: 20px;
}

.archive-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 480px;
}

.archive-search-input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px 12px 44px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.archive-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.archive-search-input:focus {
    border-color: var(--accent-gold);
    background: var(--bg-secondary);
}

.archive-search-bar .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
}

/* ---- Sort Options ---- */
.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-right: 4px;
}

.sort-btn {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.sort-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-color);
}

.sort-btn.active {
    background: var(--accent-gold);
    color: #1a1d29;
    border-color: var(--accent-gold);
}

/* ---- News Archive ---- */
.news-archive {
    margin-bottom: 32px;
}

.page-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.6;
}

.no-results {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ---- Live Bets Tabs ---- */
.live-bets-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
}

.live-bets-tabs::-webkit-scrollbar { display: none; }

.live-bets-tab {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.live-bets-tab:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.live-bets-tab.active {
    background: var(--accent-gold);
    color: #1a1d29;
}

.live-bet-row-header {
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.2);
}

.live-bet-multiplier {
    font-weight: 700;
    color: var(--accent-gold);
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

.providers-filter-section {
    margin-top: 40px;
}

/* ---- Responsive Overrides for New Components ---- */
@media (max-width: 1200px) {
    .single-post-layout {
        grid-template-columns: 1fr;
    }
    .single-post-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .sidebar-widget {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .single-post-title { font-size: 1.5rem; }
    .related-posts-grid { grid-template-columns: 1fr; }
    .provider-logos { gap: 10px; }
    .provider-logo-card { min-width: 110px; padding: 14px 10px; }
    .category-banner { min-height: 80px; padding: 16px 20px; }
    .category-banner-title { font-size: 1.125rem; }
    .feature-carousel-card { height: 200px; }
    .feature-carousel-title { font-size: 1.125rem; }
    .single-post-sidebar { flex-direction: column; }
    .sidebar-widget { min-width: 100%; }
    .live-bets-section { margin-bottom: 24px; }
    .live-bet-row { font-size: 0.75rem; padding: 8px 12px; }
}
