/**
 * Bazaarcan — SellerRunning tarzı ortak sayfa bileşenleri — hasancancap
 */

/* Abonelik banner — hasancancap */
.bz-sub-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 45%, #2dd4bf 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.22);
}

.bz-sub-banner strong { font-size: 0.92rem; font-weight: 700; }
.bz-sub-banner .bz-sub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    font-size: 0.78rem;
    opacity: 0.95;
}

.bz-sub-banner .bz-sub-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bz-sub-banner .bz-sub-cta .btn {
    background: #fff;
    color: #0f766e;
    border: 0;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 8px 14px;
    border-radius: 8px;
}

/* Uyarı / bilgi şeritleri — hasancancap */
.bz-alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.bz-alert-banner i { font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.bz-alert-banner.is-info { background: #e0f2fe; color: #0c4a6e; border: 1px solid #bae6fd; }
.bz-alert-banner.is-warn { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.bz-alert-banner a { color: #2563eb; font-weight: 600; text-decoration: none; }

/* Sayfa başlığı + araç çubuğu — hasancancap */
.bz-page-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.bz-page-toolbar .bz-breadcrumb {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 4px;
}

.bz-page-toolbar h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bz-page-toolbar .bz-title-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-mute);
}

.bz-page-toolbar .bz-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Durum sekmeleri — hasancancap */
.bz-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
    overflow-x: auto;
}

.bz-status-tabs a,
.bz-status-tabs button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-mute);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}

.bz-status-tabs a:hover,
.bz-status-tabs button:hover { color: var(--ink); }

.bz-status-tabs a.is-active,
.bz-status-tabs button.is-active {
    color: #0d9488;
    border-bottom-color: #14b8a6;
}

.bz-status-tabs .count {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.72rem;
    color: var(--ink-mute);
}

/* Arama satırı — hasancancap */
.bz-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.bz-search-row .bz-search-field {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.bz-search-row .bz-search-field i { color: var(--ink-mute); }
.bz-search-row .bz-search-field input {
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 0.85rem;
    background: transparent;
}

.bz-search-row .bz-link-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}

/* Ayarlar sekmeleri — hasancancap */
.bz-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}

.bz-settings-tabs a {
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-mute);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.bz-settings-tabs a.is-active {
    color: #0d9488;
    border-bottom-color: #14b8a6;
}

.bz-settings-tabs a i {
    margin-right: 4px;
    font-size: 0.9em;
    vertical-align: -1px;
}

/* Filtre kartları — hasancancap */
.bz-filter-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
}

.bz-filter-card h4 {
    font-size: 0.88rem;
    margin: 0 0 12px;
    font-weight: 700;
}

.bz-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line-2);
}

.bz-filter-row:first-of-type { border-top: 0; padding-top: 0; }

.bz-filter-row .copy { flex: 1; min-width: 200px; }
.bz-filter-row .copy strong { display: block; font-size: 0.84rem; margin-bottom: 4px; }
.bz-filter-row .copy p { margin: 0; font-size: 0.76rem; color: var(--ink-mute); line-height: 1.4; }

.bz-badge-rec {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    margin-left: 6px;
    vertical-align: middle;
}

/* Repricer adımları — hasancancap */
.bz-steps { display: grid; gap: 10px; margin-bottom: 18px; }

.bz-step {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--line-2);
    font-size: 0.82rem;
    line-height: 1.45;
}

.bz-step .num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Boş durum — hasancancap */
.bz-empty-inline {
    text-align: center;
    padding: 36px 16px;
    color: var(--ink-mute);
    font-size: 0.88rem;
}

.bz-empty-inline i { font-size: 2rem; display: block; margin-bottom: 8px; opacity: 0.5; }

/* Tablo iyileştirmeleri — hasancancap */
.tbl .ord-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.82rem;
}

.tbl .ord-link:hover { text-decoration: underline; }

.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable::after { content: ' ↕'; opacity: 0.35; font-size: 0.7rem; }

/* Profil menüsü genişletilmiş — hasancancap */
.bz-topnav .dropdown-menu {
    min-width: 220px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.bz-topnav .dropdown-item {
    border-radius: 8px;
    font-size: 0.84rem;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bz-topnav .dropdown-item i { opacity: 0.7; width: 18px; }

/* Nav dropdown — hasancancap */
.bz-tnav-item.dropdown .dropdown-menu { margin-top: 8px; }
.bz-tnav-item .dropdown-item { font-size: 0.82rem; }

.bz-tnav-link.dropdown-toggle::after { display: none; }

/* Profil menüsü — SellerRunning avatar dropdown — hasancancap */
.bz-topnav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--ink-mute);
    text-decoration: none;
    position: relative;
}

.bz-topnav-icon-btn:hover { background: rgba(15,23,42,.06); color: var(--ink); }

body.bz-dark {
    --bg: #0f172a;
    --bg-2: #1e293b;
    --bg-3: #334155;
    --ink: #f1f5f9;
    --ink-soft: #cbd5e1;
    --ink-mute: #94a3b8;
    --line: #334155;
    --line-2: #475569;
}

body.bz-dark .card,
body.bz-dark .bz-dash-select,
body.bz-dark .bz-filter-card {
    background: var(--bg-2);
    color: var(--ink);
}

/* Yenistil switch — tüm ayar sayfalarında — hasancancap */
.bz-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.bz-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bz-switch-track {
    display: block;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.2s ease;
    position: relative;
}

.bz-switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
}

.bz-switch input:checked + .bz-switch-track {
    background: var(--brand);
}

.bz-switch input:checked + .bz-switch-track::after {
    transform: translateX(16px);
}

.bz-switch-sm .bz-switch-track {
    width: 32px;
    height: 18px;
}

.bz-switch-sm .bz-switch-track::after {
    width: 12px;
    height: 12px;
    top: 3px;
    left: 3px;
}

.bz-switch-sm input:checked + .bz-switch-track::after {
    transform: translateX(14px);
}

.bz-filter-row .bz-switch {
    align-self: flex-start;
    margin-top: 2px;
}

/* Profil menüsü — SR kompakt dropright — hasancancap */
.bz-profile-menu {
    min-width: 210px;
    max-width: 240px;
    padding: 6px 0;
    border-radius: 10px;
}

.bz-profile-menu .dropdown-item {
    font-size: 0.8rem;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--ink-soft);
}

.bz-profile-menu .dropdown-item:hover,
.bz-profile-menu .dropdown-item:focus {
    background: rgba(15, 23, 42, 0.04);
    color: var(--ink);
}

.bz-profile-menu .dropdown-item > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bz-profile-menu .dropdown-divider {
    margin: 4px 0;
}

.bz-profile-switch-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: default;
}

.bz-profile-switch-label {
    margin: 0;
    font-size: 0.8rem;
    color: var(--ink-mute);
    cursor: pointer;
}

.bz-profile-dropend .dropdown-toggle::after {
    display: none;
}

.bz-profile-dropend .dropdown-item i.ri-arrow-right-s-line {
    font-size: 0.95rem;
    opacity: 0.5;
}

.bz-profile-dropend .dropdown-menu {
    min-width: 180px;
    padding: 6px 0;
    margin-left: 2px;
}

.bz-dot-primary {
    color: var(--brand);
    font-size: 0.65rem;
    line-height: 1;
}

.bz-profile-logout {
    color: var(--ink) !important;
    font-weight: 500;
}
