/* =========================================
   AY-TECH | ORTAK NAViGASYON SSTEM
   Tüm sayfalar bu dosyay? kullan?r.
   ========================================= */

/* --- CSS DEĞiŞKENLERi (Nav için) --- */
:root {
    --nav-w: 72px;
    --nav-bg: #FFFFFF;
    --nav-border: #E5E7EB;
    --nav-active-bg: #FFF1F2;
    --nav-active-color: #D32F2F;
    --nav-icon-color: #94A3B8;
    --nav-logo-color: #D32F2F;
    --mobile-header-h: 52px;
    --mobile-nav-h: 58px;
}

/* =========================================
   1. MASAÜSTÜ NAV (Sol Dikey Çubuk)
   ========================================= */
.nav-rail {
    width: var(--nav-w);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--nav-bg);
    border-right: 1px solid var(--nav-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.03);
}

.desktop-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--nav-logo-color);
    margin-bottom: 35px;
    display: block;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.nav-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--nav-icon-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    background: var(--nav-active-bg);
    color: var(--nav-active-color);
    transform: translateY(-1px);
}

.nav-hot-tag {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #FFD700;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.48rem;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1.5px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    line-height: 1;
    letter-spacing: 0.5px;
}

/* =========================================
   2. MOBL HEADER (Üst Çubuk)
   ========================================= */
.mobile-header {
    display: none; /* Masaüstünde gizli */
}

/* =========================================
   3. MASAÜSTÜ iÇERiK OFFSET
   ========================================= */
@media (min-width: 901px) {
    body {
        padding-left: var(--nav-w) !important;
    }
}

/* =========================================
   4. MOBL UYUM (≤900px)
   ========================================= */
@media (max-width: 900px) {
    /* Üst Header */
    .mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        height: var(--mobile-header-h);
        background: var(--nav-bg);
        border-bottom: 1px solid var(--nav-border);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9998;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    }

    .mobile-header .logo {
        font-family: 'Orbitron', sans-serif;
        font-weight: 900;
        font-size: 1.1rem;
        color: var(--nav-logo-color);
    }

    .status-dot {
        width: 8px;
        height: 8px;
        background: #00C853;
        border-radius: 50%;
        box-shadow: 0 0 6px rgba(0, 200, 83, 0.5);
    }

    /* Alt Nav Bar */
    .nav-rail {
        width: 100% !important;
        height: var(--mobile-nav-h) !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        flex-direction: row !important;
        border-right: none !important;
        border-top: 1px solid var(--nav-border) !important;
        padding: 0 !important;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.06) !important;
        justify-content: space-around !important;
    }

    .desktop-logo {
        display: none !important;
    }

    .nav-links {
        flex-direction: row !important;
        width: 100% !important;
        height: 100% !important;
        justify-content: space-around !important;
        align-items: center !important;
        gap: 0 !important;
    }

    .nav-item {
        width: auto !important;
        height: 100% !important;
        border-radius: 0 !important;
        font-size: 1.3rem !important;
        padding: 0 12px !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .nav-item:hover,
    .nav-item.active {
        background: transparent !important;
        border-top: 3px solid var(--nav-active-color) !important;
        color: var(--nav-active-color) !important;
        transform: none !important;
    }

    .nav-hot-tag {
        top: 6px !important;
        right: 2px !important;
        font-size: 0.42rem !important;
        padding: 1px 3px !important;
        border: 1px solid #fff !important;
    }

    /* Body offset */
    body {
        padding-left: 0 !important;
        padding-bottom: calc(var(--mobile-nav-h) + 15px) !important;
    }

    /* Main Content offset */
    .main-content,
    .firsat-container,
    .dashboard-area {
        padding-top: calc(var(--mobile-header-h) + 10px) !important;
    }
}
