/* ════════════════════════════════════════════════════════════════════
   MTA A3.7 — USTA Dizini + Akış Filtre Stilleri
   v7.34.10.34-A3.7
   ════════════════════════════════════════════════════════════════════ */

/* ─── /ustalar/ ana yapı ─── */
.mta-ustalar-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 100px;
    min-height: calc(100vh - 200px);
}

/* HERO */
.mta-ustalar-hero {
    background: linear-gradient(135deg, #427584 0%, #5a9ab0 100%);
    color: #fff;
    border-radius: 0 0 18px 18px;
    padding: 28px 20px 24px;
    text-align: center;
    margin: 0 -16px 16px;
}
.mta-ustalar-h1 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
}
.mta-ustalar-sub {
    margin: 0;
    font-size: 13px;
    opacity: 0.92;
}

/* FİLTRE */
.mta-ustalar-filters {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}
.mta-ustalar-search-row,
.mta-ustalar-options-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
.mta-ustalar-options-row {
    grid-template-columns: 1fr 1fr 1fr auto;
    margin-bottom: 0;
}
@media (max-width: 500px) {
    .mta-ustalar-search-row { grid-template-columns: 1fr; }
    .mta-ustalar-options-row { grid-template-columns: 1fr 1fr; }
    .mta-ustalar-options-row .mta-u-gps-btn { grid-column: 1 / -1; }
}

.mta-u-select {
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}
.mta-u-select:disabled { opacity: 0.5; }
.mta-u-select:focus {
    outline: none;
    border-color: #427584;
    box-shadow: 0 0 0 3px rgba(66, 117, 132, 0.15);
}

.mta-u-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    user-select: none;
}
.mta-u-check input { margin-right: 4px; }

.mta-u-gps-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.mta-u-gps-btn:hover { background: linear-gradient(135deg, #d97706, #b45309); }
.mta-u-gps-btn.is-active { background: linear-gradient(135deg, #16a34a, #15803d); }
.mta-u-gps-btn:disabled { opacity: 0.6; cursor: wait; }

/* STATS */
.mta-ustalar-stats {
    margin-bottom: 12px;
}
.mta-ustalar-stats-inner {
    background: #eff6ff;
    color: #1e40af;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    border-left: 3px solid #3b82f6;
}

/* LIST */
.mta-ustalar-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 600px) {
    .mta-ustalar-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .mta-ustalar-list { grid-template-columns: 1fr 1fr 1fr; }
}

.mta-ustalar-loading,
.mta-ustalar-empty {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 14px;
    padding: 50px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    border: 1px solid #e5e7eb;
}
.mta-ustalar-empty small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
}

.mta-ustalar-more-btn {
    display: block;
    margin: 20px auto 0;
    background: #fff;
    color: #427584;
    border: 2px solid #427584;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mta-ustalar-more-btn:hover {
    background: #427584;
    color: #fff;
}

/* USTA CARD */
.mta-usta-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1.5px solid #e5e7eb;
    display: flex;
    gap: 14px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mta-usta-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.uc-avatar-link {
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
}
.uc-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #f3f4f6;
}
.uc-role-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.uc-info {
    flex: 1;
    min-width: 0;
}
.uc-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 15px;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}
.uc-name:hover { color: #427584; text-decoration: underline; }

.uc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    margin-bottom: 4px;
    color: #4b5563;
}
.uc-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.uc-rating { color: #d97706; font-weight: 700; }
.uc-rating small { color: #9ca3af; font-weight: 500; }
.uc-rating.uc-no-rating { color: #9ca3af; font-weight: 500; }
.uc-comp { color: #065f46; font-weight: 600; }
.uc-exp  { color: #6b7280; font-weight: 600; }
.uc-distance { color: #1e40af; font-weight: 700; }

.uc-loc-row {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
}
.uc-loc { font-weight: 500; }

.uc-branches {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}
.uc-branch-chip {
    background: #f0f9ff;
    color: #075985;
    border: 1px solid #bae6fd;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}
.uc-branch-chip.is-more {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
}

.uc-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.uc-btn {
    flex: 1;
    text-align: center;
    padding: 7px 8px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    min-width: 0;
}
.uc-btn-profile {
    background: linear-gradient(135deg, #427584, #5a9ab0);
    color: #fff;
}
.uc-btn-profile:hover { background: linear-gradient(135deg, #2c5160, #427584); color: #fff; }
.uc-btn-phone {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.uc-btn-wa {
    background: #25d366;
    color: #fff;
}

/* SEO Info */
.mta-ustalar-seo-info {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e5e7eb;
}
.mta-ustalar-seo-info h2 {
    font-size: 16px;
    color: #1f2937;
    margin: 0 0 8px;
}
.mta-ustalar-seo-info p {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 10px;
}
.mta-ustalar-seo-info ul {
    margin: 0;
    padding-left: 20px;
}
.mta-ustalar-seo-info li {
    font-size: 12px;
    color: #374151;
    margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   AKIŞ — Gelişmiş Filtre Çubuğu (A3.7)
   ═══════════════════════════════════════════════════════════════════ */
.mta-akis-advanced-filters {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 12px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 6px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}
.mta-akis-search-mini {
    flex: 1;
    min-width: 120px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 7px 12px;
    border-radius: 18px;
    font-size: 12px;
    outline: none;
}
.mta-akis-search-mini::placeholder { color: rgba(255,255,255,0.6); }
.mta-akis-filter-chip {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.mta-akis-filter-chip:hover { background: rgba(255,255,255,0.2); }
.mta-akis-filter-chip.is-active {
    background: linear-gradient(135deg, #427584, #5a9ab0);
    border-color: transparent;
}

/* Trend bölümü (Akış üstü) */
.mta-akis-trend-strip {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-bottom: 2px solid #fbbf24;
    padding: 10px 12px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 8px;
    align-items: center;
}
.mta-akis-trend-label {
    font-size: 11px;
    font-weight: 800;
    color: #78350f;
    flex-shrink: 0;
}
.mta-akis-trend-item {
    background: #fff;
    color: #78350f;
    border: 1px solid #fcd34d;
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mta-akis-trend-item:hover { background: #fef3c7; }

/* Engelle/Şikayet butonları (post overflow menüsü) */
.mta-akis-post-menu-item.is-block { color: #f87171; }
.mta-akis-post-menu-item.is-report { color: #fb923c; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .mta-ustalar-filters,
    .mta-usta-card,
    .mta-ustalar-loading,
    .mta-ustalar-empty,
    .mta-ustalar-seo-info { background: #1f2937; border-color: #374151; }
    .uc-name { color: #f9fafb; }
    .mta-u-select { background: #111827; color: #f9fafb; border-color: #374151; }
    .mta-u-check { background: #111827; color: #f9fafb; border-color: #374151; }
}

/* ════════════════════════════════════════════════════════════════════
   A3.7.1 — HEADER ICON BUTONS + SEARCH BAR + FILTER DRAWER
   ════════════════════════════════════════════════════════════════════ */

/* Header'daki 🔍 ve ⚙️ ikonları */
.mta-akis-icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    padding: 6px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.95;
}
.mta-akis-icon-btn:hover { opacity: 1; }
.mta-akis-filter-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    border: 2px solid #1f2937;
}

/* Search bar — header altında, gizliyken açılan */
.mta-akis-searchbar {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 20;
}
.mta-akis-searchbar-input {
    flex: 1;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 14px;
    border-radius: 22px;
    font-size: 14px;
    outline: none;
}
.mta-akis-searchbar-input::placeholder { color: rgba(255,255,255,0.55); }
.mta-akis-searchbar-input:focus { background: rgba(255,255,255,0.18); border-color: #5a9ab0; }
.mta-akis-searchbar-close {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Filter Drawer — alttan kaydırılan modal */
.mta-akis-filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.mta-akis-fd-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    animation: mta-fd-fade 0.2s ease;
}
.mta-akis-fd-panel {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 20px 20px 0 0;
    padding: 0 0 24px;
    max-height: 80vh;
    overflow-y: auto;
    animation: mta-fd-slide 0.25s ease;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
}
@keyframes mta-fd-fade { from {opacity:0;} to {opacity:1;} }
@keyframes mta-fd-slide { from {transform: translateY(100%);} to {transform: translateY(0);} }

.mta-akis-fd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.mta-akis-fd-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}
.mta-akis-fd-header button {
    background: #f3f4f6;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    color: #6b7280;
}

.mta-akis-fd-section {
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.mta-akis-fd-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.mta-akis-fd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mta-akis-fd-chip {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    color: #374151;
    padding: 9px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mta-akis-fd-chip:hover { background: #f3f4f6; }
.mta-akis-fd-chip.is-active {
    background: linear-gradient(135deg, #427584, #5a9ab0);
    color: #fff;
    border-color: transparent;
}

.mta-akis-fd-footer {
    padding: 16px 20px 0;
}
.mta-akis-fd-apply {
    width: 100%;
    background: linear-gradient(135deg, #427584, #5a9ab0);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.mta-akis-fd-apply:hover { background: linear-gradient(135deg, #2c5160, #427584); }

/* A3.7.1 — Eski advanced filter + trend strip stillerini PASİF ET (DOM'da yok artık) */
.mta-akis-advanced-filters,
.mta-akis-trend-strip { display: none !important; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .mta-akis-fd-panel,
    .mta-akis-fd-header { background: #1f2937; }
    .mta-akis-fd-header h3 { color: #f9fafb; }
    .mta-akis-fd-section { border-color: #374151; }
    .mta-akis-fd-chip { background: #111827; color: #f9fafb; border-color: #374151; }
}

/* ════════════════════════════════════════════════════════════════════
   A4 FIX2 — UI Polish (FAB padding + search visibility + backdrop)
   ════════════════════════════════════════════════════════════════════ */

/* AKIŞ FAB butonu içeriği kapatmasın — Hesabım sayfalarına extra padding */
.mta-h5v2-tab-content,
body.woocommerce-account .woocommerce-MyAccount-content,
body[class*="hesabim"] {
    padding-bottom: 110px !important;
}

/* Mobil bottom-nav var → daha fazla yer */
@media (max-width: 768px) {
    .mta-h5v2-tab-content,
    body.woocommerce-account .woocommerce-MyAccount-content {
        padding-bottom: 140px !important;
    }
}

/* Search bar görünür olsun — header'da overflow visible + z-index */
.mta-akis-header { overflow: visible !important; }
.mta-akis-searchbar {
    position: relative;
    z-index: 30;
}

/* Modal backdrop güçlendirme (Paylaşım Yap modal arkası şeffaf görünüyordu) */
.mta-akis-modal-backdrop,
.mta-akis-share-modal-backdrop {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(4px);
}

/* ════════════════════════════════════════════════════════════════════
   A4 — Akış ↔ Ustalar Section Navigation
   ════════════════════════════════════════════════════════════════════ */
.mta-section-nav {
    display: flex;
    gap: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}
.mta-section-nav-ustalar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.mta-section-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 12px 8px;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 600;
}
.mta-section-nav-ustalar .mta-section-nav-tab {
    color: #6b7280;
}
.mta-section-nav-tab:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.05);
}
.mta-section-nav-ustalar .mta-section-nav-tab:hover {
    color: #427584;
    background: #f9fafb;
}
.mta-section-nav-tab.is-active {
    color: #fff;
    border-bottom-color: #5a9ab0;
    background: rgba(90, 154, 176, 0.15);
}
.mta-section-nav-ustalar .mta-section-nav-tab.is-active {
    color: #427584;
    background: #f0f9ff;
}
.mta-snt-icon { font-size: 18px; line-height: 1; }
.mta-snt-label { font-size: 11px; font-weight: 700; letter-spacing: 0.3px; }
