/* ════════════════════════════════
   NAVBAR – Modern Redesign
   ════════════════════════════════ */

/* Header — sticky olarak üstte kalır, absolute override */
.site-header.header-style-3 {
    background: #fff;
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    width: 100% !important;
    z-index: 999;
}

/* Wrapper — normal akışta */
.main-bar-wraper {
    position: relative;
    width: 100%;
}

/* main-bar: tam genişlik, ortalama yok */
.site-header .main-bar,
.header-style-3 .main-bar,
.header-style-3 .is-fixed .main-bar,
.header-style-3 .is-fixed.color-fill .main-bar {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    position: relative;
    border-bottom: 1.5px solid #e8ecf3;
    box-shadow: 0 2px 12px rgba(25,103,210,0.07);
    transition: box-shadow 0.25s, border-color 0.25s;
}
/* Tema JS wrapper'ı zaten fixed yapıyor — .main-bar burada relative kalır */
.site-header .main-bar.nav-scrolled,
.main-bar-wraper.nav-scrolled .main-bar {
    box-shadow: 0 4px 24px rgba(25,103,210,0.13) !important;
    border-bottom-color: #cdd8ee !important;
}

/* Container */
.site-header .container-fluid { padding: 0 28px; max-width: 1400px; margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 0; }

/* Logo */
.site-header .logo-header { flex-shrink: 0; display: flex; align-items: center; align-self: center; }
.site-header .logo-header img { height: 48px; width: auto; display: block; margin-top: 11px; }

/* ── Ana nav ── */
.site-header .header-nav { flex: 1; display: flex !important; justify-content: center; }
.site-header .header-nav .navbar-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-header .header-nav .navbar-nav > li > a {
    display: flex; align-items: center;
    height: 68px; padding: 0 16px;
    font-size: 13.5px; font-weight: 600;
    color: #3a4a5c; text-decoration: none;
    position: relative; transition: color 0.15s;
    white-space: nowrap;
}
.site-header .header-nav .navbar-nav > li > a::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; right: 50%;
    height: 3px;
    background: linear-gradient(90deg, #1967d2, #2d9bb3);
    border-radius: 2px 2px 0 0;
    transition: left 0.2s, right 0.2s;
}
.site-header .header-nav .navbar-nav > li > a:hover { color: #1967d2; }
.site-header .header-nav .navbar-nav > li > a:hover::after,
.site-header .header-nav .navbar-nav > li > a.nav-active::after { left: 16px; right: 16px; }
.site-header .header-nav .navbar-nav > li > a.nav-active { color: #1967d2; }

/* ── Sağ bölüm ── */
.site-header .extra-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.site-header .extra-cell { padding: 0 !important; }

/* İkon butonlar (arama, çan) */
.site-header .nav-icon-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; color: #3a4a5c;
    text-decoration: none; font-size: 17px;
    transition: background 0.15s, color 0.15s;
}
.site-header .nav-icon-btn:hover { background: #f0f4f8; color: #1967d2; }

/* ── Giriş / Üye ol butonları ── */
.nav-btn-signup {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 9px;
    font-size: 13px; font-weight: 600;
    border: 1.5px solid #1967d2; color: #1967d2 !important;
    text-decoration: none !important;
    transition: background 0.15s;
}
.nav-btn-signup:hover { background: #eef4ff; }

.nav-btn-login {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 9px;
    font-size: 13px; font-weight: 700;
    background: linear-gradient(135deg, #1967d2 0%, #2d9bb3 100%);
    color: #fff !important; text-decoration: none !important;
    border: none; transition: opacity 0.15s; cursor: pointer;
    margin-left: 6px;
}
.nav-btn-login:hover { opacity: 0.88; }

/* ── Kullanıcı dropdown ── */
.nav-user-btn.dropdown-toggle::after { display: none !important; }
.nav-user-btn {
    display: flex; align-items: center; gap: 9px;
    padding: 6px 12px 6px 6px;
    border-radius: 30px;
    background: #f4f7fc;
    border: 1.5px solid #e4ecf7;
    color: #1a1a2e !important;
    text-decoration: none !important;
    font-size: 13px; font-weight: 600;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer; margin-left: 8px;
}
.nav-user-btn:hover,
.nav-user-btn.show { border-color: #1967d2; background: #eef4ff; }
.nav-user-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #1967d2, #2d9bb3);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #fff; font-weight: 700;
    flex-shrink: 0;
}
.nav-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-chevron { font-size: 12px; color: #8a9ab5; transition: transform 0.2s; }
.nav-user-btn.show .nav-user-chevron { transform: rotate(180deg); }

/* Dropdown menü */
.nav-dropdown-menu {
    min-width: 220px;
    border: 1.5px solid #e4ecf7 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(25,103,210,0.12) !important;
    padding: 6px 0 !important;
    margin-top: 8px !important;
    overflow: hidden;
}
.nav-dropdown-header {
    padding: 12px 16px 10px;
    border-bottom: 1px solid #f0f4f8;
    display: flex; align-items: center; gap: 10px;
}
.nav-dropdown-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, #1967d2, #2d9bb3);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: #fff; font-weight: 700;
    flex-shrink: 0;
}
.nav-dropdown-uname { font-size: 13px; font-weight: 700; color: #1a1a2e; line-height: 1.2; }
.nav-dropdown-email { font-size: 11px; color: #aab4c2; }
.nav-dropdown-sep { height: 1px; background: #f0f4f8; margin: 4px 0; }
.nav-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 16px;
    font-size: 13px; color: #4a5568 !important;
    text-decoration: none !important;
    transition: background 0.12s, color 0.12s;
}
.nav-dropdown-item i { width: 16px; text-align: center; font-size: 14px; color: #aab4c2; flex-shrink: 0; }
.nav-dropdown-item:hover { background: #f0f6ff; color: #1967d2 !important; }
.nav-dropdown-item:hover i { color: #1967d2; }
.nav-dropdown-item.nav-logout { color: #e53e3e !important; }
.nav-dropdown-item.nav-logout i { color: #e53e3e; }
.nav-dropdown-item.nav-logout:hover { background: #fff5f5; color: #c53030 !important; }

/* ── Mobil toggle ── */
.site-header .navbar-toggler {
    border: 1.5px solid #e4ecf7;
    border-radius: 10px;
    padding: 7px 10px;
    background: #f4f7fc;
    margin-left: auto;
}
.site-header .navbar-toggler .icon-bar {
    display: block; width: 22px; height: 2px;
    background: #3a4a5c; border-radius: 2px;
    transition: all 0.2s;
}
.site-header .navbar-toggler .icon-bar + .icon-bar { margin-top: 5px; }

/* ════════════════════════════════
   İÇ SAYFA BANNER – Global
   ════════════════════════════════ */
.page-inner-banner {
    background: linear-gradient(135deg, #1967d2 0%, #2d9bb3 100%);
    padding: 28px 0;
    position: relative;
    overflow: hidden;
}
.page-inner-banner::before {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.page-inner-banner::after {
    content: '';
    position: absolute; bottom: -70px; left: -30px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.pib-wrap {
    display: flex; align-items: center; gap: 16px;
    position: relative; z-index: 1;
}
.pib-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
}
.pib-title {
    color: #fff; font-size: 22px; font-weight: 800;
    margin: 0 0 5px; line-height: 1.2;
}
.pib-breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: rgba(255,255,255,0.7);
}
.pib-breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.pib-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.pib-breadcrumb i { font-size: 11px; }
@media (max-width: 575px) {
    .pib-icon { width: 42px; height: 42px; font-size: 18px; border-radius: 10px; }
    .pib-title { font-size: 18px; }
}

/* ════════════════════════════════
   FEEDBACK WIDGET
   ════════════════════════════════ */
#feedback-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9000;
}

.feedback-tab {
    background: #1967d2;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 16px 10px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    border-radius: 6px 0 0 6px;
    box-shadow: -3px 2px 14px rgba(25,103,210,0.28);
    transition: background 0.2s, box-shadow 0.2s;
    line-height: 1;
}

.feedback-tab:hover {
    background: #1558b0;
    box-shadow: -4px 3px 20px rgba(25,103,210,0.38);
}

.feedback-tab i {
    font-size: 15px;
    transform: rotate(180deg);
}

.feedback-panel {
    position: fixed;
    right: -360px;
    top: 50%;
    transform: translateY(-50%);
    width: 340px;
    background: #fff;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 32px rgba(0,0,0,0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9001;
    max-height: 90vh;
    overflow-y: auto;
}

.feedback-panel.open {
    right: 0;
}

.feedback-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: #1967d2;
    border-radius: 12px 0 0 0;
}

.feedback-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.feedback-panel-title i { font-size: 16px; }

.feedback-panel-header h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.feedback-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.feedback-close:hover { opacity: 1; }

.feedback-panel-body { padding: 18px; }

.feedback-desc {
    font-size: 13px;
    color: #5a6a7e;
    margin-bottom: 15px;
    line-height: 1.55;
}

.feedback-form-group { margin-bottom: 11px; }

.feedback-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #dde4f0;
    border-radius: 7px;
    font-size: 13px;
    color: #333;
    background: #f8faff;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    appearance: none;
}

.feedback-input:focus {
    border-color: #1967d2;
    background: #fff;
}

.feedback-textarea {
    resize: vertical;
    min-height: 88px;
}

.feedback-form-actions { margin-top: 4px; }

.feedback-submit-btn {
    width: 100%;
    background: #1967d2;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.feedback-submit-btn:hover:not(:disabled) { background: #1558b0; }

.feedback-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feedback-success,
.feedback-error {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
}

.feedback-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.feedback-error {
    background: #fdecea;
    border: 1px solid #f5c6c6;
    color: #c62828;
}

.feedback-success i,
.feedback-error i { font-size: 18px; flex-shrink: 0; }

@media (max-width: 576px) {
    .feedback-panel {
        width: calc(100vw - 44px);
        right: calc(-100vw + 44px);
        border-radius: 10px 0 0 10px;
    }
    .feedback-panel.open { right: 0; }
    .feedback-tab { padding: 12px 8px; font-size: 11.5px; }
}

/* ── Responsive: ≤991px ── */
@media (max-width: 991px) {
    .site-header .container-fluid { height: 60px; padding: 0 16px; }
    .site-header .header-nav { display: none !important; }
    .site-header .header-nav.show { display: flex !important; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: #fff; z-index: 9999; overflow-y: auto; padding: 16px 0; box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
    .site-header .header-nav .navbar-nav { flex-direction: column; width: 100%; gap: 0; }
    .site-header .header-nav .navbar-nav > li > a { height: 52px; padding: 0 24px; border-bottom: 1px solid #f0f4f8; font-size: 15px; }
    .site-header .header-nav .navbar-nav > li > a::after { display: none; }
    .nav-user-name { display: none; }
    .nav-btn-signup span { display: none; }
}