﻿/* Harita Eleme — haritaoy.css kart/grid stillerini kullanır; ek override'lar */

#heMapGrid .harita-kutu.he-anim-highlight {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 0 40px rgba(139, 92, 246, 0.85),
        0 10px 30px rgba(139, 92, 246, 0.5);
    z-index: 5;
}

#heMapGrid .harita-kutu.he-anim-highlight .harita-resim {
    filter: brightness(1.05);
}

/* --- Eleme modları & modal --- */

.he-intro {
    line-height: 1.6;
}

.he-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.he-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(19, 19, 24, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
}

.he-mode-btn i {
    font-size: 1.5rem;
    color: #667eea;
}

.he-mode-btn:hover {
    border-color: rgba(102, 126, 234, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
}

.he-mode-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.he-mode-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
}

.he-status-bar {
    text-align: center;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.he-lists-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.he-list-block {
    flex: 1;
    min-width: 240px;
    max-width: 480px;
}

.he-list-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
}

.he-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.he-chip {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.he-chip-elendi {
    background: rgba(245, 87, 108, 0.2);
    border: 1px solid rgba(245, 87, 108, 0.45);
    color: #fca5a5;
}

.he-chip-onay {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
}

.he-harita-sonuc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 640px) {
    .he-harita-sonuc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .he-harita-sonuc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .he-harita-sonuc-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.he-harita-sonuc-item {
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
}

.he-harita-sonuc-item .secilen-harita-header img {
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
}

.he-harita-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}

.he-harita-badge-elendi {
    background: rgba(245, 87, 108, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(245, 87, 108, 0.4);
}

.he-harita-badge-kalan,
.he-harita-badge-onay {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.45);
}

.he-harita-badge-bosta {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.45);
}

.he-harita-badge-secildi {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.45);
}

.he-harita-elendi {
    border-left: 3px solid #f5576c;
}

.he-harita-kalan,
.he-harita-onay {
    border-left: 3px solid #10b981;
}

.he-harita-bosta {
    border-left: 3px solid #fbbf24;
}

.he-harita-bosta-kutu .harita-resim {
    filter: brightness(0.85) sepia(0.25) saturate(1.4) hue-rotate(-8deg);
}

.harita-bosta-kutucuk {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
}

.he-harita-secildi {
    border-left: 3px solid #fbbf24;
}

.he-sonuc-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 1.5rem 0 0.75rem;
    text-align: left;
}

.he-sonuc-section-title:first-child {
    margin-top: 0;
}

.he-sonuc-section {
    margin-bottom: 0.5rem;
}

.he-sonuc-body {
    text-align: left;
}

#heElenenPanel,
#heOnayPanel,
#heSonucPanel .sonuclar-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#heOylamaSiralama .he-oy-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
}

#heOylamaSiralama .he-oy-count {
    color: #667eea;
    font-weight: 700;
}

.he-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.he-modal.open {
    display: flex;
}

.he-modal-content {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: linear-gradient(145deg, #1a1a1f, #131318);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    color: #fff;
    color-scheme: dark;
}

.he-modal-content label,
.he-modal-content h3,
.he-modal-content p {
    color: inherit;
}

.he-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.35rem;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.he-modal-close:hover {
    background: rgba(245, 87, 108, 0.18);
    border-color: rgba(245, 87, 108, 0.45);
    color: #fca5a5;
}

.he-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.he-modal-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.he-kaptan-row {
    margin-bottom: 1rem;
}

.he-kaptan-row label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.75);
}

.he-search-wrap {
    position: relative;
}

.he-search-input,
.he-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    background: rgb(19, 19, 24);
    color: #fff;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.he-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.he-search-input:focus,
.he-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.65);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.he-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: rgb(19, 19, 24);
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 10px;
    z-index: 10002;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    scrollbar-color: rgba(102, 126, 234, 0.5) rgb(19, 19, 24);
    scrollbar-width: thin;
}

.he-search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.he-search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.45);
    border-radius: 999px;
}

.he-search-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-align: left;
    font-size: 0.88rem;
    transition: background 0.15s ease;
}

.he-search-item:last-child {
    border-bottom: none;
}

.he-search-item:hover,
.he-search-item:focus-visible {
    background: rgba(102, 126, 234, 0.22);
    outline: none;
}

.he-search-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.he-search-item-name {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.he-search-empty {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

/* Ã–zel select â€” native select yerine koyu tema */
.he-custom-select {
    position: relative;
}

.he-custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    background: rgb(19, 19, 24);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.he-custom-select-trigger:hover,
.he-custom-select.is-open .he-custom-select-trigger {
    border-color: rgba(102, 126, 234, 0.65);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.he-custom-select-label {
    color: rgba(255, 255, 255, 0.95);
}

.he-custom-select-chevron {
    font-size: 0.72rem;
    color: rgba(102, 126, 234, 0.9);
    transition: transform 0.2s ease;
}

.he-custom-select.is-open .he-custom-select-chevron {
    transform: rotate(180deg);
}

.he-custom-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 10002;
    background: rgb(19, 19, 24);
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.he-custom-select.is-open .he-custom-select-menu {
    display: block;
}

.he-custom-select-option {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.he-custom-select-option:last-child {
    border-bottom: none;
}

.he-custom-select-option:hover,
.he-custom-select-option:focus-visible,
.he-custom-select-option.is-active {
    background: rgba(102, 126, 234, 0.22);
    color: #fff;
    outline: none;
}

.he-custom-select-option.is-active {
    box-shadow: inset 3px 0 0 #667eea;
}

.he-selected-user {
    margin-top: 0.35rem;
}

.he-modal-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.he-modal-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}

.he-modal-submit:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(102, 126, 234, 0.45);
}

.he-modal-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.he-modal-submit:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(102, 126, 234, 0.25),
        0 4px 16px rgba(102, 126, 234, 0.35);
}

.he-modal-submit i {
    font-size: 0.9rem;
}

.he-sonuc-img {
    width: 100%;
    max-width: 360px;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 3px solid #fbbf24;
}

.he-onay-sonuc {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem;
}

.he-onay-sonuc img {
    width: 120px;
    border-radius: 8px;
    margin-bottom: 0.35rem;
}

@media (max-width: 768px) {
    .he-mode-grid {
        grid-template-columns: 1fr;
    }
}
