@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ============================================
   HEADER STİLLERİ - MASAÜSTÜ
   ============================================ */

.header-container {
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: transparent !important;
    z-index: 999999;
}

.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ============================================
   LOGO VE SOL KISIM
   ============================================ */

.logo {
    width: 180px;
    margin-top: -10px;
    height: 30px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo-link {
    text-decoration: none;
    display: block;
    z-index: 999999;
}

.logo-dark {
    display: none !important;
}

.logo-light {
    display: block !important;
}

body.dark-mode .logo-dark {
    display: block !important;
}

body.dark-mode .logo-light {
    display: none !important;
}

.left-section {
    gap: 40px;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
}

/* ============================================
   MENU İTEMS - WORDPRESS UYUMLU
   ============================================ */

.menu-items,
.menu-items ul,
.menu-items li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.menu-items {
    margin: 0 auto;
    display: flex;
    gap: 30px;
    font-family: 'Montserrat', sans-serif;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.menu-items::before,
.menu-items::after,
.menu-items li::before,
.menu-items li::after {
    content: none !important;
    display: none !important;
}

.menu-item,
.menu-items a {
    font-size: 18px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    color: #000 !important;
    white-space: nowrap;
}

.menu-item.active {
    color: #000;
    font-weight: 700;
}

.menu-item.inactive {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
    opacity: 0.5;
}

.menu-items a:hover {
    opacity: 0.7;
}

body.dark-mode .menu-items a,
body.dark-mode .menu-item {
    color: #fff !important;
}

/* Üst seviye menü öğeleri */
.menu-items > li {
    position: relative;
    display: inline-block;
}

/* ============================================
   DROPDOWN MENÜ (ALT MENÜ) - MASAÜSTÜ
   ============================================ */

.menu-items .sub-menu,
.menu-items ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* HOVER'DA GÖSTER */
.menu-items > li:hover > .sub-menu,
.menu-items > li.menu-item-has-children:hover > .sub-menu,
.menu-items > li:hover > ul,
.menu-items li:hover > .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Alt menü öğeleri */
.menu-items .sub-menu li,
.menu-items ul ul li {
    display: block;
    padding: 0;
}

/* Alt menü linkleri */
.menu-items .sub-menu a,
.menu-items ul ul a {
    padding: 10px 20px;
    font-size: 15px;
    display: block;
    color: #333;
    transition: background 0.2s ease;
}

.menu-items .sub-menu a:hover,
.menu-items ul ul a:hover {
    background: rgba(0, 0, 0, 0.05);
    opacity: 1;
}

/* Ok ikonu */
.menu-items .menu-item-has-children > a::after {
    content: " ▾";
    font-size: 12px;
    margin-left: 5px;
}

/* Dark Mode - Dropdown */
body.dark-mode .menu-items .sub-menu,
body.dark-mode .menu-items ul ul {
    background: rgba(26, 26, 26, 0.98);
}

body.dark-mode .menu-items .sub-menu a,
body.dark-mode .menu-items ul ul a {
    color: #fff;
}

body.dark-mode .menu-items .sub-menu a:hover,
body.dark-mode .menu-items ul ul a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   HAMBURGER MENÜ - MASAÜSTÜNDE GİZLİ
   ============================================ */

.menu-toggle {
    display: none !important;
}

.hamburger {
    display: block;
    width: 18px;
    height: 2px;
    background: #000;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #000;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

/* MOBİL MENÜ - MASAÜSTÜNDE GİZLİ */
.mobile-menu {
    display: none !important;
}

/* ============================================
   SAĞ MENÜ VE BUTONLAR
   ============================================ */

.right-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.right-menu-button {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    background: #000;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.right-menu .icon-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none !important;
}

.icon-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.icon-button img {
    width: 24px !important;
    height: 24px !important;
    transition: all 0.3s ease;
}

/* Ses Kontrol */
.right-menu .sound-toggle {
    width: 30px;
    height: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-menu .sound-toggle img {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.right-menu .sound-toggle .hidden {
    opacity: 0;
    pointer-events: none;
}

/* Sepet ikonu */
.right-menu .cart-button img {
    width: 24px !important;
    height: 24px !important;
}

.right-menu .icon-button,
.right-menu .sound-toggle,
.right-menu .cart-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Dark Mode - Sağ Menü */
body.dark-mode .sound-toggle img {
    filter: invert(1);
}

body.dark-mode .right-menu .icon-button img,
body.dark-mode .right-menu .sound-toggle img,
body.dark-mode .cart-button img {
    filter: brightness(0) invert(1) !important;
    width: 24px !important;
    height: 24px !important;
}

body.dark-mode .right-menu-button {
    background: #fff;
    color: #1a1a1a;
}

/* ============================================
   MOBİL UYUMLULUK - ŞIK & ÇALIŞIR
   ============================================ */

@media screen and (max-width: 768px) {
    /* Header - Transparan */
    .header-container {
        padding: 10px 20px;
        min-height: 60px;
        height: 60px;
        margin-top: 0;
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
    
    body.dark-mode .header-container {
        background: transparent !important;
    }
    
    .left-section {
        gap: 15px;
    }
    
    .logo {
        height: 40px !important;
        width: auto !important;
    }
    
    /* Masaüstü menüyü gizle */
    .header-container > nav.menu-items {
        display: none !important;
    }
    
    /* Hamburger - Transparan - GÖLGE YOK */
    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px;
        height: 44px;
        width: 44px;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: none !important; /* GÖLGE YOK */
        -webkit-box-shadow: none !important;
        backdrop-filter: none !important;
    }
    
    .menu-toggle:hover {
        opacity: 0.7;
        transform: scale(1.1);
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .menu-toggle:active {
        transform: scale(0.95);
        background: transparent !important;
    }
    
    .menu-toggle:focus,
    .menu-toggle:focus-visible {
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    .hamburger {
        width: 20px;
        height: 2px;
        background: #000;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background: #000;
        left: 0;
        transition: all 0.3s ease;
    }
    
    .hamburger::before {
        top: -7px;
    }
    
    .hamburger::after {
        bottom: -7px;
    }
    
    .menu-toggle.active .hamburger {
        background: transparent;
    }
    
    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    body.dark-mode .hamburger,
    body.dark-mode .hamburger::before,
    body.dark-mode .hamburger::after {
        background: #fff;
    }
    
    /* Mobil Menü - Şık */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 500px;
        max-height: calc(100vh - 100px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); /* Hafif gölge */
        border-radius: 20px;
        z-index: 999998;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        display: block !important;
    }
    
    body.dark-mode .mobile-menu {
        background: rgba(26, 26, 26, 0.95);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    
    /* Menü Listesi */
    .mobile-menu .menu-items {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        position: static !important;
        transform: none !important;
        padding: 15px;
        list-style: none !important;
        margin: 0 !important;
    }
    
    .mobile-menu .menu-items > li {
        width: 100%;
        position: relative;
        border-radius: 12px;
        margin-bottom: 5px;
    }
    
    .mobile-menu .menu-items > li:last-child {
        margin-bottom: 0;
    }
    
    .mobile-menu .menu-items > li:hover {
        background: rgba(0, 0, 0, 0.03);
    }
    
    body.dark-mode .mobile-menu .menu-items > li:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    /* Üst Seviye Linkler */
    .mobile-menu .menu-items > li > a {
        display: flex !important;
        align-items: center;
        padding: 16px 20px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #1a1a1a !important;
        transition: all 0.2s ease !important;
        text-decoration: none !important;
        font-family: 'Montserrat', sans-serif;
        border-radius: 10px;
        position: relative;
    }
    
    body.dark-mode .mobile-menu .menu-items > li > a {
        color: #fff !important;
    }
    
    /* Dropdown Ok - Sağda - GÖRÜNÜR */
    .mobile-menu .menu-item-has-children > a {
        padding-right: 50px !important; /* OK İÇİN YER */
        position: relative;
    }
    
    .mobile-menu .menu-item-has-children > a::after {
        content: "›";
        font-size: 24px !important; /* DAHA BÜYÜK */
        font-weight: 400 !important; /* DAHA KALIN */
        color: rgba(0, 0, 0, 0.6) !important; /* DAHA KOYU */
        transition: all 0.3s ease;
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        line-height: 1;
        display: block !important;
    }
    
    body.dark-mode .mobile-menu .menu-item-has-children > a::after {
        color: rgba(255, 255, 255, 0.7) !important; /* DAHA KOYU */
    }
    
    .mobile-menu .menu-item-has-children.open > a::after {
        transform: translateY(-50%) rotate(90deg);
        color: #000 !important;
    }
    
    body.dark-mode .mobile-menu .menu-item-has-children.open > a::after {
        color: #fff !important;
    }
    
    /* Alt Menü */
    .mobile-menu .sub-menu {
        display: block !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease;
        position: static !important;
        background: rgba(0, 0, 0, 0.02);
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        border-radius: 10px;
    }
    
    body.dark-mode .mobile-menu .sub-menu {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .mobile-menu .menu-item-has-children.open > .sub-menu {
        max-height: 600px !important;
        opacity: 1 !important;
        padding: 8px !important;
        margin-top: 5px !important;
    }
    
    /* Alt Menü İtemleri */
    .mobile-menu .sub-menu li {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .mobile-menu .sub-menu a {
        display: flex !important;
        padding: 12px 20px 12px 35px !important;
        font-size: 13px !important;
        color: #666 !important;
        font-weight: 400 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        position: relative;
        font-family: 'Montserrat', sans-serif;
        border-radius: 8px;
    }
    
    .mobile-menu .sub-menu a::before {
        content: "•";
        position: absolute;
        left: 20px;
        color: rgba(0, 0, 0, 0.3);
        font-size: 16px;
    }
    
    body.dark-mode .mobile-menu .sub-menu a::before {
        color: rgba(255, 255, 255, 0.3);
    }
    
    .mobile-menu .sub-menu a:hover {
        background: rgba(0, 0, 0, 0.05) !important;
        color: #000 !important;
    }
    
    body.dark-mode .mobile-menu .sub-menu a {
        color: rgba(255, 255, 255, 0.7) !important;
    }
    
    body.dark-mode .mobile-menu .sub-menu a:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #fff !important;
    }
    
    /* Sağ Menü - Transparan */
    .right-menu {
        gap: 8px;
    }
    
    .icon-button {
        background: transparent !important;
        border: none !important;
        transition: all 0.3s ease;
    }
    
    .icon-button:hover {
        opacity: 0.7;
        transform: scale(1.1);
    }
    
    .icon-button img {
        width: 22px !important;
        height: 22px !important;
    }
    
    .right-menu-button {
        padding: 8px 16px;
        font-size: 13px;
        height: 36px;
        border-radius: 18px;
        font-weight: 500;
    }
    
    /* Scrollbar */
    .mobile-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .mobile-menu::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .mobile-menu::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 2px;
    }
    
    body.dark-mode .mobile-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* ============================================
   YAKA-İSİMLİK SAYFASI - MOBİL ÖZEL
   ============================================ */

@media screen and (max-width: 768px) {
    /* URL bazlı - JavaScript ile eklenecek */
    body.yaka-isimlik-page .logo {
        height: 45px !important;
        min-height: 45px !important;
    }
    
    body.yaka-isimlik-page .right-menu {
        gap: 4px !important;
    }
    
    body.yaka-isimlik-page .icon-button {
        width: 36px !important;
        height: 36px !important;
    }
    
    body.yaka-isimlik-page .icon-button img {
        width: 20px !important;
        height: 20px !important;
    }
    
    body.yaka-isimlik-page .right-menu-button {
        padding: 6px 12px !important;
        font-size: 12px !important;
        height: 32px !important;
    }
    
    /* WordPress seçiciler - yedek */
    body.page-id-210 .logo,
    body.page-template-page-yaka-isimlik .logo,
    body[class*="yaka-isimlik"] .logo {
        height: 45px !important;
        min-height: 45px !important;
    }
    
    body.page-id-210 .right-menu,
    body.page-template-page-yaka-isimlik .right-menu,
    body[class*="yaka-isimlik"] .right-menu {
        gap: 4px !important;
    }
    
    body.page-id-210 .icon-button,
    body.page-template-page-yaka-isimlik .icon-button,
    body[class*="yaka-isimlik"] .icon-button {
        width: 36px !important;
        height: 36px !important;
    }
    
    body.page-id-210 .icon-button img,
    body.page-template-page-yaka-isimlik .icon-button img,
    body[class*="yaka-isimlik"] .icon-button img {
        width: 20px !important;
        height: 20px !important;
    }
    
    body.page-id-210 .right-menu-button,
    body.page-template-page-yaka-isimlik .right-menu-button,
    body[class*="yaka-isimlik"] .right-menu-button {
        padding: 6px 12px !important;
        font-size: 12px !important;
        height: 32px !important;
    }
}