/* Harita Eleme — Imperial tema (haritaoy-imperial üzerine) */

body.haritaeleme-imperial:not(.haritaeleme-voting-open) {
    min-height: auto;
}

body.haritaeleme-imperial:not(.haritaeleme-voting-open) .tk-page-shell.ho-shell {
    min-height: auto;
}

body.haritaeleme-imperial:not(.haritaeleme-voting-open) .haritaoy-main-column {
    min-height: auto;
    padding-bottom: 2rem;
}

.haritaeleme-imperial .he-intro {
    color: var(--ho-ink-soft, rgba(247, 244, 237, 0.78));
}

.haritaeleme-imperial .he-mode-btn {
    background: var(--ho-bg-card, linear-gradient(165deg, rgba(20, 22, 30, 0.96) 0%, rgba(12, 14, 20, 0.98) 100%));
    border: 1px solid var(--ho-line, rgba(247, 244, 237, 0.10));
    border-radius: var(--ho-radius, 16px);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.haritaeleme-imperial .he-mode-btn i,
.haritaeleme-imperial .he-mode-btn iconify-icon {
    color: var(--ho-gold, #d4af37);
}

.haritaeleme-imperial .he-mode-btn:hover {
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.12);
}

.haritaeleme-imperial .he-mode-desc {
    color: var(--ho-ink-mute, rgba(247, 244, 237, 0.55));
}

.haritaeleme-imperial .he-status-bar {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--ho-ink, #f7f4ed);
    border-radius: var(--ho-radius, 16px);
}

.haritaeleme-imperial .he-modal-content {
    background: var(--ho-bg-card);
    border: 1px solid var(--ho-line);
    border-radius: var(--ho-radius, 16px);
}

.haritaeleme-imperial .he-modal-title {
    color: var(--ho-gold-warm, #f5d76e);
}

.haritaeleme-imperial .he-input,
.haritaeleme-imperial .he-search-input,
.haritaeleme-imperial .he-custom-select-trigger {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--ho-line);
    color: var(--ho-ink);
    border-radius: 10px;
}

.haritaeleme-imperial .he-modal-submit {
    background: linear-gradient(135deg, var(--ho-gold) 0%, #b8941f 100%);
    color: #0c0d12;
    font-weight: 700;
    border: none;
    border-radius: 10px;
}

/* Sıra / kaptan yan panel öğeleri */
.he-sira-panel-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--ho-line, rgba(247, 244, 237, 0.10));
    background: rgba(0, 0, 0, 0.22);
    margin-bottom: 0.5rem;
}

.he-sira-panel-item.is-active {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.12);
}

.he-sira-panel-item.is-next {
    border-color: rgba(15, 112, 96, 0.45);
    background: rgba(15, 112, 96, 0.08);
}

.he-sira-panel-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.he-sira-panel-detay {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.he-sira-panel-isim {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ho-ink, #f7f4ed);
}

.he-sira-panel-alt {
    font-size: 0.78rem;
    color: var(--ho-ink-mute, rgba(247, 244, 237, 0.55));
}

.he-sira-panel-badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--ho-gold-warm, #f5d76e);
    flex-shrink: 0;
}

.he-sira-panel-badge.is-next-badge {
    background: rgba(15, 112, 96, 0.25);
    color: #6ee7c4;
}

.he-durum-kart {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--ho-line);
    background: rgba(0, 0, 0, 0.22);
    margin-bottom: 0.65rem;
}

.he-durum-kart-baslik {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ho-ink-mute);
    margin-bottom: 0.35rem;
}

.he-durum-kart-deger {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ho-gold-warm, #f5d76e);
}

.haritaeleme-imperial #heMapGrid .harita-kutu.he-anim-highlight {
    box-shadow:
        0 0 40px rgba(212, 175, 55, 0.55),
        0 10px 30px rgba(212, 175, 55, 0.25);
}

/* Yan panel — kompakt harita listeleri */
.haritaeleme-imperial .he-panel-alt-baslik {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ho-ink-mute, rgba(247, 244, 237, 0.55));
    margin: 0.75rem 0 0.45rem;
    flex-shrink: 0;
}

.haritaeleme-imperial .he-panel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    flex-shrink: 0;
}

.haritaeleme-imperial .he-durum-kart--compact {
    padding: 0.55rem 0.65rem;
    margin-bottom: 0;
}

.haritaeleme-imperial .he-durum-kart--inline {
    margin: 0.5rem 0 0.65rem;
    padding: 0.65rem 0.75rem;
}

.haritaeleme-imperial .he-durum-kart-deger--sm {
    font-size: 0.88rem;
}

.haritaeleme-imperial .haritaoy-yan-panel .he-panel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.haritaeleme-imperial .haritaoy-yan-panel-sol .he-panel-scroll--alt,
.haritaeleme-imperial .haritaoy-yan-panel-sag .he-panel-scroll--compact {
    flex: 0 1 auto;
    max-height: min(26dvh, 200px);
}

.haritaeleme-imperial .he-panel-kaptan-list {
    flex: 0 1 auto;
    max-height: none;
}

.haritaeleme-imperial .he-panel-sira-ozet {
    flex: 0 1 auto;
    max-height: none;
    overflow: visible;
}

.haritaeleme-imperial .he-panel-harita-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.haritaeleme-imperial .he-panel-harita-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--ho-line, rgba(247, 244, 237, 0.10));
    background: rgba(0, 0, 0, 0.22);
}

.haritaeleme-imperial .he-panel-harita-item img {
    width: 52px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.haritaeleme-imperial .he-panel-harita-detay {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.haritaeleme-imperial .he-panel-harita-isim {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ho-ink, #f7f4ed);
    line-height: 1.2;
}

.haritaeleme-imperial .he-panel-harita-alt {
    font-size: 0.72rem;
    color: var(--ho-ink-mute, rgba(247, 244, 237, 0.55));
    line-height: 1.25;
}

.haritaeleme-imperial .he-panel-harita-badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    margin-bottom: 0.1rem;
}

.haritaeleme-imperial .he-panel-harita-badge-elendi {
    background: rgba(245, 87, 108, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(245, 87, 108, 0.35);
}

.haritaeleme-imperial .he-panel-harita-badge-kalan,
.haritaeleme-imperial .he-panel-harita-badge-onay,
.haritaeleme-imperial .he-panel-harita-badge-secildi {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.haritaeleme-imperial .he-panel-harita-badge-bosta {
    background: rgba(251, 191, 36, 0.16);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.haritaeleme-imperial .he-panel-harita-elendi {
    border-left: 2px solid #f5576c;
}

.haritaeleme-imperial .he-panel-harita-kalan,
.haritaeleme-imperial .he-panel-harita-onay,
.haritaeleme-imperial .he-panel-harita-secildi {
    border-left: 2px solid #10b981;
}

.haritaeleme-imperial .he-panel-harita-bosta {
    border-left: 2px solid #fbbf24;
}

/* Sonuç — kompakt orta özet */
.haritaeleme-imperial #heSonucPanel .sonuclar-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.25rem 1rem 1.5rem;
}

.haritaeleme-imperial #heSonucPanel .sonuclar-container > h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin-bottom: 0.75rem;
}

.haritaeleme-imperial .he-sonuc-ozet {
    text-align: center;
}

.haritaeleme-imperial .he-sonuc-ozet-mod {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ho-gold-warm, #f5d76e);
    letter-spacing: 0.04em;
}

.haritaeleme-imperial .he-sonuc-ozet-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.haritaeleme-imperial .he-sonuc-ozet-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 64px;
}

.haritaeleme-imperial .he-sonuc-ozet-stat-deger {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    color: var(--ho-ink, #f7f4ed);
}

.haritaeleme-imperial .he-sonuc-ozet-stat-etiket {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ho-ink-mute, rgba(247, 244, 237, 0.55));
}

.haritaeleme-imperial .he-sonuc-vurgu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.haritaeleme-imperial .he-sonuc-vurgu-kart {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
    min-width: min(100%, 220px);
    max-width: 280px;
}

.haritaeleme-imperial .he-sonuc-vurgu-kart img {
    width: 72px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.haritaeleme-imperial .he-sonuc-vurgu-detay {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
}

.haritaeleme-imperial .he-sonuc-vurgu-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--ho-gold-warm, #f5d76e);
}

.haritaeleme-imperial .he-sonuc-vurgu-isim {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ho-ink, #f7f4ed);
}

.haritaeleme-imperial .he-sonuc-vurgu-alt {
    font-size: 0.72rem;
    color: var(--ho-ink-mute, rgba(247, 244, 237, 0.55));
}

.haritaeleme-imperial .he-sonuc-ozet-not {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--ho-ink-soft, rgba(247, 244, 237, 0.78));
    font-size: 0.82rem;
    line-height: 1.4;
}

.haritaeleme-imperial .he-sonuc-ozet-not iconify-icon {
    color: var(--ho-gold-warm, #f5d76e);
    flex-shrink: 0;
}

.haritaeleme-imperial #heSonucPanel .buton-container-wrapper {
    margin-top: 1.25rem;
    padding-top: 0;
}

/* Sonuç modu — tüm modlarda yan paneller içeriğe göre kısalsın, gereksiz scroll olmasın */
body.haritaeleme-imperial.haritaeleme-results-open {
    min-height: auto;
}

body.haritaeleme-imperial.haritaeleme-results-open .tk-page-shell.ho-shell {
    min-height: auto;
}

body.haritaeleme-imperial.haritaeleme-results-open .haritaoy-main-column {
    min-height: auto;
    padding-bottom: 2rem;
}

body.haritaeleme-imperial.haritaeleme-results-open .haritaoy-page-layout.haritaoy-admin-layout {
    align-items: start;
}

body.haritaeleme-imperial.haritaeleme-results-open .haritaoy-page-layout.haritaoy-admin-layout .haritaoy-yan-panel {
    height: auto;
    min-height: 0;
    max-height: none;
}

body.haritaeleme-imperial.haritaeleme-results-open .haritaoy-yan-panel .oy-panel-icerik,
body.haritaeleme-imperial.haritaeleme-results-open .haritaoy-yan-panel .he-panel-scroll {
    flex: 0 1 auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
}

body.haritaeleme-imperial.haritaeleme-results-open #heSonucPanel,
body.haritaeleme-imperial.haritaeleme-results-open #heSonucPanel .sonuclar-container,
body.haritaeleme-imperial.haritaeleme-results-open .he-sonuc-body {
    overflow: visible;
}
