/* =============================================
   OG Interactive Maps - Public Viewer Styles
   Dark sci-fi tema (Subnautica 2 için ideal)
   ============================================= */

:root {
    --og-map-bg: #0a1929;
    --og-map-sidebar-bg: rgba(8, 18, 32, 0.92);
    --og-map-sidebar-border: rgba(80, 180, 220, 0.15);
    --og-map-text: #d8e6f0;
    --og-map-text-dim: #7a8a99;
    --og-map-accent: #4ec5e0;
    --og-map-accent-glow: rgba(78, 197, 224, 0.4);
    --og-map-found: #f1c40f;
}

/* ===== Liste sayfası ===== */

.og-map-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.og-map-list__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.og-map-list__header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.og-map-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.og-map-card {
    background: #14233a;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.05);
}

.og-map-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.og-map-card__thumb {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.og-map-card__body {
    padding: 1rem 1.2rem 1.2rem;
}

.og-map-card__game {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--og-map-accent);
    font-weight: 600;
}

.og-map-card__body h2 {
    font-size: 1.15rem;
    margin: 0.25rem 0 0.5rem;
}

.og-map-card__body p {
    font-size: 0.9rem;
    color: var(--og-map-text-dim);
    line-height: 1.5;
    margin: 0;
}

.og-map-list__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--og-map-text-dim);
}

/* ===== Harita görüntüleyici ===== */

.og-map {
    position: relative;
    width: 100%;
    height: calc(100vh - 60px); /* OG header height varsayımı */
    display: flex;
    color: var(--og-map-text);
    background: var(--og-map-bg);
    overflow: hidden;
}

.og-map__viewport {
    flex: 1;
    height: 100%;
    background: var(--og-map-bg);
}

.og-map__error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--og-map-text-dim);
    font-size: 1.1rem;
}

/* Sidebar */
.og-map__sidebar {
    width: 320px;
    background: var(--og-map-sidebar-bg);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--og-map-sidebar-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.og-map__sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--og-map-sidebar-border);
}

.og-map__game {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--og-map-accent);
    font-weight: 700;
}

.og-map__sidebar-header h1 {
    font-size: 1.2rem;
    margin: 0.3rem 0 0.5rem;
    line-height: 1.3;
}

.og-map__sidebar-header p {
    font-size: 0.85rem;
    color: var(--og-map-text-dim);
    margin: 0;
    line-height: 1.5;
}

/* Arama */
.og-map__search {
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--og-map-sidebar-border);
}

.og-map__search input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--og-map-text);
    padding: 0.55rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s;
}

.og-map__search input:focus {
    border-color: var(--og-map-accent);
    box-shadow: 0 0 0 3px var(--og-map-accent-glow);
}

/* İlerleme */
.og-map__progress {
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--og-map-sidebar-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.og-map__progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.og-map__progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--og-map-accent), var(--og-map-found));
    transition: width 0.4s ease;
}

.og-map__progress-text {
    font-size: 0.78rem;
    color: var(--og-map-text-dim);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.og-map__reset {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--og-map-text-dim);
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.og-map__reset:hover {
    color: var(--og-map-text);
    border-color: rgba(255,255,255,0.3);
}

/* Kategoriler */
.og-map__categories {
    flex: 1;
    padding: 0.6rem 0.75rem;
    overflow-y: auto;
}

.og-map__category {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}

.og-map__category:hover {
    background: rgba(255,255,255,0.04);
}

.og-map__category input {
    accent-color: var(--cat-color, var(--og-map-accent));
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.og-map__cat-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

.og-map__cat-name {
    flex: 1;
    font-size: 0.88rem;
}

.og-map__cat-count {
    font-size: 0.72rem;
    color: var(--og-map-text-dim);
    background: rgba(255,255,255,0.06);
    padding: 1px 7px;
    border-radius: 8px;
    font-variant-numeric: tabular-nums;
}

/* Footer */
.og-map__sidebar-footer {
    padding: 0.8rem 1.25rem;
    border-top: 1px solid var(--og-map-sidebar-border);
}

.og-map__btn-secondary {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--og-map-text);
    padding: 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color 0.15s, background 0.15s;
}

.og-map__btn-secondary:hover {
    border-color: var(--og-map-accent);
    background: rgba(78, 197, 224, 0.06);
}

/* Sidebar toggle (mobil) */
.og-map__sidebar-toggle {
    display: none;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1001;
    background: rgba(8, 18, 32, 0.9);
    color: var(--og-map-text);
    border: 1px solid var(--og-map-sidebar-border);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Marker ikonları */
.og-map__marker-divicon {
    background: none;
    border: none;
}

.og-map__marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.4), 0 0 10px currentColor;
    margin: 8px;
    transition: transform 0.15s;
}

.leaflet-marker-icon:hover .og-map__marker-dot {
    transform: scale(1.3);
}

.og-map__marker--found {
    filter: grayscale(0.6);
}

/* Popup */
.og-map__popup .leaflet-popup-content-wrapper {
    background: #14233a;
    color: var(--og-map-text);
    border-radius: 10px;
    border: 1px solid var(--og-map-sidebar-border);
}

.og-map__popup .leaflet-popup-tip {
    background: #14233a;
}

.og-map__popup-inner {
    padding: 0.2rem 0.1rem;
}

.og-map__popup-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.og-map__popup-inner h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    color: var(--og-map-text);
}

.og-map__popup-inner img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 0.6rem;
}

.og-map__popup-inner p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--og-map-text-dim);
    margin: 0 0 0.7rem;
}

.og-map__popup-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .8rem;
    background: var(--og-map-accent, #4ec5e0);
    color: #fff !important;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: 0.6rem;
    transition: background .15s, transform .1s;
}

.og-map__popup-link:hover {
    background: var(--og-map-accent-hover, #3aa9c1);
    transform: translateY(-1px);
    text-decoration: none;
}

.og-map__popup-link:active {
    transform: translateY(0);
}

/* Marker → OG Guide rehber kartı (zengin önizleme) */
.og-map__guide-card {
    display: block;
    text-decoration: none !important;
    color: inherit;
    border: 1px solid rgba(78, 197, 224, 0.25);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    background: rgba(78, 197, 224, 0.05);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

.og-map__guide-card:hover {
    border-color: var(--og-map-accent, #4ec5e0);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.og-map__guide-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
}

.og-map__guide-card-body {
    padding: .55rem .7rem .65rem;
}

.og-map__guide-card-label {
    font-size: .65rem;
    letter-spacing: .08em;
    color: var(--og-map-accent, #4ec5e0);
    font-weight: 700;
    margin-bottom: .2rem;
}

.og-map__guide-card-body h4 {
    font-size: .95rem;
    margin: 0 0 .25rem;
    color: var(--og-map-text, #1f2937);
    line-height: 1.25;
}

.og-map__guide-card-body p {
    font-size: .78rem;
    line-height: 1.4;
    color: var(--og-map-text-dim, #6b7280);
    margin: 0 0 .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.og-map__guide-card-link {
    font-size: .78rem;
    color: var(--og-map-accent, #4ec5e0);
    font-weight: 600;
}

/* Sidebar geri dön pill (Hub'a yönlendirme) */
.og-map__back-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .9rem;
    padding: .3rem .7rem;
    background: rgba(78, 197, 224, .12);
    color: var(--og-map-accent, #4ec5e0);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(78, 197, 224, .22);
    transition: background .15s, transform .15s;
}
.og-map__back-pill:hover {
    background: rgba(78, 197, 224, .22);
    transform: translateX(-2px);
    text-decoration: none;
    color: var(--og-map-accent, #4ec5e0);
}

/* Sidebar başlık linki (oyun sayfasına yönlendirme) */
.og-map__title-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity .15s;
}
.og-map__title-link:hover {
    opacity: .85;
    text-decoration: none;
}
.og-map__title-link h1 {
    transition: color .15s;
}
.og-map__title-link:hover h1 {
    color: var(--og-map-accent, #4ec5e0);
}

/* Kategori toggle chevron — accordion açılır/kapanır */
.og-map__cat-toggle {
    background: none;
    border: none;
    color: var(--og-map-text-dim, #94a3b8);
    cursor: pointer;
    padding: 0 .3rem;
    margin-right: .2rem;
    font-size: .7rem;
    transition: transform .2s;
    flex-shrink: 0;
}
.og-map__cat-toggle.expanded {
    transform: rotate(90deg);
}
.og-map__marker-list--collapsed {
    display: none !important;
}

/* Tüm Leaflet kontrolleri (zoom + paylaş) — koyu, saydam, kart tema uyumlu */
.og-map .leaflet-bar {
    background: rgba(15, 23, 42, .82) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}
.og-map .leaflet-bar a,
.og-map .leaflet-bar a:link,
.og-map .leaflet-bar a:visited {
    background: transparent !important;
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    transition: background .15s, color .15s;
}
.og-map .leaflet-bar a:last-child {
    border-bottom: none !important;
}
.og-map .leaflet-bar a:hover {
    background: rgba(78, 197, 224, .18) !important;
    color: var(--og-map-accent, #4ec5e0) !important;
}
.og-map .leaflet-bar a.leaflet-disabled {
    color: rgba(226, 232, 240, .3) !important;
}

/* Paylaş butonu — zoom +/− ile aynı font-size, sade unicode sembol */
.og-map__share-ctl a {
    font-size: 18px !important;
    line-height: 30px !important;
    text-decoration: none !important;
    font-weight: 700;
}
.og-map__share-ctl--copied {
    background: rgba(34, 197, 94, .25) !important;
    color: #4ade80 !important;
}

/* =============================================
   İnteraktif Haritalar Hub & GameMaps sayfası
   ============================================= */
.og-map-hub {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
    color: var(--og-text-primary, #1f2937);
}

.og-map-hub__breadcrumb {
    font-size: .8rem;
    color: var(--og-text-muted, #6b7280);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}
.og-map-hub__breadcrumb a {
    color: var(--og-text-muted, #6b7280);
    text-decoration: none;
    transition: color .15s;
}
.og-map-hub__breadcrumb a:hover {
    color: #378ADD;
}

.og-map-hub__hero {
    background: linear-gradient(135deg, #1a2332 0%, #0a1929 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 2px solid #378ADD;
    box-shadow: 0 8px 28px rgba(55, 138, 221, .2);
}
.og-map-hub__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(55, 138, 221, .25), transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(78, 197, 224, .15), transparent 60%);
    pointer-events: none;
}
.og-map-hub__hero-inner {
    position: relative;
    z-index: 1;
}
.og-map-hub__hero .og-map-hub__breadcrumb,
.og-map-hub__hero .og-map-hub__breadcrumb a {
    color: rgba(255,255,255,.65);
}
.og-map-hub__hero .og-map-hub__breadcrumb a:hover {
    color: #4ec5e0;
}
.og-map-hub__hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 .8rem;
    line-height: 1.15;
    letter-spacing: -.5px;
}
.og-map-hub__hero p {
    font-size: 1rem;
    color: rgba(255,255,255,.78);
    line-height: 1.55;
    max-width: 680px;
    margin: 0;
}
.og-map-hub__hero-game-link {
    color: #fff;
    text-decoration: none;
    transition: color .15s;
}
.og-map-hub__hero-game-link:hover {
    color: #4ec5e0;
}
.og-map-hub__hero-subtitle {
    color: rgba(255,255,255,.6);
    font-weight: 400;
    margin-left: .35rem;
}

/* GameMaps hero'da açıklama tek satırda sığsın (geniş ekranda). Mobilde doğal kırılır. */
.og-map-hub__hero--game p {
    max-width: none;
}
@media (min-width: 768px) {
    .og-map-hub__hero--game p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
.og-map-hub__stats {
    margin-top: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .9rem;
    color: rgba(255,255,255,.7);
}
.og-map-hub__stats strong {
    color: #4ec5e0;
    font-weight: 700;
    font-size: 1.05rem;
    margin-right: .3rem;
}
.og-map-hub__stats-sep {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,.2);
}

.og-map-hub__game-block {
    margin-bottom: 3rem;
}
.og-map-hub__game-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.og-map-hub__game-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--og-text-primary, #1f2937);
    margin: 0;
}
.og-map-hub__game-header h2 a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}
.og-map-hub__game-header h2 a:hover {
    color: #378ADD;
}
.og-map-hub__game-all {
    font-size: .85rem;
    font-weight: 600;
    color: #378ADD;
    text-decoration: none;
    transition: opacity .15s;
}
.og-map-hub__game-all:hover {
    opacity: .75;
    text-decoration: none;
}

.og-map-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}
.og-map-hub__card {
    display: flex;
    flex-direction: column;
    background: var(--og-card-inner-bg, #fff);
    border: 2px solid #378ADD;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 12px rgba(55, 138, 221, .12);
}
.og-map-hub__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(55, 138, 221, .28);
    text-decoration: none;
}
.og-map-hub__card-thumb {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}
.og-map-hub__card-body {
    padding: 1rem 1.1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.og-map-hub__card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--og-text-primary, #1f2937);
    margin: 0 0 .4rem;
    line-height: 1.25;
}
.og-map-hub__card-body p {
    font-size: .85rem;
    color: var(--og-text-muted, #6b7280);
    line-height: 1.45;
    margin: 0 0 .8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.og-map-hub__card-cta {
    font-size: .85rem;
    color: #378ADD;
    font-weight: 600;
    margin-top: auto;
    padding-top: .2rem;
}

/* Harita & Dünya intro (GameMaps sayfası) */
.og-map-hub__intro {
    background: var(--og-card-inner-bg, #fff);
    border: 1px solid var(--og-card-border, rgba(0,0,0,.08));
    border-left: 4px solid #378ADD;
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.og-map-hub__intro h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--og-text-primary, #1f2937);
    margin: 0 0 .7rem;
    letter-spacing: -.3px;
}
.og-map-hub__intro-body {
    color: var(--og-text-secondary, #4b5563);
    line-height: 1.65;
    font-size: .95rem;
}
.og-map-hub__intro-body p { margin: 0 0 .8rem; }
.og-map-hub__intro-body p:last-child { margin-bottom: 0; }
.og-map-hub__intro-body a {
    color: #378ADD;
    text-decoration: none;
}
.og-map-hub__intro-body a:hover { text-decoration: underline; }

.og-map-hub__section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--og-text-primary, #1f2937);
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--og-card-border, rgba(0,0,0,.08));
}

.og-map-hub__empty {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--og-text-muted, #6b7280);
}
.og-map-hub__empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.og-map-hub__empty h2 {
    font-size: 1.4rem;
    color: var(--og-text-primary, #1f2937);
    margin: 0 0 .6rem;
}

@media (max-width: 640px) {
    .og-map-hub__hero {
        padding: 1.8rem 1.3rem 1.5rem;
    }
    .og-map-hub__hero h1 {
        font-size: 1.6rem;
    }
    .og-map-hub__hero p {
        font-size: .9rem;
    }
    .og-map-hub__grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
}

.og-map__popup-btn {
    width: 100%;
    background: rgba(78, 197, 224, 0.1);
    border: 1px solid rgba(78, 197, 224, 0.3);
    color: var(--og-map-accent);
    padding: 0.45rem 0.7rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: background 0.15s;
}

.og-map__popup-btn:hover {
    background: rgba(78, 197, 224, 0.2);
}

/* Leaflet controls override */
.leaflet-control-zoom a {
    background: rgba(8, 18, 32, 0.9) !important;
    color: var(--og-map-text) !important;
    border: 1px solid var(--og-map-sidebar-border) !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(78, 197, 224, 0.15) !important;
}

/* ===== Mobil ===== */
@media (max-width: 768px) {
    .og-map__sidebar {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        width: 280px;
        max-width: 85%;
    }

    .og-map__sidebar--open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    }

    .og-map__sidebar-toggle {
        display: block;
    }
}
