/* =====================================================
   M2DEV - TEMA v2.1
   Siyah + Zümrüt Yeşili (#39e66b)
   Tüm renkler ve ölçüler :root içinden değiştirilir.
===================================================== */

:root {
    /* Ana vurgu rengi */
    --green: #39e66b;
    --green-light: #7dffa1;
    --green-dark: #1fbf4f;
    --green-rgb: 57, 230, 107;          /* rgba(var(--green-rgb), .2) için */

    /* İkinci vurgu: yalnızca VIP / öne çıkan içerikler için */
    --gold: #f5b83d;
    --gold-light: #ffd678;
    --gold-dark: #d99a1c;
    --gold-rgb: 245, 184, 61;

    /* Eski isimle uyumluluk (bildirim zili vb. --m2-green kullanıyordu) */
    --m2-green: var(--green);

    /* Zeminler */
    --bg: #070b08;
    --panel: #101812;
    --panel2: #152219;
    --panel3: #1b3520;

    /* Metin */
    --text: #eaf2eb;
    --text-muted: #9eaca1;
    --text-faint: #7d8b81;

    /* Çerçeve, gölge, köşe */
    --border: rgba(105, 170, 111, .22);
    --border-green: rgba(var(--green-rgb), .3);
    --glow: 0 0 28px rgba(var(--green-rgb), .15);
    --shadow: 0 12px 32px rgba(0, 0, 0, .22);
    --radius: 14px;
    --radius-sm: 9px;

    /* Hareket */
    --ease: .25s ease;

    /* Yazı tipleri */
    --font-display: "Rajdhani", "Chakra Petch", "Segoe UI", system-ui, sans-serif;

    /* Durum ve etiket renkleri */
    --online: #39e66b;
    --offline: #6b7a70;
    --new: #2dd4d4;
    --new-rgb: 45, 212, 212;

    color-scheme: dark;
}

/* =====================================================
   GENEL GÖRÜNÜM
===================================================== */

body {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(var(--green-rgb), .075), transparent 42%),
        radial-gradient(ellipse at 0% 50%, rgba(20, 90, 35, .06), transparent 35%),
        var(--bg);
    letter-spacing: .1px;
}

.container {
    max-width: 1540px;
}

/* Klavye ile gezenler için net odak halkası */
:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

/* =====================================================
   ÜST MENÜ
===================================================== */

.header {
    background: rgba(5, 11, 7, .92);
    border-bottom: 1px solid rgba(var(--green-rgb), .16);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .3);
}

.navbar {
    min-height: 88px;
}

.logo {
    text-shadow: 0 0 24px rgba(var(--green-rgb), .15);
}

.nav-links a {
    font-size: 13px;
    letter-spacing: .3px;
}

.nav-links a.active {
    color: var(--green);
}

/* =====================================================
   HERO ALANI
===================================================== */

.hero {
    min-height: 460px;
    background:
        radial-gradient(ellipse at 75% 45%, rgba(var(--green-rgb), .17), transparent 38%),
        radial-gradient(ellipse at 15% 85%, rgba(20, 100, 40, .16), transparent 40%),
        linear-gradient(120deg, #080d09, #102016 55%, #080e09);
}

.hero h1 {
    text-shadow: 0 8px 35px rgba(0, 0, 0, .45);
}

.hero-label,
.section-tag {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid rgba(var(--green-rgb), .25);
    border-radius: 30px;
    background: rgba(var(--green-rgb), .06);
}

.hero-stats div {
    padding-right: 25px;
    border-right: 1px solid var(--border);
}

.hero-stats div:last-child {
    border-right: 0;
}

/* =====================================================
   BÖLÜM BAŞLIKLARI
===================================================== */

.section-heading {
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(100, 150, 105, .14);
}

.section-heading h2 {
    font-size: 25px;
    letter-spacing: -.7px;
}

/* =====================================================
   KARTLAR
===================================================== */

.server-card,
.vip-card,
.guide-card,
.quick-card,
.guild-placeholder,
.calendar-box,
.panel,
.content-box,
.form-box,
.profile-box {
    border-radius: var(--radius);
    border-color: var(--border);
    background: linear-gradient(145deg, rgba(20, 31, 23, .97), rgba(10, 17, 12, .98));
    box-shadow: var(--shadow);
}

.server-card:hover,
.vip-card:hover,
.guide-card:hover,
.quick-card:hover {
    border-color: rgba(var(--green-rgb), .65);
    box-shadow: 0 15px 38px rgba(0, 0, 0, .35), var(--glow);
    transform: translateY(-4px);
}

/* =====================================================
   SUNUCU KARTLARI
===================================================== */

.server-card .server-logo {
    border-radius: 11px;
    background: radial-gradient(circle, var(--panel3), #080d09 75%);
    border-color: rgba(var(--green-rgb), .14);
}

.server-card .server-title h3 {
    letter-spacing: -.3px;
}

.server-card .server-stats {
    background: rgba(3, 9, 5, .55);
    border-radius: 10px;
}

.server-card .stat-row {
    border-bottom: 1px solid rgba(100, 150, 105, .1);
}

.server-card .stat-row:last-child {
    border-bottom: 0;
}

/* =====================================================
   BUTONLAR
===================================================== */

.primary-btn,
.register-btn,
.search-box button,
.btn-primary {
    color: #04120a; /* açık yeşil zeminde yüksek kontrast */
    background: linear-gradient(135deg, var(--green-light), var(--green-dark));
    box-shadow: 0 5px 20px rgba(var(--green-rgb), .16);
}

.primary-btn:hover,
.register-btn:hover,
.search-box button:hover,
.btn-primary:hover {
    box-shadow: 0 0 27px rgba(var(--green-rgb), .35);
    transform: translateY(-2px);
}

/* =====================================================
   ARAMA ALANI
===================================================== */

.search-box {
    padding: 14px;
    border-radius: 13px;
    background: rgba(17, 27, 20, .88);
    border-color: var(--border);
}

.search-box input,
.search-box select {
    min-height: 47px;
    border-radius: var(--radius-sm);
}

/* =====================================================
   VIP ALANI (altın vurgu)
===================================================== */

.vip-section {
    border-radius: 17px;
    border-color: rgba(var(--gold-rgb), .35);
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--gold-rgb), .12), transparent 35%),
        linear-gradient(145deg, #1c1a12, #0d0f0a);
}

.vip-section .section-heading {
    border-bottom-color: rgba(var(--gold-rgb), .2);
}

.vip-section .section-tag {
    color: var(--gold);
    border-color: rgba(var(--gold-rgb), .3);
    background: rgba(var(--gold-rgb), .07);
}

.vip-card {
    overflow: hidden;
    border-color: rgba(var(--gold-rgb), .22);
}

.vip-card:hover {
    border-color: rgba(var(--gold-rgb), .7);
    box-shadow: 0 15px 38px rgba(0, 0, 0, .35), 0 0 28px rgba(var(--gold-rgb), .16);
}

.vip-card img {
    transition: transform .4s ease;
}

.vip-card:hover img {
    transform: scale(1.045);
}

/* VIP rozeti: HTML'de .vip-badge sınıfını kullanın */
.vip-badge {
    display: inline-block;
    padding: 4px 10px;
    color: #1a1204;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

/* =====================================================
   SEKMELER
===================================================== */

.showcase-tabs {
    gap: 9px;
    border-bottom-color: rgba(var(--green-rgb), .2);
}

.showcase-tab {
    border-radius: 8px 8px 0 0;
    padding: 14px 19px;
}

.showcase-tab.active {
    background: linear-gradient(180deg, var(--panel3), #111c14);
    box-shadow: inset 0 -2px var(--green);
}

/* =====================================================
   FORMLAR
===================================================== */

input,
select,
textarea {
    border-radius: var(--radius-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: var(--radius-sm);
    min-height: 46px;
}

.form-group textarea {
    min-height: 125px;
}

/* =====================================================
   TABLOLAR
===================================================== */

table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 10px;
}

th {
    background: #17291b;
    padding: 15px;
}

td {
    padding: 15px;
}

tr:last-child td {
    border-bottom: 0;
}

/* =====================================================
   FOOTER
===================================================== */

.footer {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(var(--green-rgb), .07), transparent 55%),
        var(--bg);
    border-top-color: rgba(var(--green-rgb), .2);
}

/* =====================================================
   GEÇİŞ ANİMASYONLARI
   (hover'da transform kullanan tüm butonlar dahil)
===================================================== */

@media (prefers-reduced-motion: no-preference) {
    .server-card,
    .vip-card,
    .guide-card,
    .quick-card,
    .primary-btn,
    .secondary-btn,
    .register-btn,
    .btn-primary,
    .search-box button {
        transition:
            transform var(--ease),
            border-color var(--ease),
            box-shadow var(--ease),
            background var(--ease);
    }
}

/* =====================================================
   ANA SAYFA - ÜÇ SÜTUNLU DÜZEN
===================================================== */

.main-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 24px;
    align-items: start;
    width: 100%;
}

.main-content {
    min-width: 0;
    width: 100%;
}

.side-ad,
.side-ad-left,
.side-ad-right {
    display: block;
    width: 100%;
    min-width: 0;
}

/* Sol ve sağ reklam kartları */

.side-ad-left .normal-ad-card,
.side-ad-right .normal-ad-card {
    display: block;
    width: 100%;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 12px;
}

.side-ad-left .normal-ad-image,
.side-ad-right .normal-ad-image {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
}

.side-ad-left .normal-ad-placeholder,
.side-ad-right .normal-ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 350px;
    padding: 18px 12px;
    text-align: center;
}

.side-ad-left .ad-box,
.side-ad-right .ad-box {
    width: 100%;
    min-height: 350px;
    overflow: hidden;
}

/* =====================================================
   BİLDİRİM ZİLİ
===================================================== */

.notification-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    background: #121b14;
    border: 1px solid var(--border-green);
    border-radius: 8px;
    font-size: 19px;
    cursor: pointer;
    transition: background .2s, border-color .2s, box-shadow .2s;
}

.notification-bell:hover,
.notification-wrap.open .notification-bell {
    background: rgba(var(--green-rgb), .12);
    border-color: var(--green);
    box-shadow: 0 0 15px rgba(var(--green-rgb), .15);
}

.notification-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    color: #04120a;
    background: var(--green);
    border: 2px solid var(--bg);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 13px);
    right: 0;
    z-index: 500;
    width: 340px;
    max-width: calc(100vw - 25px);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid rgba(var(--green-rgb), .35);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .55);
}

.notification-wrap.open .notification-dropdown {
    display: block;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #142019;
    border-bottom: 1px solid rgba(var(--green-rgb), .15);
}

.notification-dropdown-header strong {
    color: var(--text);
    font-size: 13px;
}

.notification-dropdown-header span {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
}

.notification-list {
    max-height: 340px;
    overflow-y: auto;
}

.notification-item {
    display: block;
    width: 100%;
    padding: 13px 15px;
    color: inherit;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    text-align: left;
    cursor: pointer;
    transition: background .2s;
}

.notification-item:hover {
    background: rgba(var(--green-rgb), .08);
}

.notification-item.unread {
    background: rgba(var(--green-rgb), .05);
    border-left: 3px solid var(--green);
}

.notification-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 13px;
}

.notification-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.notification-item small {
    display: block;
    margin-top: 7px;
    color: var(--text-faint);
    font-size: 11px;
}

.notification-empty {
    padding: 25px 15px;
    color: var(--text-muted);
    text-align: center;
    font-size: 13px;
}

.notification-footer {
    display: block;
    padding: 13px;
    color: var(--green);
    background: #142019;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    border-top: 1px solid rgba(var(--green-rgb), .15);
    transition: background .2s;
}

.notification-footer:hover {
    background: #1a2a1d;
}

/* =====================================================
   RESPONSIVE
   (tüm medya sorguları tek yerde, büyükten küçüğe)
===================================================== */

@media (min-width: 1500px) {
    .main-layout {
        grid-template-columns: 240px minmax(0, 1fr) 240px;
        gap: 28px;
    }
}

@media (max-width: 1150px) {
    .main-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .side-ad-left,
    .side-ad-right {
        display: none;
    }
}

@media (max-width: 900px) {
    .navbar {
        min-height: 76px;
    }

    .nav-links {
        background: rgba(7, 13, 9, .98);
        backdrop-filter: blur(18px);
        padding: 22px 5%;
    }
}

@media (max-width: 650px) {
    .notification-bell {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .notification-dropdown {
        position: fixed;
        top: 76px;
        right: 12px;
        width: min(340px, calc(100vw - 24px));
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 390px;
    }

    .hero-stats div {
        padding-right: 12px;
    }

    .section-heading h2 {
        font-size: 20px;
    }

    .server-card,
    .vip-card,
    .guide-card {
        border-radius: 12px;
    }
}


/* =====================================================
   EK 1 - BAŞLIK YAZI TİPİ
   HTML <head> içine Rajdhani bağlantısı eklenmeli (bkz. m2dev-kurulum.md)
===================================================== */

h1, h2, h3,
.logo,
.hero h1,
.section-heading h2,
.server-card .server-title h3 {
    font-family: var(--font-display);
    font-weight: 700;
}

.hero h1 {
    letter-spacing: -.5px;
}

.hero-stats strong,
.hero-stats b,
.hero-stats .count {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums; /* sayılar sayarken kaymasın */
}

/* =====================================================
   EK 2 - SUNUCU DURUM GÖSTERGELERİ
   <span class="status-dot online"></span>
   <div class="load-bar" style="--fill:72%"><span></span></div>
===================================================== */

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--offline);
    vertical-align: middle;
}

.status-dot.online {
    background: var(--online);
    box-shadow: 0 0 0 3px rgba(var(--green-rgb), .18);
}

.status-dot.offline {
    background: var(--offline);
}

.load-bar {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
}

.load-bar > span {
    display: block;
    width: var(--fill, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green-dark), var(--green-light));
}

/* %85 üzeri dolu: altın uyarı tonu */
.load-bar.full > span {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}

/* =====================================================
   EK 3 - ETİKETLER (Yeni / Popüler)
   <span class="badge badge-new">Yeni</span>
   <span class="badge badge-popular">Popüler</span>
===================================================== */

.badge {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.badge-new {
    color: var(--new);
    border-color: rgba(var(--new-rgb), .35);
    background: rgba(var(--new-rgb), .1);
}

.badge-popular {
    color: var(--green);
    border-color: rgba(var(--green-rgb), .35);
    background: rgba(var(--green-rgb), .1);
}

/* =====================================================
   EK 4 - KART ÜZERİNE GELİNCE AÇILAN DETAY
   <div class="server-extra"> ... rates, açılış tarihi ... </div>
===================================================== */

.server-card .server-extra {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    color: var(--text-muted);
    font-size: 13px;
    transition: max-height .3s ease, opacity .25s ease, margin-top .3s ease;
}

.server-card:hover .server-extra,
.server-card:focus-within .server-extra {
    max-height: 160px;
    margin-top: 12px;
    opacity: 1;
}

/* Dokunmatik cihazlarda hover olmadığı için her zaman açık */
@media (hover: none) {
    .server-card .server-extra {
        max-height: none;
        margin-top: 12px;
        opacity: 1;
    }
}

/* =====================================================
   EK 5 - TEMA DÜĞMESİ
   <button class="theme-toggle" type="button" aria-label="Temayı değiştir">
===================================================== */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--green);
    background: #121b14;
    border: 1px solid var(--border-green);
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.theme-toggle:hover {
    background: rgba(var(--green-rgb), .12);
    border-color: var(--green);
}

/* =====================================================
   EK 6 - AÇIK TEMA
   <html data-theme="light"> olduğunda çalışır
===================================================== */

html[data-theme="light"] {
    color-scheme: light;

    --green: #12a64a;
    --green-light: #2fcf6b;
    --green-dark: #0c8a3b;
    --green-rgb: 18, 166, 74;
    --gold: #b7791f;
    --gold-rgb: 183, 121, 31;

    --bg: #f3f7f4;
    --panel: #ffffff;
    --panel2: #eef4ef;
    --panel3: #e2efe5;
    --text: #14211a;
    --text-muted: #4a5a50;
    --text-faint: #6b7a70;
    --border: rgba(20, 60, 30, .16);
    --border-green: rgba(var(--green-rgb), .4);
    --shadow: 0 10px 28px rgba(20, 50, 30, .1);
    --glow: 0 0 24px rgba(var(--green-rgb), .15);
}

html[data-theme="light"] body {
    color: var(--text);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(var(--green-rgb), .08), transparent 45%),
        var(--bg);
}

html[data-theme="light"] .header {
    background: rgba(255, 255, 255, .92);
    border-bottom-color: var(--border);
    box-shadow: 0 6px 24px rgba(20, 50, 30, .08);
}

html[data-theme="light"] .hero {
    color: var(--text);
    background:
        radial-gradient(ellipse at 75% 45%, rgba(var(--green-rgb), .16), transparent 40%),
        linear-gradient(120deg, #f6faf7, #e4f1e8 55%, #f3f8f4);
}

html[data-theme="light"] .hero h1 {
    text-shadow: none;
}

html[data-theme="light"] .server-card,
html[data-theme="light"] .vip-card,
html[data-theme="light"] .guide-card,
html[data-theme="light"] .quick-card,
html[data-theme="light"] .guild-placeholder,
html[data-theme="light"] .calendar-box,
html[data-theme="light"] .panel,
html[data-theme="light"] .content-box,
html[data-theme="light"] .form-box,
html[data-theme="light"] .profile-box {
    color: var(--text);
    background: var(--panel);
    border-color: var(--border);
}

html[data-theme="light"] .server-card .server-stats {
    background: var(--panel2);
}

html[data-theme="light"] .server-card .server-logo {
    background: radial-gradient(circle, #ffffff, var(--panel3) 80%);
}

html[data-theme="light"] .vip-section {
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--gold-rgb), .12), transparent 38%),
        linear-gradient(145deg, #fffaf0, #fff4de);
}

html[data-theme="light"] .search-box {
    background: var(--panel);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    color: var(--text);
    background: #ffffff;
    border-color: var(--border);
}

html[data-theme="light"] th {
    color: var(--text);
    background: var(--panel3);
}

html[data-theme="light"] .showcase-tab.active {
    background: linear-gradient(180deg, var(--panel3), var(--panel2));
}

html[data-theme="light"] .footer {
    color: var(--text-muted);
    background: var(--panel2);
}

html[data-theme="light"] .notification-bell,
html[data-theme="light"] .theme-toggle {
    background: #ffffff;
}

html[data-theme="light"] .notification-dropdown {
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(20, 50, 30, .18);
}

html[data-theme="light"] .notification-dropdown-header,
html[data-theme="light"] .notification-footer {
    background: var(--panel2);
}

html[data-theme="light"] .notification-item {
    border-bottom-color: var(--border);
}

html[data-theme="light"] .notification-item strong,
html[data-theme="light"] .notification-dropdown-header strong {
    color: var(--text);
}

html[data-theme="light"] .primary-btn,
html[data-theme="light"] .register-btn,
html[data-theme="light"] .search-box button,
html[data-theme="light"] .btn-primary {
    color: #ffffff;
}

html[data-theme="light"] .vip-badge {
    color: #ffffff;
}

/* =====================================================
   EK 7 - MOBİL ALT GEZİNME ÇUBUĞU
   <nav class="mobile-nav"> ... <a class="mobile-nav-item"> ...
===================================================== */

.mobile-nav {
    display: none;
}

@media (max-width: 900px) {
    .mobile-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 400;
        display: flex;
        justify-content: space-around;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(7, 13, 9, .96);
        border-top: 1px solid rgba(var(--green-rgb), .2);
        backdrop-filter: blur(16px);
    }

    .mobile-nav-item {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 6px 2px;
        color: var(--text-muted);
        border-radius: 8px;
        font-size: 11px;
        text-decoration: none;
    }

    .mobile-nav-item .icon {
        font-size: 20px;
        line-height: 1;
    }

    .mobile-nav-item.active,
    .mobile-nav-item:hover {
        color: var(--green);
    }

    /* Çubuğun altındaki içerik kapanmasın */
    body {
        padding-bottom: 72px;
    }
}

html[data-theme="light"] .mobile-nav {
    background: rgba(255, 255, 255, .96);
}

/* =====================================================
   EK 8 - YÜKLEME İSKELETİ
   Yükleme sırasında kartlara .skeleton ekleyin
   <div class="skeleton skeleton-card"></div>
===================================================== */

.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel2);
}

.skeleton-card {
    min-height: 180px;
}

.skeleton-line {
    height: 12px;
    margin: 10px 0;
    border-radius: 6px;
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(var(--green-rgb), .09), transparent);
    animation: m2-shimmer 1.4s infinite;
}

@keyframes m2-shimmer {
    to { transform: translateX(100%); }
}

/* =====================================================
   EK 9 - ERİŞİLEBİLİRLİK VE YAZDIRMA
===================================================== */

/* Hareket azaltma tercihi: tüm animasyon ve hover kaymaları kapanır */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .server-card:hover,
    .vip-card:hover,
    .guide-card:hover,
    .quick-card:hover,
    .primary-btn:hover,
    .register-btn:hover,
    .btn-primary:hover,
    .search-box button:hover {
        transform: none;
    }
}

/* Yüksek kontrast tercihi */
@media (prefers-contrast: more) {
    :root {
        --border: rgba(160, 220, 170, .6);
        --text-muted: #cfd9d2;
        --text-faint: #b4c0b8;
    }

    .server-card,
    .vip-card,
    .guide-card,
    .quick-card,
    .panel,
    .notification-dropdown {
        border-width: 2px;
    }
}

/* Yazdırma: koyu zemin, menü, reklam ve gezinme gizlenir */
@media print {
    body {
        color: #000;
        background: #fff !important;
        padding-bottom: 0;
    }

    .header,
    .footer,
    .side-ad,
    .side-ad-left,
    .side-ad-right,
    .mobile-nav,
    .notification-wrap,
    .theme-toggle,
    .search-box {
        display: none !important;
    }

    .server-card,
    .vip-card,
    .guide-card,
    .panel,
    .content-box {
        color: #000;
        background: #fff;
        border: 1px solid #999;
        box-shadow: none;
        break-inside: avoid;
    }

    .main-layout {
        display: block;
    }
}

/* Yemyeşil tema ekleri */
/* M2DEV — Yemyeşil Neon Tema
   Siyah orman zemini, yoğun lime vurguları ve yüksek kontrast. */
:root {
    --green: #7cff00;
    --green-light: #bdff69;
    --green-dark: #29d900;
    --green-rgb: 124, 255, 0;
    --m2-green: var(--green);
    --gold: #b4ff00;
    --gold-light: #d6ff70;
    --gold-dark: #58c900;
    --gold-rgb: 124, 255, 0;
    --bg: #020602;
    --panel: #071007;
    --panel2: #0a1a09;
    --panel3: #112b0b;
    --text: #f2ffe9;
    --text-muted: #bed1b4;
    --text-faint: #8fa184;
    --border: rgba(124, 255, 0, .38);
    --border-green: rgba(124, 255, 0, .62);
    --glow: 0 0 30px rgba(124, 255, 0, .24);
    --online: #7cff00;
    --new: #b4ff00;
    --new-rgb: 180, 255, 0;
}

html { color-scheme: dark; }

body {
    color: var(--text);
    background:
        radial-gradient(ellipse at 50% -12%, rgba(74, 255, 0, .2), transparent 44%),
        radial-gradient(ellipse at 0% 42%, rgba(36, 170, 0, .12), transparent 34%),
        radial-gradient(ellipse at 100% 82%, rgba(62, 255, 0, .09), transparent 32%),
        #020602;
}

.announcement-bar {
    color: #eaffd6;
    background: linear-gradient(90deg, #071407, #0e2508 50%, #071407);
    border-bottom: 1px solid #6aff00;
    box-shadow: 0 2px 18px rgba(88, 255, 0, .32);
}
.announcement-label,
.hero-label,
.section-tag,
.server-type-badge,
.rank-badge,
.new-badge {
    color: #d5ff9b;
    border-color: rgba(124, 255, 0, .62);
    background: rgba(90, 210, 0, .16);
    box-shadow: inset 0 0 14px rgba(124, 255, 0, .08), 0 0 14px rgba(124, 255, 0, .1);
}

.header {
    background: linear-gradient(90deg, rgba(2, 7, 2, .98), rgba(9, 25, 7, .96), rgba(2, 7, 2, .98));
    border-bottom: 2px solid #50ed00;
    box-shadow: 0 5px 28px rgba(50, 255, 0, .17);
}
.logo,
.nav-links a.active { color: var(--green-light); }
.nav-links a.active { text-shadow: 0 0 12px rgba(124, 255, 0, .55); }

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 78% 22%, rgba(88, 255, 0, .18), transparent 38%),
        linear-gradient(120deg, #061005, #102a08 55%, #030803);
    border-top: 1px solid #7cff00;
    border-bottom: 2px solid #62f000;
    box-shadow: inset 0 0 70px rgba(52, 255, 0, .16), 0 10px 34px rgba(38, 255, 0, .12);
}
.hero-banner-image {
    position: relative;
    z-index: 2;
    width: min(100%, 1120px);
    margin: 18px auto 22px;
    overflow: hidden;
    border: 1px solid rgba(124, 255, 0, .78);
    border-radius: 14px;
    background: #020602;
    box-shadow: 0 0 0 1px rgba(124, 255, 0, .16), 0 0 28px rgba(87, 255, 0, .3), 0 18px 45px rgba(0, 0, 0, .5);
}
.hero-banner-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
}
.hero h1 {
    color: #ecffd8;
    text-shadow: 0 2px 4px #000, 0 0 24px rgba(124, 255, 0, .56);
}
.hero-content > p { color: #e1f1d6; text-shadow: 0 2px 5px #000; }
.hero-stats div { border-color: rgba(124, 255, 0, .48); }

.section,
.vip-section,
.vip-server-card,
.server-card,
.quick-card,
.guide-card,
.search-box,
.showcase-tabs {
    border: 1px solid rgba(100, 240, 0, .52);
    background: linear-gradient(145deg, rgba(5, 15, 5, .97), rgba(2, 7, 2, .99));
    box-shadow: inset 0 1px 0 rgba(221, 255, 203, .07), 0 0 18px rgba(68, 255, 0, .1), 0 12px 30px rgba(0, 0, 0, .45);
}
.section-heading { border-bottom-color: rgba(124, 255, 0, .42); }
.section-heading h2,
.section-tag,
.section-kicker { color: #bcff70; }
.vip-section,
.vip-section:hover {
    border-color: #70ff00;
    background: linear-gradient(110deg, rgba(14, 48, 6, .98), rgba(3, 11, 3, .99) 48%, rgba(13, 38, 5, .97));
    box-shadow: inset 0 0 28px rgba(110, 255, 0, .12), 0 0 26px rgba(88, 255, 0, .22), 0 16px 34px rgba(0, 0, 0, .48);
}
.vip-section .section-tag,
.vip-section .section-heading h2,
.vip-section .all-link { color: #caff84; }
.vip-section .section-tag { border-color: rgba(124, 255, 0, .6); background: rgba(88, 255, 0, .12); }

.server-card,
.vip-server-card,
.quick-card,
.guide-card {
    border-color: rgba(110, 255, 0, .42);
    background: linear-gradient(135deg, rgba(9, 24, 7, .98), rgba(2, 7, 2, .99));
}
.server-card:hover,
.vip-server-card:hover,
.quick-card:hover,
.guide-card:hover,
.server-card:focus-within,
.vip-server-card:focus-within {
    border-color: #9aff00;
    box-shadow: inset 0 0 22px rgba(124, 255, 0, .12), 0 0 28px rgba(92, 255, 0, .25), 0 18px 38px rgba(0, 0, 0, .5);
}
.server-card .server-stats,
.server-card .stat-row,
.search-box input,
.search-box select {
    color: var(--text);
    border-color: rgba(124, 255, 0, .28);
    background-color: rgba(3, 11, 3, .92);
}
.server-card .server-logo { background: radial-gradient(circle, #51af17, #0a2005 70%, #030803); }

.primary-btn,
.register-btn,
.btn-primary,
.search-box button,
.server-card .action-btn,
.showcase-tab.active {
    color: #071300;
    border: 1px solid #a9ff50;
    background: linear-gradient(135deg, #baff68, #68f000 52%, #27c900);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .46), 0 0 18px rgba(103, 255, 0, .34);
    text-shadow: 0 1px rgba(255, 255, 255, .25);
}
.primary-btn:hover,
.register-btn:hover,
.btn-primary:hover,
.search-box button:hover,
.server-card .action-btn:hover,
.showcase-tab.active:hover {
    filter: brightness(1.12) saturate(1.15);
    box-shadow: 0 0 28px rgba(124, 255, 0, .58);
}
.secondary-btn,
.showcase-tab,
.action-btn {
    color: #d9edcf;
    border-color: rgba(124, 255, 0, .42);
    background: rgba(5, 17, 4, .88);
}
.showcase-tab:hover,
.secondary-btn:hover { border-color: #8eff00; color: #caff82; }

.side-ad,
.normal-ad-placeholder {
    color: #c5e8b1;
    border-color: rgba(124, 255, 0, .58);
    background: linear-gradient(180deg, rgba(7, 22, 5, .95), rgba(2, 7, 2, .98));
    box-shadow: inset 0 0 24px rgba(124, 255, 0, .11), 0 0 16px rgba(124, 255, 0, .12);
}
.footer {
    color: #cce7bc;
    border-top: 2px solid #62f000;
    background: linear-gradient(90deg, #030703, #0b1c07, #030703);
    box-shadow: 0 -4px 22px rgba(83, 255, 0, .16);
}

.emerald-orbit.orbit-two {
    border-color: rgba(170, 255, 66, .8);
    box-shadow: 0 0 20px rgba(124, 255, 0, .35);
}
.emerald-facet { border-color: rgba(154, 255, 83, .65); }
.emerald-model-name img { filter: drop-shadow(0 0 18px rgba(124, 255, 0, .7)); }

::selection { color: #061000; background: #9cff44; }
:focus-visible { outline-color: #a4ff45; box-shadow: 0 0 0 4px rgba(124, 255, 0, .2); }

@media (max-width: 900px) {
    .section, .vip-section, .server-card, .vip-server-card, .quick-card, .guide-card { box-shadow: 0 0 14px rgba(75, 255, 0, .12); }
}
@media (max-width: 600px) {
    .hero-banner-image { margin: 14px auto 18px; border-radius: 9px; }
    .hero-banner-image img { max-height: 210px; }
}

/* Banner tek başına, tam genişlikte ve ortalı kalsın. */
.hero-content { padding-right: 0 !important; }
.hero-banner-image {
    width: min(100%, 1120px);
    margin-left: auto;
    margin-right: auto;
    left: auto;
    right: auto;
    transform: none;
}
.hero-banner-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
}
.emerald-model-scene { display: none !important; }

.logo-main {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0;
    white-space: nowrap;
    line-height: 1;
}
.logo-main > span { display: inline; white-space: nowrap; }
.logo small { white-space: nowrap; }

/* Logo düzeni: M2DEV tek satırda, açıklama alt satırda */
.logo {
    display: inline-block !important;
    width: max-content;
    max-width: 100%;
    color: #f2ffe9;
    font-size: 27px;
    font-weight: 1000;
    letter-spacing: -1px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
}
.logo > span {
    display: inline !important;
    margin: 0;
    padding: 0;
    color: #7cff00;
    white-space: nowrap;
}
.logo > small {
    display: block;
    margin-top: 5px;
    color: #a7b7a0;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .logo { font-size: 24px; }
    .logo > small { font-size: 7px; letter-spacing: 1.5px; }
}

/* Eski localStorage açık tema tercihi varsa bile neon koyu görünümü koru. */
html[data-theme="light"] {
    color-scheme: dark;
    --green: #7cff00;
    --green-light: #bdff69;
    --green-dark: #29d900;
    --green-rgb: 124, 255, 0;
    --m2-green: #7cff00;
    --bg: #020602;
    --panel: #071007;
    --panel2: #0a1a09;
    --panel3: #112b0b;
    --text: #f2ffe9;
    --text-muted: #bed1b4;
    --text-faint: #8fa184;
    --border: rgba(124, 255, 0, .38);
    --border-green: rgba(124, 255, 0, .62);
}
html[data-theme="light"] body {
    color: var(--text);
    background:
        radial-gradient(ellipse at 50% -12%, rgba(74, 255, 0, .2), transparent 44%),
        radial-gradient(ellipse at 0% 42%, rgba(36, 170, 0, .12), transparent 34%),
        #020602;
}
html[data-theme="light"] .header {
    color: var(--text);
    background: linear-gradient(90deg, rgba(2, 7, 2, .98), rgba(9, 25, 7, .96), rgba(2, 7, 2, .98));
    border-color: #50ed00;
    box-shadow: 0 5px 28px rgba(50, 255, 0, .17);
}
html[data-theme="light"] .hero {
    color: var(--text);
    background: radial-gradient(ellipse at 78% 22%, rgba(88, 255, 0, .18), transparent 38%), linear-gradient(120deg, #061005, #102a08 55%, #030803);
    border-color: #62f000;
}
html[data-theme="light"] .hero h1 { color: #ecffd8; text-shadow: 0 2px 4px #000, 0 0 24px rgba(124, 255, 0, .56); }
html[data-theme="light"] .server-card,
html[data-theme="light"] .vip-card,
html[data-theme="light"] .guide-card,
html[data-theme="light"] .quick-card,
html[data-theme="light"] .guild-placeholder,
html[data-theme="light"] .calendar-box,
html[data-theme="light"] .panel,
html[data-theme="light"] .content-box,
html[data-theme="light"] .form-box,
html[data-theme="light"] .profile-box {
    color: var(--text);
    background: linear-gradient(145deg, rgba(9, 24, 7, .98), rgba(2, 7, 2, .99));
    border-color: rgba(110, 255, 0, .42);
}
html[data-theme="light"] .vip-section {
    color: var(--text);
    background: linear-gradient(110deg, rgba(14, 48, 6, .98), rgba(3, 11, 3, .99) 48%, rgba(13, 38, 5, .97));
    border-color: #70ff00;
}
html[data-theme="light"] .server-card .server-stats,
html[data-theme="light"] .search-box {
    color: var(--text);
    background: rgba(3, 11, 3, .92);
    border-color: rgba(124, 255, 0, .32);
}
html[data-theme="light"] .server-card .server-logo { background: radial-gradient(circle, #51af17, #0a2005 70%, #030803); }
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    color: var(--text);
    background: #061006;
    border-color: rgba(124, 255, 0, .35);
}
html[data-theme="light"] th { color: #d5ff9b; background: #0a1a09; }
html[data-theme="light"] .showcase-tab.active,
html[data-theme="light"] .primary-btn,
html[data-theme="light"] .register-btn,
html[data-theme="light"] .search-box button,
html[data-theme="light"] .btn-primary {
    color: #071300;
    background: linear-gradient(135deg, #baff68, #68f000 52%, #27c900);
    border-color: #a9ff50;
}
html[data-theme="light"] .footer { color: #cce7bc; background: linear-gradient(90deg, #030703, #0b1c07, #030703); border-color: #62f000; }
html[data-theme="light"] .notification-bell,
html[data-theme="light"] .theme-toggle { color: var(--green); background: #071007; border-color: var(--border-green); }
html[data-theme="light"] .notification-dropdown { color: var(--text); background: #071007; border-color: var(--border-green); }
html[data-theme="light"] .notification-dropdown-header,
html[data-theme="light"] .notification-footer,
html[data-theme="light"] .notification-item { color: var(--text); background: #0a1a09; border-color: var(--border); }
html[data-theme="light"] .notification-item strong,
html[data-theme="light"] .notification-dropdown-header strong { color: #d5ff9b; }
html[data-theme="light"] .vip-badge { color: #061000; background: #b4ff00; }
html[data-theme="light"] .mobile-nav { color: var(--text); background: #071007; border-color: var(--border-green); }

