:root {
    --bg-dark: #060a12;
    --bg-surface: #0c1220;
    --bg-card: rgba(16, 24, 40, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.5);
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.4);
    --green: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 100% 30%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
.main-header {
    background: rgba(12, 18, 32, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: calc(14px + var(--safe-top)) 24px 14px;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 14px var(--primary-glow);
}

.brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 999px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 0.8; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.25); }
}

.live-text {
    font-size: 12px;
    color: var(--text-muted);
}

.live-text b {
    color: #60a5fa;
}

/* Container */
.content-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* -------------------------------------------------------------
   1. BİZİM SPONSORLARIMIZ (VİTRİN ALANI)
   ------------------------------------------------------------- */
.sponsor-showcase-section {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.07) 0%, rgba(16, 24, 40, 0.8) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(245, 158, 11, 0.15);
}

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

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crown-icon {
    font-size: 18px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.vip-badge {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.sub-count {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
}

/* Sponsor Grid */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.sponsor-item {
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.sponsor-item:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-glow);
}

.sponsor-item:active {
    transform: scale(0.98);
}

.sponsor-banner-box {
    width: 100%;
    aspect-ratio: 3 / 1;
    height: 90px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sponsor-glow-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
}

.sponsor-name-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px;
}

.sponsor-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.sponsor-btn-icon {
    font-size: 13px;
    color: var(--gold);
    transition: transform 0.2s ease;
}

.sponsor-item:hover .sponsor-btn-icon {
    transform: translateX(3px);
}

/* -------------------------------------------------------------
   2. ARAMA BÖLÜMÜ
   ------------------------------------------------------------- */
.search-section {
    display: flex;
    justify-content: center;
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 560px;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-wrap input {
    width: 100%;
    background: rgba(16, 24, 40, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 13px 40px 13px 46px;
    font-size: 14px;
    color: #fff;
    outline: none;
    transition: all 0.25s ease;
}

.search-wrap input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 16px var(--primary-glow);
}

#clearSearch {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}

/* -------------------------------------------------------------
   3. YAN YANA 8'Lİ LOGO GRİDİ (TÜM SİTELER)
   ------------------------------------------------------------- */
.eight-col-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr)); /* Masaüstünde yan yana tam 8'li sıralama */
    gap: 16px 14px;
}

.logo-tile {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-tile:hover {
    transform: translateY(-4px);
}

.logo-tile:active {
    transform: scale(0.96);
}

.tile-square-avatar {
    width: 100%;
    aspect-ratio: 1 / 1; /* Telegram 1:1 Kare Avatar */
    border-radius: 18px;
    background: #090e1a;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.22s ease;
}

.logo-tile:hover .tile-square-avatar {
    border-color: var(--border-hover);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.tile-square-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-light);
    letter-spacing: 0.5px;
}

.tile-brand-name {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.2s ease;
}

.logo-tile:hover .tile-brand-name {
    color: #60a5fa;
}

/* Boş Durum */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 500px;
    margin: 20px auto;
}

.empty-icon {
    font-size: 38px;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 13px;
    line-height: 1.5;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    background: rgba(12, 18, 32, 0.6);
}

/* -------------------------------------------------------------
   RESPONSIVE (Ekran Boyutlarına Göre 8'li Kolon Kademesi)
   ------------------------------------------------------------- */
@media (max-width: 1400px) {
    .eight-col-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)); /* 6 Kolon */
    }
}

@media (max-width: 1100px) {
    .eight-col-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)); /* 5 Kolon */
    }
}

@media (max-width: 860px) {
    .eight-col-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 Kolon (Tablet) */
        gap: 10px;
    }
    .content-container {
        padding: 16px 16px 40px;
        gap: 20px;
    }
}

@media (max-width: 580px) {
    .eight-col-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 Kolon (Mobil) */
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .eight-col-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 Kolon (Küçük Mobil) */
    }
}
