/* ================================================
   AIMARTVA — HEADER STYLES
   ფაილი: assets/css/header.css
   header.php-ში ჩართე:
   <link rel="stylesheet" href="assets/css/header.css?v=1">
   და style.css / mobile.css-დან header ბლოკები ამოიღე
================================================ */

/* ===== BASE HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: all 0.7s cubic-bezier(0.4,0,0.2,1);
    background: transparent;
}

.header.scrolled {
    background: rgba(250,251,254,0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    padding: 10px 0;
}

[data-theme="dark"] .header.scrolled {
    background: rgba(10,10,26,0.92);
    border-bottom: 1px solid rgba(99,102,241,0.1);
}

/* logged-in: ყოველთვის შავი/თეთრი ფონი */
.header.is-logged-in {
    background: rgba(250,251,254,0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

[data-theme="dark"] .header.is-logged-in {
    background: rgba(10,10,26,0.96);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px; 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ===== LOGO ===== */
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1a1a2e;
}

[data-theme="dark"] .logo-text {
    color: #e8e8f0;
}

.logo-highlight {
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAV ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555770;
    position: relative;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-link:hover { color: #2563eb; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
    transition: width 0.3s;
}

.nav-link:hover::after { width: 100%; }

[data-theme="dark"] .nav-link { color: rgba(255,255,255,0.65); }
[data-theme="dark"] .nav-link:hover { color: #818cf8; }
[data-theme="dark"] .nav-link:hover::after { background: #818cf8; }

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555770;
    transition: all 0.3s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: #2563eb;
    color: #2563eb;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
}

[data-theme="dark"] .theme-toggle:hover {
    border-color: rgba(99,102,241,0.5);
    color: #818cf8;
}

.theme-icon.moon { display: none; }
[data-theme="dark"] .theme-icon.sun { display: none; }
[data-theme="dark"] .theme-icon.moon { display: block; }

/* Buttons */
.btn-header-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 50px;
    background: transparent;
    color: #1a1a2e;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-header-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
}

[data-theme="dark"] .btn-header-outline {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .btn-header-outline:hover {
    color: #818cf8;
    border-color: rgba(99,102,241,0.5);
}

.btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}

.btn-header-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.btn-header-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}
/* ===== TABLET: 1040px ===== */
@media (max-width: 1040px) {
    .nav { gap: 24px; }
}

/* ===== TABLET: 1024px ===== */
@media (max-width: 1024px) {
     .nav { gap: 14px; }
    .header-inner { padding: 0 20px; }
    .logo-img { height: 38px; }
    .logo-text { font-size: 1.4rem; }
}

/* ===== MOBILE: 900px ===== */
@media (max-width: 900px) {
    /* ნავიგაცია იმალება */
    .nav { display: none !important; }

    .header {
        padding: 10px 0 !important;
    }

    .header-inner {
        padding: 10px 14px !important;
        gap: 8px !important;
    }

    /* Logo */
    .logo-img {
        height: 36px !important;
        width: 36px !important;
    }

    .logo-text {
        font-size: 1.2rem !important;
    }

    /* Actions */
    .header-actions {
        gap: 8px !important;
    }

    /* Theme toggle */
    .theme-toggle {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    .theme-toggle svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Buttons */
    .btn-header-outline {
        height: 34px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    .btn-header {
        height: 34px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    .btn-header-profile {
        height: 34px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        max-width: 130px !important;
        border-radius: 8px !important;
    }

    .btn-header-profile svg {
        width: 13px !important;
        height: 13px !important;
    }
}

/* ===== SMALL MOBILE: 480px ===== */
@media (max-width: 480px) {
    .logo-img { height: 30px !important; width: 30px !important; }
    .logo-text { font-size: 1.05rem !important; }

    .theme-toggle {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }

    .btn-header-outline {
        height: 30px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }

    .btn-header {
        height: 30px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }

    .btn-header-profile {
        height: 30px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
        max-width: 110px !important;
    }
}

/* ===== TINY: 375px ===== */
@media (max-width: 375px) {
    .header-inner { padding: 0 8px !important; }
    .logo-img { height: 26px !important; width: 26px !important; }
    .logo-text { font-size: 0.95rem !important; }
    .header-actions { gap: 6px !important; }

    .theme-toggle {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    .btn-header-outline,
    .btn-header {
        height: 28px !important;
        padding: 0 8px !important;
        font-size: 10.5px !important;
    }

    .btn-header-profile {
        height: 28px !important;
        padding: 0 8px !important;
        font-size: 10px !important;
        max-width: 95px !important;
    }
}