﻿/* ==========================================================================
   🎯 1. FONT TANIMLAMALARI (POPPINS & ENIGMA)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500;1,600&display=swap');

@font-face {
    font-family: 'Enigma';
    src: url('/fonts/enigma.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    background-color: #f4f5f7 !important; /* Lüks gri/buz mavisi arkaplan */
    font-family: 'Poppins', sans-serif !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==========================================================================
   🎯 2. MOBİL NATIVE APP HİSSİYATI (ZOOM & OUTLINE ENGELLEME)
   ========================================================================== */
input, textarea, select {
    font-size: 16px !important;
}

    input:focus, textarea:focus, select:focus {
        outline: none !important;
        box-shadow: none !important;
    }

/* ==========================================================================
   🎯 3. ORTAK KULLANILACAK PREMIUM BUTON VE İNPUTLAR
   ========================================================================== */
.glass-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    color: #333 !important;
    padding: 14px 20px;
    transition: all 0.3s ease;
    font-weight: 400;
}

    .glass-input:focus {
        background: #ffffff;
        border-color: #c31e0b;
        box-shadow: 0 0 0 4px rgba(195, 30, 11, 0.1);
    }

    .glass-input::placeholder {
        color: #adb5bd;
    }

.btn-premium {
    background: linear-gradient(45deg, #c31e0b, #e02d19);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(195, 30, 11, 0.25);
}

    .btn-premium:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(195, 30, 11, 0.4);
        background: linear-gradient(45deg, #d82512, #f53620);
        color: white;
    }

/* ==========================================================================
   🎯 4. CAM KENAR ÇUBUĞU (MASAÜSTÜ İÇİN SABİT SIDEBAR)
   ========================================================================== */
.sidebar-container {
    width: 260px;
    height: 100vh;
    z-index: 1050;
    flex-shrink: 0; /* Masaüstünde daralmasını engeller */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-sidebar {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.8) !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.02) !important;
}

/* Çift Logolu Header */
.sidebar-header {
    height: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 25px !important;
    padding: 15px 20px !important;
}

.sidebar-corporate-logo {
    max-width: 75% !important;
    height: auto !important;
    max-height: 40px !important;
    object-fit: contain !important;
}

/* Tipografik İkinci Logo */
.brand-title-mini {
    display: inline-flex !important;
    align-items: baseline !important;
    line-height: 1 !important;
    margin-top: 10px !important;
}

    .brand-title-mini .brand-ekmen {
        font-family: 'Enigma', sans-serif !important;
        font-size: 1.4rem !important;
        font-weight: 900 !important;
        color: #c31e0b !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .brand-title-mini .brand-den {
        font-family: 'Enigma', sans-serif !important;
        font-size: 1.1rem !important;
        font-weight: 800 !important;
        text-transform: lowercase !important;
        background: linear-gradient(90deg, #c31e0b 0%, #c5a059 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        margin: 0 4px !important;
    }

    .brand-title-mini .brand-al {
        font-family: 'Enigma', sans-serif !important;
        font-size: 1.4rem !important;
        font-weight: 900 !important;
        background: linear-gradient(135deg, #c5a059 0%, #8d6b32 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        text-transform: uppercase !important;
    }

/* 🎯 MENÜ LİNKLERİ (Sola Hizalı & Lüks Hover) */
.nav-items-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 15px !important;
}

.nav-item-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* 🚀 Sola hizalar */
    padding: 14px 20px !important;
    border-radius: 16px !important;
    color: #515154 !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border: 1px solid transparent !important;
}

    .nav-item-link .nav-icon {
        font-size: 1.3rem !important;
        margin-right: 15px !important;
        color: #8e8e93 !important;
        transition: all 0.3s ease !important;
    }

    .nav-item-link:hover {
        background: rgba(195, 30, 11, 0.04) !important;
        color: #c31e0b !important;
        text-decoration: none !important;
    }

    .nav-item-link.active {
        background: #ffffff !important;
        color: #c31e0b !important;
        box-shadow: 0 10px 25px rgba(195, 30, 11, 0.08) !important;
        border: 1px solid rgba(195, 30, 11, 0.1) !important;
        text-decoration: none !important;
    }

        .nav-item-link.active .nav-icon, .nav-item-link:hover .nav-icon {
            color: #c31e0b !important;
            transform: scale(1.1) !important;
        }

/* ==========================================================================
   🎯 5. MOBİLDE AÇILIR KAPANIR MENÜ (OFFCANVAS)
   ========================================================================== */
@media (max-width: 767.98px) {
    /* Mobilde Menü Solda Gizlenir */
    .sidebar-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        transform: translateX(-100%); /* Ekranın dışında bekler */
    }

    /* MainLayout.razor içindeki "mobile-menu-open" class'ı tetiklendiğinde ekrana kayar */
    .mobile-menu-open .sidebar-container {
        transform: translateX(0) !important;
    }
}

/* Menü Açıldığında Arkayı Karartan Zemin (Sadece Mobilde) */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 1040; /* Menünün bir kat altında, sayfanın tam üstünde */
}
/* ==========================================================================  
 🎯 ODEME YAP SAYFASI - PREMIUM TASARIM 
 ========================================================================== */
.bg-premium-gradient {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.balance-text {
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.premium-input {
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

    .premium-input:focus {
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15), inset 0 1px 3px rgba(0,0,0,0.05);
        background-color: #fff !important;
    }

.amount-input:focus {
    outline: none;
    box-shadow: none;
}

/* 3D SANAL KREDİ KARTI */
.credit-card-wrapper {
    width: 100%;
    max-width: 360px;
    height: 220px;
    perspective: 1000px;
    margin: 0 auto;
}

.credit-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.credit-card-wrapper.flipped .credit-card-inner {
    transform: rotateY(180deg);
}

.credit-card-front, .credit-card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; /* Safari uyumluluğu */
    border-radius: 16px;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

.credit-card-front {
    background: linear-gradient(135deg, #2b2b2b, #4a4a4a);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

    .credit-card-front::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
        pointer-events: none;
    }

.card-number-text {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    margin-top: 10px;
}

.info-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    letter-spacing: 1px;
}

.credit-card-back {
    background: linear-gradient(135deg, #4a4a4a, #2b2b2b);
    transform: rotateY(180deg);
    padding-top: 24px;
}

.magnetic-strip {
    width: 100%;
    height: 45px;
    background: #111;
}

.signature-box {
    background: repeating-linear-gradient(45deg, #fff, #fff 10px, #f0f0f0 10px, #f0f0f0 20px);
    height: 40px;
    border-radius: 4px;
}

.cvv-text {
    font-family: Arial, sans-serif;
    letter-spacing: 3px;
    font-size: 1.2rem;
}

.btn-premium-action {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

    .btn-premium-action:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(13, 110, 253, 0.4) !important;
        background: linear-gradient(45deg, #0b5ed7, #0a58ca);
    }

@media (max-width: 575.98px) {
    .credit-card-wrapper {
        width: 100%;
        max-width: 320px;
        height: 200px;
    }

    .card-number-text {
        font-size: 1.3rem;
    }
}

/* 🎯 BLAZOR BAĞLANTI KOPMA UYARISINI MODERLEŞTİRME */
#blazor-error-ui {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.6) !important; /* Arkayı karart */
    backdrop-filter: blur(5px); /* Arkayı flu yap */
    align-items: center;
    justify-content: center;
    color: #333;
}

    /* Bağlantı koptuğunda Blazor bu sınıfı otomatik tetikler */
    #blazor-error-ui.blazor-error-boundary,
    html body #blazor-error-ui[style*="block"] {
        display: flex !important;
    }

    /* Ortadaki Uyarı Kutusu */
    #blazor-error-ui::before {
        content: "⏳ Oturumunuz Zaman Aşımına Uğradı \A\A Güvenliğiniz ve sunucu sağlığı için arka planda kalan oturumlar otomatik sonlandırılır. Devam etmek için lütfen sayfayı yenileyiniz.";
        white-space: pre-wrap;
        background: white;
        padding: 30px;
        border-radius: 16px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
        max-width: 400px;
        text-align: center;
        font-family: 'Poppins', sans-serif;
        font-size: 0.95rem;
        line-height: 1.5;
        font-weight: 500;
    }

    /* Varsayılan yazıları gizle */
    #blazor-error-ui environment {
        display: none !important;
    }

    /* Yenile Butonunu Güzelleştir */
    #blazor-error-ui .reload {
        position: absolute;
        bottom: calc(50% - 60px);
        background: #0d6efd;
        color: white !important;
        text-decoration: none;
        padding: 10px 25px;
        border-radius: 50px;
        font-weight: bold;
        box-shadow: 0 5px 15px rgba(13,110,253,0.3);
        transition: all 0.3s;
    }

        #blazor-error-ui .reload:hover {
            transform: scale(1.05);
        }

    #blazor-error-ui .dismiss {
        display: none !important;
    }
/* Kapatma çarpısını gizle */