/* ═══════════════════════════════════════════
   RUNEVO — header.css
   Ana Navigasyon — Siyah arkaplan, %60/%40 layout
   ═══════════════════════════════════════════ */

.header {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 250;
    height: 62px;
    background: var(--black);
}

.header-inner {
    display: flex;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 36px;
    height: 100%;
}

/* ═══ SOL ═══ */
.header-left {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
    gap: 0;
}

/* ── Logo ── */
.header-logo {
    display: flex;
    align-items: center;
    margin-right: 32px;
    flex-shrink: 0;
    height: 100%;
}

.header-logo-img {
    height: 34px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ── Nav Linkleri ── */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 20px;
    height: 100%;
    letter-spacing: 0.3px;
    transition: color var(--ease), background var(--ease);
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--white);
    font-weight: 500;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* ═══ SAĞ ═══ */
.header-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 10px;
    height: 100%;
}

/* ── Butonlar ── */
.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--ease);
    white-space: nowrap;
    letter-spacing: 0.2px;
    cursor: pointer;
}

.header-btn i {
    font-size: 16px;
}

/* Kayıt Ol — outline */
.header-btn-outline {
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
}

.header-btn-outline:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

/* Giriş Yap — beyaz dolgulu */
.header-btn-white {
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--white);
}

.header-btn-white:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-1px);
}

/* Yapay Zeka — özel vurgu */
.header-btn-ai {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-btn-ai i {
    font-size: 15px;
}

.header-btn-ai:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ── Sepet & Bildirim kare buton ── */
.header-btn-square {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.65);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--ease);
}

.header-btn-square:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

/* Badge (sayı) */
.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--white);
    color: var(--black);
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Badge (nokta) */
.badge-dot {
    min-width: 12px;
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    background: #ff4444;
    top: -3px;
    right: -3px;
    border: 2.5px solid var(--black);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 5px rgba(255, 68, 68, 0); }
}

/* Dikey ayraç */
.header-sep {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    margin: 0 4px;
}

/* ═══ ARAÇLAR BUTONU + DROPDOWN ═══ */
.tools-wrapper {
    position: relative;
}

.header-btn-square {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--ease);
}

.header-btn-square:hover,
.header-btn-square.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

/* Dropdown */
.tools-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 400;
}

.tools-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tools-dropdown-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--g4);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px 6px;
}

.tools-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--g5);
    transition: all var(--ease);
}

.tools-item i {
    font-size: 18px;
    color: var(--g4);
    width: 22px;
    text-align: center;
    transition: color var(--ease);
}

.tools-item:hover {
    background: var(--g1);
    color: var(--black);
}

.tools-item:hover i {
    color: var(--black);
}

/* ── Hamburger (mobil) ── */
.header-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.header-hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--ease);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1200px) {
    .header-inner {
        padding: 0 20px;
    }

    .header-logo {
        margin-right: 20px;
    }

    .nav-link {
        padding: 0 14px;
        font-size: 14px;
    }

    .header-btn {
        padding: 7px 12px;
        font-size: 12.5px;
    }
}

@media (max-width: 900px) {
    .header-nav,
    .header-right {
        display: none;
    }

    .header-hamburger {
        display: flex;
    }

    .header-left {
        flex: 1;
    }
}

@media (max-width: 680px) {
    .header {
        top: 36px;
        height: 54px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .header-logo-img {
        height: 28px;
    }
}
