/* =========================================================
   ORTAK STİLLER & WOFF2 PREMIUM EMOJI ENGINE (Sürüm: v3.3.3)
========================================================= */

/* 1. KURUMSAL METİN YAZI TIPI */
@font-face {
    font-family: 'ScaniaSansBold';
    src: url('../fonts/ScaniaSansCY-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* 2. GITHUB'DAN GELEN VE WOFF2 OLARAK KİLİTLENEN APPLE EMOJI MOTORU */
@font-face {
    font-family: 'AppleColorEmojiCustom';
    src: url('../fonts/AppleColorEmoji.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* 3. SİSTEM DÜZEYİ APPLE EMOJI ZORLAMASI */
@font-face {
    font-family: 'Apple Color Emoji';
    src: local('Apple Color Emoji'), local('AppleColorEmoji');
}

:root {
    --primary-color: #A90000;  
    --text-light: #ebebeb;     
    --dark-bg: #121212;        
    --font-main: 'ScaniaSansBold', 'AppleColorEmojiCustom', 'Apple Color Emoji', sans-serif; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: var(--font-main) !important;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- APPLE TARZI ÜST PROFİLİM BUTONU --- */
.apple-profile-top-btn {
    position: fixed;
    top: 30px;
    right: 210px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1001;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.apple-profile-top-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(169, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* --- APPLE TARZI DİL SEÇİCİ --- */
.lang-selector {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1001;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #a1a1a6;
    font-family: var(--font-main);
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--primary-color); color: #fff; box-shadow: 0 4px 10px rgba(169, 0, 0, 0.3); border-color: var(--primary-color); }

/* --- PRELOADER (YÜKLEME EKRANI) --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(18, 18, 18, 0.4); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.6s ease, visibility 0.6s ease; }
.windmill-wrapper { position: relative; width: 140px; height: 140px; }
.windmill-base { width: 100%; height: 100%; object-fit: contain; opacity: 0.15; }
.windmill-fill { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--primary-color); -webkit-mask-image: url('../img/X-ILS-Windmill.png'); mask-image: url('../img/X-ILS-Windmill.png'); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; animation: fillWindmill 1.5s ease-in-out infinite alternate; }
@keyframes fillWindmill { 0% { clip-path: inset(100% 0 0 0); } 100% { clip-path: inset(0 0 0 0); } }
.preloader-hidden { opacity: 0 !important; visibility: hidden !important; }

/* --- SIDEBAR NAVİGASYON PANELİ --- */
.menu-btn { position: fixed; top: 30px; left: 30px; width: 35px; height: 25px; cursor: pointer; z-index: 1000; display: flex; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; width: 100%; height: 4px; background-color: var(--text-light); border-radius: 4px; transition: all 0.4s ease; box-shadow: 0 0 5px rgba(0,0,0,0.5); }
.menu-btn.active span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); background-color: var(--primary-color); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); background-color: var(--primary-color); }

.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(5px); z-index: 998; opacity: 0; pointer-events: none; transition: all 0.5s ease; }
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }
.sidebar { position: fixed; top: 0; left: -350px; width: 320px; height: 100vh; background-color: rgba(26, 26, 26, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-right: 1px solid rgba(255, 255, 255, 0.08); border-top-right-radius: 24px; border-bottom-right-radius: 24px; z-index: 999; padding: 100px 0 30px; transition: left 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 10px 0 40px rgba(0,0,0,0.6); display: flex; flex-direction: column; justify-content: space-between; }
.sidebar.active { left: 0; }
.sidebar-links { display: flex; flex-direction: column; gap: 15px; padding: 0 25px; overflow-y: auto; flex: 1; }
.sidebar-links li { opacity: 0; transform: translateX(-30px); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.sidebar.active .sidebar-links li { opacity: 1; transform: translateX(0); }
.sidebar-links a { color: var(--text-light); font-size: 1.35rem; letter-spacing: 0.5px; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.sidebar-links a:hover { color: var(--primary-color); transform: translateX(8px); }

.sidebar-user-bento { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); padding: 16px; border-radius: 20px; display: flex; align-items: center; gap: 12px; margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.s-user-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 2px solid var(--primary-color); flex-shrink: 0; }
.s-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.s-user-info h4 { font-size: 1.05rem; color: #fff; }
.s-user-info span { font-size: 0.8rem; color: #a1a1a6; display: block; margin-top: 2px; }
.s-user-stats-mini { display: flex; gap: 8px; font-size: 0.8rem; color: #ffaa00; margin-top: 4px; }

.siparis-item { margin-top: 10px; }
.btn-siparis { background-color: var(--primary-color); color: var(--text-light) !important; padding: 12px 20px; border-radius: 30px; text-align: center; width: 100%; font-size: 1.1rem !important; display: block; font-weight: bold; }
.btn-siparis:hover { background-color: #800000; transform: translateY(-2px); box-shadow: 0 8px 15px rgba(169,0,0,0.3); }

.sidebar-footer-area { padding: 0 25px; display: flex; flex-direction: column; gap: 12px; }
.sidebar-contact-link { display: inline-block; padding: 12px 20px; background: rgba(255, 255, 255, 0.05); color: #fff !important; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 30px; font-size: 13px; font-weight: bold; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s; width: 100%; }
.sidebar-contact-link:hover { background: var(--primary-color); border-color: var(--primary-color); box-shadow: 0 6px 15px rgba(169, 0, 0, 0.3); transform: translateY(-2px); }

/* --- TOP HEADER --- */
.top-header { position: absolute; top: 0; left: 0; width: 100%; text-align: center; padding: 20px 0; z-index: 900; }
.main-logo { max-width: 280px; height: auto; transition: all 0.4s ease; }
.main-logo:hover { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(169, 0, 0, 0.8)); }

/* --- SITE FOOTER --- */
.site-footer { background-color: #080808; padding: 50px 20px 30px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); position: relative; z-index: 900; }
.social-links { display: flex; justify-content: center; align-items: center; gap: 30px; margin-bottom: 25px; }
.social-icon img { width: 40px; height: auto; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.social-icon:hover img { transform: translateY(-8px) scale(1.15); filter: drop-shadow(0 10px 20px var(--primary-color)); }

.dmca-container { margin-bottom: 20px; display: flex; justify-content: center; align-items: center; width: 100%; min-height: 40px; }
.dmca-container a { display: inline-block; }
.dmca-container img { max-width: 120px; height: auto; display: block; border-radius: 4px; }
.copyright-text { color: #666; font-size: 1rem; margin-top: 10px; }

.btn-primary { display: inline-block; background-color: var(--primary-color); color: var(--text-light); padding: 16px 40px; font-size: 1.15rem; border-radius: 30px; box-shadow: 0 8px 20px rgba(169, 0, 0, 0.3); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-primary:hover { background-color: #800000; transform: translateY(-5px); }

/* --- FLOATING AVATAR (PENCERE KENARINA YAPIŞIK) --- */
.floating-avatar { 
    position: fixed; 
    bottom: 0; 
    right: 30px; 
    width: 220px; 
    height: auto; 
    z-index: 2000; 
    pointer-events: auto;
}
.floating-avatar img { width: 100%; height: auto; display: block; transition: transform 0.4s ease, filter 0.4s ease; filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.6)); transform-origin: bottom center; }
.floating-avatar:hover img { transform: scale(1.1); filter: drop-shadow(0 -5px 25px rgba(169, 0, 0, 0.8)); }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================================
   SPONSOR INFINITE SLIDER ENGINE (14 GÖRSEL - GÖLGESİZ)
========================================================= */
.sponsor-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    position: relative;
    background: transparent;
}

.sponsor-track {
    display: flex;
    align-items: center;
    gap: 70px;
    width: max-content;
    animation: infiniteScrollSponsors 40s linear infinite;
}

.sponsor-track img {
    height: 55px; 
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5); 
    transition: filter 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
    cursor: pointer;
}

.sponsor-track img:hover {
    filter: grayscale(0%) opacity(1); 
    transform: scale(1.1);
}

.sponsor-track:hover {
    animation-play-state: paused; 
}

@keyframes infiniteScrollSponsors {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 35px)); }
}

@media screen and (max-width: 768px) {
    .sponsor-track img { height: 40px; }
    .sponsor-track { gap: 40px; }
}

/* =========================================================
   PORTFOLYO SIDEBAR KATMAN KİLİDİ ÇÖZÜCÜ (NİHAİ YAMA)
========================================================= */
#menu-btn {
    z-index: 999999 !important;
    pointer-events: auto !important;
}
.sidebar {
    z-index: 999998 !important;
}
.sidebar-overlay {
    z-index: 999997 !important;
}

/* =========================================================
   GLOBAL SIDEBAR & MENU BUTTON LAYER ABSOLUTE FIX
========================================================= */
#menu-btn {
    position: fixed !important;
    z-index: 99999999 !important;
    pointer-events: auto !important;
}
.sidebar {
    z-index: 99999998 !important;
}
.sidebar-overlay {
    z-index: 99999997 !important;
}
.lang-selector {
    z-index: 99999999 !important;
    pointer-events: auto !important;
}

/* =========================================================
   ILLUSTRUCKTION | GLOBAL MOBİL (RESPONSIVE) ZIRHI
========================================================= */
@media screen and (max-width: 768px) {
    .giant-apple-text { font-size: 2.4rem !important; line-height: 1.2 !important; }
    .hero-title { font-size: 2.2rem !important; }
    
    .apple-grid-layout, .apple-grid-layout.reverse { 
        display: flex !important; 
        flex-direction: column !important; 
        text-align: center !important;
        gap: 30px !important;
    }
    
    .slide-image-box img, .bento-box img { 
        max-width: 100% !important; 
        height: auto !important; 
    }
    .apple-elevator-container { padding: 100px 15px 40px !important; }
    
    .auth-container, .dashboard-container { 
        max-width: 92% !important; 
        margin: 120px auto 50px !important; 
        padding: 30px 20px !important; 
    }
    .auth-container h2 { font-size: 1.6rem !important; }
    .dashboard-header { flex-direction: column !important; text-align: center; gap: 20px; }
    
    .sponsor-static-wrapper { 
        gap: 30px !important; 
        flex-direction: column !important; 
    }
    .sponsor-static-wrapper img { max-height: 45px !important; }

    .lang-selector {
        top: 20px !important;
        right: 15px !important;
    }
    .apple-profile-top-btn {
        top: 20px !important;
        right: 110px !important;
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
    }
} 

/* =========================================================
   ILLUSTRUCKTION | TR FONETİK ZIRHI & MENÜ DÜZELTME PAKETİ
========================================================= */

/* 1. Global Fonetik ve İ Harfi Düzeltmesi */
html, body, button, input, textarea, select, span, h1, h2, h3, h4, h5, h6, p, a {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant-ligatures: no-common-ligatures;
    text-rendering: optimizeLegibility;
}

/* Tarayıcıların "i" harfini "I" yapmasını engelleyen dil kuralları */
:lang(tr) h1, :lang(tr) h2, :lang(tr) h3, :lang(tr) h4, :lang(tr) h5, :lang(tr) h6, :lang(tr) a, :lang(tr) button {
    text-transform: none !important; /* Zorunlu büyük harf kırılmasını engeller */
}

.giant-apple-text, .hero-title, .bento-box h3, .admin-nav-sidebar h3 {
    text-transform: none !important; 
}

/* 2. Global Menü Butonu & Dil Seçici Sabitlemesi */
#menu-btn {
    z-index: 99999999 !important;
    pointer-events: auto !important;
    position: fixed !important;
}

.sidebar {
    z-index: 99999998 !important;
}

.sidebar-overlay {
    z-index: 99999997 !important;
}

.lang-selector {
    z-index: 99999999 !important;
    pointer-events: auto !important;
}

/* 3. Yönetici Paneli Alan Temizliği */
.spa-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1600px;
    margin: 150px auto 100px;
    padding: 0 20px;
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

/* Mobil Ekranlarda Üst Üste Binmeyi Önle */
@media screen and (max-width: 1024px) {
    .spa-wrapper {
        flex-direction: column !important;
        margin-top: 120px;
    }
    .admin-nav-sidebar {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
    }
}

/* =========================================================
   ILLUSTRUCKTION | TR FONETİK ZIRHI & YÖNETİCİ PANEL FIX
========================================================= */

/* 1. Global İ Harfi ve Büyük Harf Dönüşüm Koruması */
:lang(tr) h1, :lang(tr) h2, :lang(tr) h3, :lang(tr) h4, :lang(tr) h5, :lang(tr) h6, :lang(tr) a, :lang(tr) button, :lang(tr) label {
    text-transform: none !important; 
}
.giant-apple-text, .hero-title, .bento-box h3, .admin-nav-sidebar h3 {
    text-transform: none !important; 
}

/* 2. Yönetici Paneli Üst Üste Binme ve Navigasyon Kilidi Çözümü */
#menu-btn {
    z-index: 99999999 !important;
    pointer-events: auto !important;
    position: fixed !important;
}
.sidebar, #sidebar {
    z-index: 99999995 !important;
}
.sidebar-overlay, #sidebar-overlay {
    z-index: 99999990 !important;
}
.lang-selector {
    z-index: 99999999 !important;
    pointer-events: auto !important;
}

/* Sol menünün ve sağ içerik alanının yerli yerinde durmasını zorunlu kılan izole kural */
.spa-wrapper {
    display: flex !important;
    gap: 30px !important;
    max-width: 1600px !important;
    margin: 150px auto 100px !important;
    padding: 0 20px !important;
    align-items: flex-start !important;
}
.admin-nav-sidebar {
    width: 280px !important;
    position: sticky !important;
    top: 140px !important;
    display: block !important;
    z-index: 100 !important;
}
}

/* =========================================================
   ILLUSTRUCKTION | TR FONETİK ZIRHI & PANEL KORUMASI (v1.1)
========================================================= */

/* Türkçe Büyük İ ve Küçük ı Harflerinin Dil Değişiminde Kırılmasını Önler */
:lang(tr) h1, :lang(tr) h2, :lang(tr) h3, :lang(tr) h4, :lang(tr) h5, :lang(tr) h6, :lang(tr) a, :lang(tr) button, :lang(tr) label {
    text-transform: none !important; 
}
.giant-apple-text, .hero-title, .bento-box h3, .admin-nav-sidebar h3 {
    text-transform: none !important; 
}

/* Sağ Menü Butonunu ve Panel Katmanlarını Birbirinden Ayıran Z-Index Güvencesi */
#menu-btn {
    z-index: 99999999 !important;
    pointer-events: auto !important;
    position: fixed !important;
}
.sidebar, #sidebar {
    z-index: 99999995 !important;
}
.sidebar-overlay, #sidebar-overlay {
    z-index: 99999990 !important;
}
.lang-selector {
    z-index: 99999999 !important;
    pointer-events: auto !important;
}