/* =============================================
   SİTE GENEL TASARIMI (GAMING TEMA)
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =============================================
   RENK DEĞİŞKENLERİ
   ============================================= */
:root {
    --bg-body: #0f0f1a;           /* En koyu arka plan */
    --bg-card: linear-gradient(145deg, #1a1a2e, #141428);
    --bg-header: #0f0f1a;
    --bg-nav: #1a1a2e;
    --bg-input: #0f0f1a;
    --border-color: #2a2a4e;
    --text-primary: #fff;
    --text-secondary: #ddd;
    --text-muted: #8899aa;
    --accent: #e94560;
    --accent-hover: #f1c40f;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --radius: 12px;
    --transition: all 0.3s ease;
    
    /* Gradyanlı arka plan (Senin istediğin ton) */
    --mpy-dark-surface: #1a1a2e;
    --gradient-bg: linear-gradient(0deg, #363b43 70%, var(--mpy-dark-surface));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-body);
    background: var(--gradient-bg);
    color: var(--text-secondary);
    min-height: 100vh;
}

/* =============================================
   KONTEYNERLER
   ============================================= */
.container, .mpy__container, .full-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =============================================
   HEADER
   ============================================= */
.header-top {
    background: var(--bg-header);
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.header-top .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-links {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
    float: right;
}

.header-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
}

.header-links li a:hover {
    color: var(--accent);
}

.header-main {
    padding: 10px 0;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    height: auto !important;
    min-height: 96px;
    overflow: visible !important;
}

.header-main .search-bar {
    position: static !important;
    top: auto !important;
    margin: 0 !important;
    width: 100% !important;
}

.headerSearchClass {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}

.header-main .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.headerLogo {
    height: 60px;
    width: auto;
}

.search-bar {
    display: flex;
    background: var(--bg-input);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 42px;
    width: 100%;
    max-width: 450px;
}

.search-bar input {
    flex: 1;
    padding: 0 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: var(--text-primary);
    height: 100%;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar button {
    padding: 0 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    color: var(--accent);
}

.customer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.icon-user svg {
    width: 32px;
    height: 32px;
    fill: var(--text-muted);
}

.user-text .text-top {
    font-size: 13px;
    color: var(--text-muted);
}

.user-text .text-bottom {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* =============================================
   NAVBAR (MENUBAR)
   ============================================= */
.menubar {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    padding: 4px 0;
}

.nav-menu-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu-list li a:hover {
    background: var(--border-color);
}

.nav-menu-list li.active a {
    background: var(--accent);
    color: #fff;
}

.nav-menu-list li.orangeBackground a {
    background: linear-gradient(45deg, #dc3545, #43203a, #17a2b8);
    color: #fff;
    font-weight: 600;
    border-radius: 20px;
    padding: 6px 18px;
}

.nav-menu-list li.orangeBackground a:hover {
    opacity: 0.9;
}

.nav-menu-list li.float-right {
    margin-left: auto;
}

.nav-menu-list li.float-right a {
    background: transparent;
    color: var(--text-primary);
}

.nav-menu-list li.float-right a:hover {
    background: var(--border-color);
}

/* Masaüstünde gizli; sadece mobil menü çekmecesinde görünür */
.nav-menu-list li.drawer-only {
    display: none;
}

/* Çift dokunmayla yakınlaştırmayı engelle (itemci.com davranışı) */
html, body {
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .hidden-not-pc { display: none !important; }
    .visible-only-mobile { display: inline-block !important; }
    .nav-menu-list li a { font-size: 12px; padding: 4px 10px; }
    .header-actions { flex-wrap: wrap; margin-left: 0; margin-top: 10px; }
}

/* =============================================
   HEADER'DAKİ BUTONLAR (REKLAM VER + İLAN EKLE)
   ============================================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.header-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-reklam {
    background: linear-gradient(45deg, #dc3545, #43203a, #17a2b8);
    color: #fff;
}

.btn-reklam:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220,53,69,0.4);
}

.btn-ilan {
    background: linear-gradient(135deg, #e94560, #c0392b);
    color: #fff;
}

.btn-ilan:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(233,69,96,0.4);
}

/* =============================================
   FOOTER
   ============================================= */
.mpy__footer {
    background: var(--bg-nav);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.mpy__footer-title {
    text-align: center;
    margin-bottom: 30px;
}

.mpy__footer-title p {
    color: var(--text-muted);
    margin-top: 10px;
}

.mpy__footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.mpy__footer-links_link-box h3 {
    color: var(--accent);
    font-size: 16px;
}

.mpy__footer-links_link-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mpy__footer-links_link-box ul li a {
    color: var(--text-muted);
    text-decoration: none;
}

.mpy__footer-links_link-box ul li a:hover {
    color: var(--text-primary);
}

.mpy__footer-copyright {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* =============================================
   BANNER ALANLARI
   ============================================= */
.mpy__container-banner {
    margin-top: 10px;
    margin-bottom: 10px;
}

.mpy__banner-large img {
    width: 100%;
    border-radius: var(--radius);
}

/* =============================================
   SOL VE SAĞ YAN BANNERLAR (Site Sol/Sağ)
   CSS burada, pozisyon index.php'de inline style ile belirlenir
   ============================================= */
.side-banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: block;
}
.side-banner a {
    display: block;
}

/* Sabit sol/sağ banner'lar: masaüstünde görünür,
   mobil ve tablette sayfayı bozmaması için gizlenir */
.side-fixed-banner {
    display: block;
}
@media (max-width: 1200px) {
    #sol-banner, #sag-banner {
        display: none !important;
    }
}

/* Mobil menü açılınca arka planı karartan katman */
.dropdown-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
}
.dropdown-overlay.active {
    display: block;
}

/* =============================================
   RESPONSIVE TASARIM
   ============================================= */

/* ---- Tablet / Küçük Desktop (992px) ---- */
@media (max-width: 992px) {
    /* Mobil üst bar: logo ekranın ortasında, hamburger solda,
       user ikon sağda (aynı satır), arama çubuğu alt satırda */
    .header-main .row {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px 0 !important;
    }
    .headerLogoClass {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 1;
        padding: 0 70px !important; /* hamburger ve user ikonun yeri */
        text-align: center !important;
        min-height: 0 !important;
    }
    .headerUserClass {
        position: absolute !important;
        top: 35px;
        right: 8px;
        transform: translateY(-50%);
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        order: 2;
        z-index: 2;
        display: flex !important;
        justify-content: flex-end !important;
    }
    .headerSearchClass {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 3;
    }
    .headerUserClass .user-panel-links,
    .headerUserClass > div {
        justify-content: flex-end;
    }
    .headerLogo {
        height: 50px !important;
        display: block;
    }
    /* mpy-custom.css'teki absolute konumlandırmayı ez:
       logo akış içinde ve ortalanmış olsun */
    img.headerLogo {
        position: static !important;
        transform: none !important;
        left: auto !important;
        margin: 8px auto !important;
    }
    .headerLogoClass {
        text-align: center !important;
        position: relative;
        min-height: 60px;
    }
    .search-bar {
        max-width: 100%;
    }
    .header-actions {
        justify-content: center;
    }
    .header-actions a {
        flex: 1;
        justify-content: center;
        padding: 8px 14px;
        font-size: 12px;
    }
    .header-top .row {
        flex-direction: column;
        text-align: center;
    }
    .header-links {
        float: none;
        justify-content: center;
    }
    .nav-menu-list {
        justify-content: center;
    }
    .nav-menu-list li.float-right {
        margin-left: 0;
    }
    .mobileNavMenu {
        display: flex;
        align-items: center;
        justify-content: center; /* logo ortada */
        position: relative;
        gap: 8px;
        padding: 10px 12px;
        height: 64px;
        border-bottom: 1px solid #2a2a4e;
    }
    .mobileNavMenu a {
        display: flex;
        align-items: center;
        min-width: 0;
    }
    .mobileNavMenu img {
        height: 40px !important;
        width: auto !important;
        position: static !important;
        top: auto;
    }
    /* Kapatma (X) butonu - sağ köşede */
    .drawer-close {
        background: none;
        border: none;
        color: #8899aa;
        font-size: 18px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-radius: 6px;
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
    }
    .drawer-close:hover {
        color: #e94560;
        background: #1e1e3a;
    }
    /* Mobil menü çekmecesinde ek bağlantıları göster */
    .nav-menu-list li.drawer-only {
        display: list-item;
    }
    /* Çekmece menü: genişçe, derli toplu, taşma yok (itemci.com tarzı) */
    nav.menubar {
        width: 80% !important;
        max-width: 300px !important;
        background: #141428 !important;
        border-right: 1px solid #2a2a4e;
        box-shadow: 4px 0 18px rgba(0, 0, 0, 0.55);
        overflow-y: auto;
    }
    nav.menubar .full-container {
        padding: 0 !important;
    }
    nav.menubar .nav-menu-list {
        display: block !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        padding: 6px 0 !important;
    }
    nav.menubar .nav-menu-list li {
        width: 100%;
        float: none;
        flex-shrink: 1;
        border-bottom: none !important;
    }
    nav.menubar .nav-menu-list li a {
        display: block;
        width: 100%;
        padding: 11px 16px;
        font-size: 13px;
        color: #cfd6dd;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* uzun isimler ... ile biter */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0;
    }
    nav.menubar .nav-menu-list li a:hover {
        background: #1e1e3a;
        color: #fff;
    }
    nav.menubar .nav-menu-list li a i,
    nav.menubar .nav-menu-list li a img {
        width: 18px;
        margin-right: 8px;
        color: #e94560;
        vertical-align: -2px;
        flex-shrink: 0;
    }
    .user-panel-links {
        position: static !important;
        justify-content: center;
    }
    .mpy__footer-links {
        gap: 20px;
    }
}

/* ---- Mobil (768px) ---- */
@media (max-width: 768px) {
    .hidden-not-pc {
        display: none !important;
    }
    .visible-only-mobile {
        display: inline-block !important;
    }
    .nav-menu-list li a {
        font-size: 12px;
        padding: 4px 10px;
    }
    /* Footer linkleri mobilde daha rahat tıklansın */
    .mpy__footer-links_link-box ul li a {
        display: inline-block;
        padding: 5px 0;
    }
    .header-main {
        padding: 10px 0 !important;
        min-height: auto !important;
    }
    .header-actions a {
        padding: 8px 12px;
        font-size: 11px;
    }
    .mpy__footer {
        padding: 25px 0 15px;
    }
    .mpy__footer-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .pvpAdvertRowTop {
        flex-direction: column;
        align-items: center;
    }
    .pvpAdvertTop {
        width: 100% !important;
        max-width: 480px;
    }
    .pvpAdvertRow {
        flex-direction: column;
        align-items: center;
    }
    .pvpAdvert {
        width: 100% !important;
        max-width: 480px;
    }
}

/* ---- Küçük Mobil (480px) ---- */
@media (max-width: 480px) {
    .nav-menu-list {
        gap: 2px;
    }
    .nav-menu-list li a {
        font-size: 11px;
        padding: 3px 8px;
    }
    img.headerLogo {
        height: 40px !important;
        width: auto !important;
    }
    .header-actions {
        flex-direction: column;
        gap: 4px;
    }
    .header-actions a {
        width: 100%;
        justify-content: center;
    }
    .search-bar {
        height: 38px;
    }
    .mpy__footer-links_link-box {
        text-align: center;
    }
}