/**
 * Bölge/ülke seçim penceresi + Nerede İzlenir watch-region + providers
 * Navbar bölge öğesi sadece navbar.css içinde tanımlanır (tüm sayfalarda aynı tasarım).
 */

/* Nerede İzlenir? – ülke satırı (tüm satır tıklanabilir, bölge seçimi açar) */
.watch-region-row,
#watch-region-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0;
    flex-wrap: nowrap;
    cursor: default;
}
.watch-region-row:hover .watch-region-label,
#watch-region-row:hover .watch-region-label { opacity: 1; }
.watch-region-label {
    font-size: 12px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: normal !important;
    color: rgba(255,255,255,0.72);
    opacity: .95;
}
.watch-region-btn,
#watch-region-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
    font-size: 12px;
}
.watch-region-btn:hover,
#watch-region-btn:hover { background: rgba(255,255,255,0.12); }
.watch-region-flag,
#watch-region-flag { font-size: 16px; line-height: 1; }
.watch-region-name,
#watch-region-name {
    font-size: 12px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
}
.watch-region-caret { font-size: 12px; opacity: .7; }

/* Nerede İzlenir üst bar */
.providers-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    flex: 0 0 100%;
    width: 100%;
}
.providers-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}
.providers-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    font-size: 12px;
    color: rgba(255,255,255,0.78);
}
.providers-meta-text {
    font-size: 12px;
    opacity: .85;
    color: rgba(255,255,255,0.72);
}
.providers-feedback {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.providers-feedback-text {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
.providers-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.24);
    background: transparent;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    cursor: pointer;
}
.providers-feedback-btn i {
    font-size: 13px;
}
.providers-feedback-btn:hover {
    background: rgba(255,255,255,0.06);
}
.providers-region-slot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.provider-item.provider-item--compact {
    padding: 6px 10px;
    border-radius: 999px;
}
.provider-item.provider-item--static {
    cursor: default;
}

/* Ülke seçim penceresi – Netflix/Disney+ tarzı sade, profesyonel modal */
#country-modal {
    display: none;
}
#country-modal.is-open,
.country-modal.is-open {
    display: flex !important;
    visibility: visible !important;
    z-index: 10000;
}
.country-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
.country-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.country-modal-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: min(85vh, 640px);
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.country-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
    flex-shrink: 0;
}
.country-modal-actions { display: flex; align-items: center; gap: 8px; }
.country-help { position: relative; display: inline-flex; align-items: center; }
.country-help-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: color 0.15s ease, background 0.15s ease;
}
.country-help-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.country-help-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, 82vw);
    padding: 12px 14px;
    border-radius: 8px;
    background: #2f2f2f;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    line-height: 1.45;
    z-index: 2;
    display: none;
}
.country-help:hover .country-help-tooltip,
.country-help:focus-within .country-help-tooltip { display: block; }
.alert-dont-show {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}
.alert-dont-show input { width: 14px; height: 14px; }
#alert-dont-show-wrap {
    display: none;
}
.country-modal-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}
.country-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.15s ease, background 0.15s ease;
}
.country-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
/* Kısa açıklama: ülke seçiminin ne işe yaradığı */
.country-modal-subtitle {
    margin: 12px 24px 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 400;
    flex-shrink: 0;
}
.country-modal-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}
.country-modal-search i {
    font-size: 18px;
    flex-shrink: 0;
}
.country-modal-search input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.country-modal-search input::placeholder {
    color: rgba(255,255,255,0.4);
}
.country-modal-search input:focus {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
}
/* Bölge penceresi arama kutusundaki mavi çarpı (temizle) butonunu gizle */
.country-modal-search input::-webkit-search-cancel-button,
.country-modal-search input::-webkit-search-decoration { display: none !important; -webkit-appearance: none !important; }
.country-modal-search input::-moz-search-cancel-button { display: none !important; }
.country-modal-list {
    padding: 0 16px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 120px;
}
/* Ülke satırları – sade hover, net seçili durum */
.country-modal-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    transition: background 0.15s ease;
}
@media (hover: hover) {
    .country-modal-item:hover {
        background: rgba(255,255,255,0.06) !important;
    }
}
.country-modal-item.active {
    background: rgba(255,255,255,0.08) !important;
}
.country-modal-flag {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.country-modal-name {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.92) !important;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Dil ve Bölge sekmeler */
.country-modal-tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0;
    flex-shrink: 0;
}
.country-modal-tab {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    font-family: Inter, system-ui, sans-serif !important;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.country-modal-tab:hover { color: rgba(255,255,255,0.85); }
.country-modal-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}
.country-modal-info-row {
    margin: 0 0 14px;
    padding: 0 24px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.6);
}
.country-modal-body {
    padding: 20px 0 20px;
    max-height: 52vh;
    overflow-y: auto;
}
.country-modal-panel { display: block; padding: 0 24px; }
.country-modal-panel.u-hidden { display: none !important; }
.country-modal-panel .country-modal-search { margin-bottom: 12px; padding-left: 0; padding-right: 0; }
.country-modal-panel--language .country-modal-list { min-height: 120px; padding-left: 0; padding-right: 0; }
.country-modal-item[data-locale] { border: none; }
.country-modal-item .country-modal-name { flex: 1; }

/* Basit görünüm: başlık + açıklama + arama + liste */
.country-modal-simple {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}
.country-modal-simple.u-hidden { display: none !important; }
.country-modal-question {
    margin: 0 24px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.3;
    flex-shrink: 0;
}
.country-modal-simple .country-modal-search { flex-shrink: 0; }
.country-modal-simple .country-modal-list {
    flex: 1;
    min-height: 140px;
    overflow-y: auto;
}
.country-modal-footer-link-wrap {
    margin: 0;
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.country-modal-advanced-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
    transition: color 0.15s ease;
}
.country-modal-advanced-link:hover { color: #fff; }
.country-modal-advanced { display: block; }
.country-modal-advanced.u-hidden { display: none !important; }
.country-modal-back-btn {
    margin-right: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.country-modal-back-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.3);
}
.country-modal-back-btn.u-hidden { display: none !important; }

/* İlk giriş bölge bildirimi – Netflix/Disney+ tarzı modal */
.region-first-visit-wrap {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
.region-first-visit-wrap.u-hidden { display: none !important; }
.region-first-visit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.region-first-visit-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 32px 28px 28px;
    background: #181818;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.region-first-visit-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    transition: color 0.15s ease, background 0.15s ease;
}
.region-first-visit-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.region-first-visit-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.region-first-visit-text {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.region-first-visit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.region-first-visit-change {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    background: rgb(var(--brand-rgb));
    color: #fff;
    cursor: pointer;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    transition: filter 0.2s ease;
}
.region-first-visit-change:hover {
    filter: brightness(1.08);
}
