/* ============================
   HEADER (APPLE STYLE)
   ============================ */

.rfk-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--bg-panel-border);
    display: flex;
    align-items: center;
    z-index: 9999;
}

.rfk-header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    width: 100%;
}

/* Logo */
.rfk-logo {
    width: 34px;
    height: 34px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Title */
.rfk-title {
    font-size: 18px;
    font-weight: 700;
    opacity: 0.85;
}

/* ============================
   MASAÜSTÜ MENÜ
   ============================ */

.rfk-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-left: 24px;
    margin-right: auto;
}

.rfk-nav a {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0 6px;
    display: flex;
    align-items: center;
    height: 56px;
    line-height: 56px;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rfk-nav a:hover {
    color: var(--text-main);
    font-weight: 600;
    transform: scale(1.08);
}

.rfk-nav a.active {
    color: var(--text-main);
    font-weight: 800;
    transform: scale(1.05);
}

/* Masaüstünde hamburger gizli */
.rfk-nav-toggle {
    display: none;
}

/* Mobil menü başlangıçta gizli */
.rfk-nav-mobile {
    display: none;
}

/* ============================
   MOBİL MENÜ
   ============================ */

@media (max-width: 768px) {

    .rfk-nav {
        display: none;
    }

    /* HAMBURGER — görünmesi için GEREKLİ satır */
    .rfk-nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 28px;
        background: none;
        border: none;
        padding: 0;
        margin-left: 15px;
        /* Rıfkı başlığının hemen yanına aldık */
        cursor: pointer;
    }

    .rfk-nav-toggle span {
        height: 3px;
        width: 100%;
        background: var(--text-main);
        border-radius: 3px;
    }

    .rfk-nav-mobile {
        display: none;
        position: absolute;
        top: 56px;
        left: 16px;
        width: 200px;
        flex-direction: column;
        padding: 12px;
        gap: 8px;
        background: var(--bg-panel);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--bg-panel-border);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 10000;
    }

    .rfk-nav-mobile.open {
        display: flex;
    }

    .rfk-nav-mobile a {
        color: var(--text-main);
        text-decoration: none;
        padding: 8px 0;
        font-size: 16px;
        transition: opacity .2s ease;
    }

    .rfk-nav-mobile a:hover {
        opacity: 1;
        font-weight: 600;
    }

    .rfk-nav-mobile a.active {
        font-weight: 800;
        color: var(--orb-main);
        /* Vurgu için orb rengini kullanalım */
    }
}

/* ============================
   ADMIN BUTTON STYLE
   ============================ */
.header-btn-admin {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    padding: 0 16px !important;
    border-radius: 20px;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 32px !important;
    /* Button height */
    height: 32px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
    transform: none !important;
    /* Reset nav hover transform initially */
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-shadow: none;
}

.header-btn-admin:hover {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    opacity: 1 !important;
}

/* Mobile specific adjustments if needed */
.header-btn-admin.mobile {
    margin: 5px 0 5px 0;
    width: fit-content !important;
}