/* ===== HEXABEE RETRO — TIC-80 PALETTE THEME ===== */
:root {
    /* 🎮 TIC-80 Dark Backgrounds */
    --bg-page: #140c1c;      /* 0: Dark Purple/Black */
    --bg-card: #30346d;      /* 2: Dark Blue */
    --bg-card-hover: #475e75;/* 12: Teal */
    
    /* 🍯 TIC-80 "Honey" Equivalents */
    --honey-gold: #d27d2c;   /* 9: Orange */
    --honey-amber: #854c30;  /* 4: Brown */
    --honey-light: #b2c95f;  /* 11: Lime/Yellow-Green */
    
    /* ️ Glows (TIC-80 Orange based) */
    --warm-glow: rgba(210, 125, 44, 0.25);
    --warm-glow-strong: rgba(210, 125, 44, 0.4);
    
    /* 📝 Text Hierarchy (TIC-80 Grays/Whites) */
    --text-primary: #ffffff; /* 15: White */
    --text-secondary: #d3d3d3;/* 13: Light Gray */
    --text-tertiary: #757161;/* 7: Medium Gray */
    --text-on-gold: #140c1c; /* 0: Black */
    
    /* 🖼️ Border & Shadow */
    --border-color: rgba(210, 125, 44, 0.2);
    --border-hover: rgba(210, 125, 44, 0.6);
    --shadow-sm: 0 4px 6px rgba(20, 12, 28, 0.5);
    --shadow-md: 0 10px 25px rgba(210, 125, 44, 0.15);
    --shadow-lg: 0 20px 40px rgba(210, 125, 44, 0.25);
    
    /* 📐 Radius & Transition */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.25s ease;
    
    /* 🐝 TIC-80 Honeycomb Pattern */
    --honeycomb: repeating-linear-gradient(
        30deg,
        rgba(210,125,44,0.05) 0px,
        rgba(210,125,44,0.05) 10px,
        transparent 10px,
        transparent 20px
    );
}

/* ===== BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }


@font-face {
  font-family: 'Bai Jamjuree';
  font-style: medium;
  font-weight: 500;
  font-display: swap;
  src: url('/ttf/BaiJamjuree-Medium.ttf') format('ttf');
}

@font-face {
    font-family: 'Pixellari';
    src: url('/ttf/pixellari.woff2') format('woff2'),
        url('/ttf/pixellari.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}



body {
    font-family: 'Bai Jamjuree', system-ui, -apple-system, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: var(--honeycomb);
    background-attachment: fixed;
}

a {
    color: var(--honey-gold);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--honey-light); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.text-muted,
.text-secondary,
.card-text,
.small,
.lead {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(180deg, rgba(30,41,59,0.95), rgba(21,30,46,0.95)) !important;
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 0;
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--honey-gold), var(--honey-light), var(--honey-gold), transparent);
    opacity: 0.6;
}

.nav-logo {
    font-family: 'Pixellari', cursive;
    font-size: 1.2rem;
    color: var(--honey-light) !important;
    text-shadow: 0 0 10px var(--warm-glow);
    letter-spacing: -0.3px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: var(--honey-light) !important;
}

/* Nav link hover icon - Bootstrap Icons ONLY */
.nav-link::after {
    content: '\f12e'; /* bi-hexagon */
    font-family: 'bootstrap-icons' !important;
    position: absolute;
    bottom: -4px; left: 50%;
    font-size: 0.7rem;
    color: var(--honey-gold);
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== BADGE ===== */
.hexabee-badge {
    background: linear-gradient(135deg, var(--honey-gold), var(--honey-amber));
    color: var(--text-on-gold);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px var(--warm-glow-strong);
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.hexabee-badge::before {
    content: '\f636'; /* bi-bug */
    font-family: 'bootstrap-icons' !important;
    font-size: 0.75rem;
}

/* ===== HERO SECTION ===== */
.hero-section { padding: 3rem 0; }

.home-markdown-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.home-markdown-content::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 80px; height: 80px;
    background: var(--honeycomb);
    opacity: 0.3;
    poBai jamjuree-events: none;
}

/* ===== GAME CARDS — 1176x474 OPTIMIZED ===== */
.game-card-grid {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Üstte bal damlası çizgisi */
.game-card-grid::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--honey-amber), var(--honey-gold), var(--honey-light));
    opacity: 0;
    transition: var(--transition);
}

.game-card-grid:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), 0 0 25px var(--warm-glow);
}
.game-card-grid:hover::before { opacity: 1; }

/* 🎯 1176x474 Aspect Ratio Wrapper (40.3%) */
.card-img-top-wrapper {
    position: relative;
    width: 100%;
    padding-top: 40.3%; /* 474 / 1176 = 0.403 → %40.3 */
    overflow: hidden;
    background: #0f172a;
}

/* Görseli tam sığdır, kırpma yap */
.card-img-top {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Taşan kısmı kırp, alanı doldur */
    object-position: center; /* Ortala */
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.95) saturate(1.1);
}

.game-card-grid:hover .card-img-top {
    transform: scale(1.03);
    filter: brightness(1) saturate(1.2);
}

.card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem !important;
    color: var(--text-primary);
    /* Uzun başlıkları tek satıra sığdır */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-text {
    font-size: 0.875rem;
    margin-bottom: 0 !important;
}

/* Badge — Bee Style */
.card .badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    background: rgba(245, 158, 11, 0.15);
    color: var(--honey-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
    flex-shrink: 0; /* Badge küçülmesin */
}

/* ===== RESPONSIVE — MOBİLDE ORAN KORUNSUN ===== */
@media (max-width: 768px) {
    .card-img-top-wrapper {
        padding-top: 40.3%; /* Mobilde de aynı oran */
    }
    .card-title {
        font-size: 1rem;
        white-space: normal; /* Mobilde başlık alt satıra geçebilir */
        text-overflow: unset;
    }
}

/* ===== MARKDOWN CONTENT ===== */
.markdown-body,
.home-markdown-content {
    color: var(--text-secondary);
}

.markdown-body h1,
.home-markdown-content h1 {
    color: var(--honey-gold);
    font-size: 2rem;
    margin-top: 0;
    text-shadow: 0 0 15px var(--warm-glow);
}

.markdown-body h2,
.home-markdown-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    position: relative;
}

/* H2 icon - Bootstrap Icons ONLY */
.markdown-body h2::before,
.home-markdown-content h2::before {
    content: '\f434'; /* bi-droplet-fill */
    font-family: 'bootstrap-icons' !important;
    position: absolute;
    left: -1.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--honey-gold);
    opacity: 0.8;
}

.markdown-body p,
.home-markdown-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.markdown-body a,
.home-markdown-content a {
    color: var(--honey-gold);
    font-weight: 500;
    position: relative;
}
.markdown-body a:hover,
.home-markdown-content a:hover {
    color: var(--honey-light);
    text-decoration: none;
}

.markdown-body img,
.home-markdown-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.markdown-body img:hover,
.home-markdown-content img:hover {
    border-color: var(--honey-gold);
    box-shadow: 0 0 20px var(--warm-glow);
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.markdown-body li { margin-bottom: 0.25rem; }
.markdown-body li::marker { color: var(--honey-gold); }

.markdown-body code {
    background: rgba(245, 158, 11, 0.15);
    color: var(--honey-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.markdown-body pre {
    background: #0f172a;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

/* ===== ITCH.IO BUTTON ===== */
.markdown-body a[href*="itch.io"],
.home-markdown-content a[href*="itch.io"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--honey-gold), var(--honey-amber));
    color: var(--text-on-gold) !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin: 1rem 0;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 15px var(--warm-glow-strong);
    position: relative;
    overflow: hidden;
}

.markdown-body a[href*="itch.io"]::before,
.home-markdown-content a[href*="itch.io"]::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.4s ease;
}

.markdown-body a[href*="itch.io"]:hover,
.home-markdown-content a[href*="itch.io"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--warm-glow-strong);
    color: var(--text-on-gold) !important;
    text-decoration: none;
}
.markdown-body a[href*="itch.io"]:hover::before,
.home-markdown-content a[href*="itch.io"]:hover::before {
    left: 100%;
}

/* ===== GAME PLAYER / IFRAME ===== */
.game-player-section {
    background: linear-gradient(180deg, rgba(30,41,59,0.7) 0%, transparent 100%);
    padding: 2rem 0;
}

.player-wrapper {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--honey-gold);
    box-shadow: 0 0 30px var(--warm-glow);
    position: relative;
}

/* Corner icons - Bootstrap Icons ONLY, consolidated */
.player-wrapper::before,
.player-wrapper::after {
    content: '\f63a'; /* bi-hexagon-half */
    font-family: 'bootstrap-icons' !important;
    position: absolute;
    font-size: 1.2rem;
    color: var(--honey-gold);
    opacity: 0.3;
    poBai jamjuree-events: none;
}
.player-wrapper::before { bottom: 10px; left: 14px; }
.player-wrapper::after { top: 10px; right: 14px; }

.player-wrapper iframe {
    display: block;
    width: 100%;
    border: none;
}

.player-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.player-actions .btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.player-actions .btn:hover {
    border-color: var(--honey-gold);
    color: var(--honey-light);
}

/* ===== SIDEBAR / INFO CARD ===== */
.game-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
}

.game-info-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--honey-light), var(--honey-gold), var(--honey-amber));
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    opacity: 0.6;
}

.game-info-card dt {
    color: var(--text-tertiary);
    font-weight: 500;
}
.game-info-card dd {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Controls Box - Bootstrap Icons ONLY */
.controls-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--honey-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem;
    margin-top: 1rem;
}
.controls-box h6 {
    color: var(--honey-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.controls-box h6::before {
    content: '\f4fd'; /* bi-joystick */
    font-family: 'bootstrap-icons' !important;
    font-size: 1.1rem;
}
.controls-box ul li {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-card);
    border-top: 2px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
}

footer .brand {
    font-family: 'Pixellari', cursive;
    font-size: 1rem;
    color: var(--honey-light);
    text-shadow: 0 0 8px var(--warm-glow);
}

footer a {
    color: var(--text-tertiary);
    transition: var(--transition);
}
footer a:hover { color: var(--honey-gold); }

/* ===== BREADCRUMB - Bootstrap Icons ONLY ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.breadcrumb-item a {
    color: var(--text-secondary) !important;
}
.breadcrumb-item a:hover {
    color: var(--honey-gold) !important;
}
.breadcrumb-item.active {
    color: var(--text-tertiary) !important;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: '\f434'; /* bi-droplet-fill */
    font-family: 'bootstrap-icons' !important;
    font-size: 0.75rem;
    color: var(--border-color);
    padding: 0 0.5rem;
}

/* ===== UTILITIES ===== */
.border-secondary { border-color: var(--border-color) !important; }
.opacity-25 { opacity: 0.25 !important; }

.honey-border {
    border: 2px solid var(--honey-gold);
    box-shadow: 0 0 0 3px var(--warm-glow);
}

.honey-glow {
    box-shadow: 0 0 20px var(--warm-glow);
    transition: var(--transition);
}
.honey-glow:hover {
    box-shadow: 0 0 35px var(--warm-glow-strong);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --radius-md: 10px;
        --radius-lg: 14px;
    }
    .navbar-collapse {
        background: var(--bg-card);
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-top: 0.5rem;
        border: 1px solid var(--border-color);
    }
    .hero-section { padding: 2rem 0; }
    .home-markdown-content,
    .markdown-body { padding: 1.5rem; }
    h1.display-3, h1.display-4, h1.display-5 {
        font-size: 1.75rem !important;
    }
    .player-wrapper iframe {
        min-height: 250px;
        height: 45vh;
    }
}

/* ===== PRINT ===== */
@media print {
    body {
        background: white;
        color: black;
        background-image: none;
    }
    .navbar, footer, .game-card-grid, .player-wrapper {
        display: none;
    }
    .markdown-body {
        background: none;
        border: none;
        padding: 0;
        color: black;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes honeyDrip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}
.honey-drip:hover {
    animation: honeyDrip 0.3s ease;
}

/* ===== BOOTSTRAP ICONS HELPER ===== */
.bi {
    vertical-align: -0.125em;
    display: inline-block;
}
.breadcrumb-item i,
.game-info-card dt i,
.controls-box i {
    color: var(--honey-gold);
    opacity: 0.9;
}
.btn i { margin-right: 0.3rem; }
.markdown-body a[href*="itch.io"] i { margin-left: 0.3rem; }

/* Search Box Container */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 193, 7, 0.05); /* Çok hafif bal rengi arka plan */
    border: 1px solid rgba(255, 193, 7, 0.2); /* İnce altın çerçeve */
    border-radius: 50px; /* Yuvarlak hatlar */
    padding: 3px;
    transition: all 0.3s ease;
    max-width: 300px;
}

.search-box:focus-within {
    border-color: #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    background: rgba(255, 193, 7, 0.1);
}

/* Input Alanı */
.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 8px 15px;
    width: 100%;
    font-size: 14px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Search Düğmesi (İkon) */
.search-btn {
    background: #ffc107;
    border: none;
    color: #000;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: poBai jamjuree;
    transition: transform 0.2s ease, background 0.2s ease;
}

.search-btn:hover {
    background: #e5ac06;
    transform: scale(1.1);
}

.search-btn i {
    font-size: 14px;
    font-weight: bold;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .search-box {
        max-width: 100%;
        margin-top: 10px;
    }
}

    .hover-gold:hover { color: var(--honey-gold, #ffc107) !important; transition: 0.3s ease; }
    .brand { font-family: 'Pixellari', cursive, system-ui; } /* Eğer retro fontun varsa */

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== ADMIN PANEL — HIVE CONTROL ===== */

/* Admin Başlık & Layout */
.text-honey-gold { color: var(--honey-gold) !important; }
.text-honey-light { color: var(--honey-light) !important; }
.fw-black { font-weight: 900 !important; }
.tracking-tighter { letter-spacing: -0.05em !important; }

/* Admin Nav Tabs (Games | News | Pages) */
.btn-bee-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-bee-nav:hover {
    border-color: var(--honey-gold);
    color: var(--honey-light);
    background: rgba(245, 158, 11, 0.1);
}
.btn-bee-nav.active {
    background: linear-gradient(135deg, var(--honey-gold), var(--honey-amber));
    color: var(--text-on-gold) !important;
    border-color: var(--honey-gold);
    box-shadow: 0 4px 12px var(--warm-glow-strong);
}
.btn-bee-nav.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--text-on-gold);
    opacity: 0.8;
}

/* Admin Action Buttons */
.btn-bee-add {
    background: linear-gradient(135deg, var(--honey-gold), var(--honey-amber));
    color: var(--text-on-gold) !important;
    font-weight: 800;
    font-size: 0.9rem;
    border: 2px solid var(--honey-gold);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 0 var(--honey-amber), var(--shadow-sm);
    transition: all 0.1s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-bee-add:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--honey-amber), var(--shadow-sm);
    background: linear-gradient(135deg, var(--honey-amber), #b45309);
}
.btn-bee-add:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 var(--honey-amber), none;
}

.btn-bee-save {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff !important;
    font-weight: 800;
    border: 2px solid #10b981;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 0 #047857, var(--shadow-sm);
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-bee-save:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #047857, var(--shadow-sm);
    background: linear-gradient(135deg, #059669, #047857);
}
.btn-bee-save:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #047857, none;
}

/* Admin Form Card (game-card-grid override for admin) */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Form Inputs — Dark & Honey */
.form-control {
    background: #0f172a !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.6rem 0.8rem !important;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--honey-gold) !important;
    box-shadow: 0 0 0 3px var(--warm-glow) !important;
    background: #1e293b !important;
}
.form-control::placeholder {
    color: var(--text-tertiary);
    opacity: 1;
}
.form-label {
    color: var(--text-honey-light);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem !important;
}

/* Admin Table */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(245, 158, 11, 0.03);
    --bs-table-hover-bg: rgba(245, 158, 11, 0.08);
    --bs-table-border-color: var(--border-color);
}
.table-dark th {
    color: var(--honey-light);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0.75rem;
}
.table-dark td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
}
.table-hover tbody tr:hover td {
    color: var(--text-primary);
    background: rgba(245, 158, 11, 0.05);
}

/* Admin Edit Actions */
.btn-outline-warning {
    border-color: var(--honey-gold);
    color: var(--honey-light);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    transition: var(--transition);
}
.btn-outline-warning:hover {
    background: var(--honey-gold);
    color: var(--text-on-gold) !important;
    box-shadow: 0 0 15px var(--warm-glow);
}

/* Quill Editor — Full Honey Theme */
.ql-toolbar.ql-snow {
    background: #1e293b !important;
    border-color: var(--border-color) !important;
    border-top-left-radius: var(--radius-sm) !important;
    border-top-right-radius: var(--radius-sm) !important;
    padding: 0.5rem !important;
}
.ql-container.ql-snow {
    border-color: var(--border-color) !important;
    border-bottom-left-radius: var(--radius-sm) !important;
    border-bottom-right-radius: var(--radius-sm) !important;
    font-size: 1rem !important;
    font-family: 'Bai Jamjuree', sans-serif !important;
}
.ql-editor {
    color: var(--text-primary) !important;
    min-height: 300px;
}
.ql-editor.ql-blank::before {
    color: var(--text-tertiary) !important;
    font-style: normal !important;
}
.ql-snow .ql-stroke { stroke: var(--text-secondary) !important; }
.ql-snow .ql-fill { fill: var(--text-secondary) !important; }
.ql-snow .ql-picker { color: var(--text-secondary) !important; }
.ql-snow .ql-picker-options {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}
.ql-snow .ql-picker-item { color: var(--text-primary) !important; }
.ql-snow .ql-picker-item:hover { color: var(--honey-light) !important; }
.ql-snow .ql-picker.ql-expanded .ql-picker-label {
    border-color: var(--honey-gold) !important;
}
/* Quill dropdown active */
.ql-snow .ql-picker.ql-expanded .ql-picker-options {
    box-shadow: var(--shadow-lg) !important;
}

/* Quill content styling inside editor */
.ql-editor h1, .ql-editor h2, .ql-editor h3 { color: var(--honey-gold) !important; }
.ql-editor a { color: var(--honey-light) !important; }
.ql-editor code {
    background: rgba(245, 158, 11, 0.15);
    color: var(--honey-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}
.ql-editor pre {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/* Admin Alert & Messages */
.alert {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--honey-gold);
    border-left: 4px solid var(--honey-gold);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}
.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    border-left-color: #f87171;
    color: #fecaca;
}

/* Empty State */
.text-muted, .text-center.text-muted {
    color: var(--bs-white) !important;
    font-style: italic;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .btn-bee-nav {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .btn-bee-add, .btn-bee-save {
        width: 100%;
        text-align: center;
    }
    .ql-toolbar.ql-snow,
    .ql-container.ql-snow {
        border-radius: var(--radius-sm) !important;
    }
}

/* Focus accessibility */
.form-control:focus,
.btn-bee-add:focus,
.btn-bee-save:focus,
.btn-bee-nav:focus {
    outline: 2px solid var(--honey-light);
    outline-offset: 2px;
}

/* ===== ADMIN GAMES FORM — COMPACT GRID ===== */

/* Games formundaki inputları daha kompakt yap */
[type="games"] .form-control,
form#adminForm .form-control {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.9rem !important;
    min-height: 38px !important;
}

/* Label'ları biraz daha sıkıştır */
form#adminForm .form-label {
    margin-bottom: 0.25rem !important;
    font-size: 0.75rem !important;
}

/* Games'e özel alanlar için ekstra sıkı grid */
@media (min-width: 768px) {
    /* 4 alanı 2x2 grid yerine, mümkünse tek satıra yakın tut */
    form#adminForm .col-md-6 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Quill editör yüksekliğini biraz düşür (admin için) */
#quillEditor {
    height: 320px !important; /* 400px → 320px */
    min-height: 320px !important;
}

/* Buton alanını sabitle: Formun altına yapışık ama görünür */
form#adminForm .mt-5.d-flex.gap-3 {
    margin-top: 1.5rem !important; /* 3rem → 1.5rem */
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, transparent, var(--bg-card) 30%);
    padding-bottom: 1rem;
    z-index: 10;
}

/* Mobilde butonları alt alta, tam genişlik */
@media (max-width: 576px) {
    form#adminForm .mt-5.d-flex.gap-3 {
        flex-direction: column;
    }
    form#adminForm .mt-5.d-flex.gap-3 .btn {
        width: 100%;
        text-align: center;
    }
}

/* Games formunda summary/news alanları yok, o boşluğu kapat */
form#adminForm .col-12:has(textarea[name="summary"]) {
    margin-bottom: 0;
}

        .hive-pagination .page-link {
            background: #0f172a;
            border-color: var(--border-color);
            color: var(--text-secondary);
            margin: 0 4px;
            border-radius: 8px !important;
        }
        .hive-pagination .page-link:hover {
            background: var(--bg-card-hover);
            color: var(--honey-gold);
            border-color: var(--honey-gold);
        }
        .hive-pagination .page-item.active .page-link {
            background: var(--honey-gold);
            color: var(--text-on-gold);
            border-color: var(--honey-gold);
            font-weight: 700;
        }
        .hive-pagination .page-item.disabled .page-link {
            background: #0f172a;
            border-color: var(--border-color);
            color: var(--text-tertiary);
            opacity: 0.5;
        }

/* =========================================
   🟢 HEXABEE VURUCU UPCOMING BAR CSS
   ========================================= */

/* Ana Bar: Daha Koyu Arka Plan ve Hafif Shadow */
.upcoming-bar-v2 {
    background: #020202; /* Kapkara, içeriği öne çıkarır */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
}

/* Yenilenmiş Status Badge (Pulse Efekti Dahil) */
.hive-status-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); /* Gradyan */
    color: #000;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    animation: hivePulse 2s infinite;
}

/* Sayaç Wrapper */
.hive-countdown-wrapper {
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

/* Statik Tarih */
.hive-countdown-wrapper .static-date {
    opacity: 0.9;
}

/* Dinamik Sayaç (Canlı Kısmı) */
.hive-countdown-wrapper .dynamic-timer {
    opacity: 1; /* Transparanlığı kaldırdık */
    text-shadow: 0 0 5px rgba(252, 211, 77, 0.5); /* Hafif Işıma */
}

/* Oyun Bilgisi (Sağ Taraf) */
.hive-game-info .l-spacing-2 {
    letter-spacing: 2px; /* Daha açık harfler */
}

/* Oyun Adı Işıması (Glow) */
.text-glow-honey {
    color: #fff;
    text-shadow: 0 0 8px rgba(252, 211, 77, 0.8);
    font-weight: 800;
}

/* Genel Yardımcı Sınıflar */
.monospace-font { font-family: 'Courier New', Courier, monospace; }
.text-honey-light { color: #fcd34d; }
.text-honey-gold { color: #f59e0b; }

/* Yenilenmiş Pulse Animasyonu (Daha Yumuşak) */
@keyframes hivePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
        opacity: 1;
    }
    70% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
        opacity: 0.8;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
        opacity: 1;
    }
}

/* ===== COMING SOON OVERLAY ===== */
.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 12, 28, 0.3); /* TIC-80 Koyu mor şeffaf */
    backdrop-filter: blur(4px); /* Arka planı hafif bulanıklaştırır */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}

.coming-soon-text {
    font-family: 'Pixellari', sans-serif;
    color: var(--honey-gold);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    border: 2px solid var(--honey-gold);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px var(--warm-glow);
    transform: rotate(-5deg); /* Hafif retro eğimi */
    animation: pulse 2s infinite ease-in-out;
}

/* Kart hover olduğunda Coming Soon yazısını daha çok parlat */
.game-card-grid:hover .coming-soon-overlay {
    background: rgba(20, 12, 28, 0.4);
}

.game-card-grid:hover .coming-soon-text {
    color: var(--honey-light);
    border-color: var(--honey-light);
    box-shadow: 0 0 25px var(--warm-glow-strong);
}

/* Nabız animasyonu */
@keyframes pulse {
    0% { transform: rotate(-5deg) scale(1); opacity: 0.9; }
    50% { transform: rotate(-5deg) scale(1.05); opacity: 1; }
    100% { transform: rotate(-5deg) scale(1); opacity: 0.9; }
}