/* ===== BAŞIBOŞ KÖPEK HARİTASI v10.0 ===== */

.bkh-kayit-container,
.bkh-istatistik-container,
.bkh-sehir-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.bkh-kayit-header h3,
.bkh-istatistik-header h3,
.bkh-sehir-header h3 {
    font-size: 1.4rem;
    margin: 0 0 5px 0;
    color: #c0392b;
    font-weight: 700;
}

.bkh-kayit-alt,
.bkh-istatistik-alt,
.bkh-sehir-alt {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0 0 15px 0;
}

/* ===== SES BUTONU ===== */
.bkh-ses-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #c0392b;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bkh-ses-btn:hover {
    transform: scale(1.1);
    background: #a93226;
}

.bkh-ses-btn:active {
    transform: scale(0.95);
}

.bkh-ses-btn.mute {
    background: #7f8c8d;
}

/* Konum Durum */
.bkh-konum-durum {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.bkh-konum-durum.basari {
    background: #d4edda;
    border-color: #28a745;
}

.bkh-konum-durum.hata {
    background: #f8d7da;
    border-color: #dc3545;
}

.bkh-durum-icon {
    font-size: 1.3rem;
}

/* Harita */
#bkh-kayit-harita,
#bkh-istatistik-harita,
#bkh-sehir-harita-mini {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

/* Form */
#bkh-kayit-form {
    animation: fadeIn 0.5s ease;
}

.bkh-form-group {
    margin-bottom: 14px;
}

.bkh-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.bkh-form-group input,
.bkh-form-group textarea,
.bkh-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
    min-height: 44px;
}

.bkh-form-group input:focus,
.bkh-form-group textarea:focus,
.bkh-form-group select:focus {
    outline: none;
    border-color: #c0392b;
}

.bkh-input-readonly {
    background: #f8f9fa !important;
    color: #666;
}

/* Form Row - Yan yana inputlar */
.bkh-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.bkh-form-yari {
    flex: 1;
    margin-bottom: 0 !important;
}

.bkh-form-yari input {
    text-align: center;
    font-weight: 600;
}

/* Fotoğraf */
.bkh-foto-alan {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
    min-height: 44px;
}

.bkh-foto-alan:hover {
    border-color: #c0392b;
    background: #fdf2f2;
}

.bkh-foto-alan.has-image {
    border-style: solid;
    border-color: #28a745;
    padding: 5px;
}

.bkh-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.bkh-foto-onizleme {
    position: relative;
    z-index: 1;
}

.bkh-foto-onizleme img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.bkh-foto-placeholder {
    color: #999;
    font-size: 0.9rem;
}

/* Buton */
.bkh-btn-kaydet {
    width: 100%;
    padding: 16px;
    background: #c0392b;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 5px;
    min-height: 56px;
}

.bkh-btn-kaydet:hover {
    background: #a93226;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.bkh-btn-kaydet:active {
    transform: translateY(0);
}

.bkh-btn-kaydet:disabled {
    opacity: 0.7;
    cursor: wait;
}

.bkh-btn-icon {
    font-size: 1.2rem;
}

/* ===== BİLGİ KUTUSU (BÜYÜK) ===== */
.bkh-bilgi-kutu {
    background: #f8f9fa;
    border-left: 4px solid #c0392b;
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #555;
    margin-top: 15px;
}

.bkh-bilgi-kutu-buyuk {
    background: linear-gradient(135deg, #fdf2f2 0%, #f8f9fa 100%);
    border: 2px solid #c0392b;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.bkh-bilgi-satir {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.bkh-bilgi-satir:last-child {
    border-bottom: none;
}

.bkh-bilgi-satir strong {
    color: #c0392b;
}

/* Şehir Listesi */
.bkh-sehir-liste {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.bkh-sehir-liste li {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 15px;
    font-size: 0.95rem;
    color: #333;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bkh-sehir-liste li:hover {
    border-color: #c0392b;
    color: #c0392b;
    background: #fdf2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.15);
}

.bkh-sehir-liste li::after {
    content: '🗺️';
    display: block;
    font-size: 1.2rem;
    margin-top: 4px;
    opacity: 0.6;
}

.bkh-sehir-yukleniyor {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-style: italic;
    cursor: default !important;
}

.bkh-sehir-yukleniyor:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Modal */
.bkh-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    animation: fadeIn 0.2s ease;
}

.bkh-modal-icerik {
    background: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.bkh-modal-kapat {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bkh-modal-kapat:hover {
    color: #c0392b;
}

.bkh-modal-icerik h4 {
    margin: 0 0 15px 0;
    color: #c0392b;
    font-size: 1.2rem;
}

/* Fare Takip Marker */
.bkh-cursor-marker {
    background: #c0392b;
    border: 3px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 10px rgba(192, 57, 43, 0.5);
    pointer-events: none;
    z-index: 1000;
}

/* Leaflet Popup */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    padding: 12px 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 250px;
}

.leaflet-popup-content strong {
    color: #c0392b;
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.leaflet-popup-content img {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 8px;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== MOBİL OPTİMİZASYON ===== */
@media (max-width: 768px) {
    .bkh-kayit-container,
    .bkh-istatistik-container,
    .bkh-sehir-container {
        padding: 10px;
    }

    .bkh-kayit-header h3,
    .bkh-istatistik-header h3,
    .bkh-sehir-header h3 {
        font-size: 1.3rem;
    }

    #bkh-kayit-harita,
    #bkh-sehir-harita-mini {
        height: 300px !important;
    }

    #bkh-istatistik-harita {
        height: 400px !important;
    }

    .bkh-form-row {
        flex-direction: column;
        gap: 14px;
    }

    .bkh-form-yari {
        width: 100%;
    }

    .bkh-form-group input,
    .bkh-form-group textarea,
    .bkh-form-group select {
        padding: 14px;
        font-size: 1.05rem;
        min-height: 48px;
    }

    .bkh-btn-kaydet {
        padding: 16px;
        font-size: 1.1rem;
        min-height: 56px;
    }

    .bkh-sehir-liste {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .bkh-sehir-liste li {
        padding: 14px 10px;
        font-size: 0.95rem;
        min-height: 56px;
    }

    .bkh-modal-icerik {
        margin: 10% auto;
        width: 95%;
        padding: 15px;
    }

    .bkh-foto-alan {
        padding: 18px;
        min-height: 56px;
    }

    .bkh-ses-btn {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
        bottom: 15px;
        right: 15px;
    }

    .bkh-bilgi-kutu-buyuk {
        padding: 12px;
    }

    .bkh-bilgi-satir {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .bkh-sehir-liste {
        grid-template-columns: repeat(2, 1fr);
    }

    #bkh-kayit-harita,
    #bkh-sehir-harita-mini {
        height: 280px !important;
    }

    #bkh-istatistik-harita {
        height: 350px !important;
    }

    .bkh-form-group input,
    .bkh-form-group textarea,
    .bkh-form-group select {
        font-size: 16px;
    }

    .bkh-btn-kaydet {
        font-size: 1.05rem;
    }
}

/* Dokunmatik cihazlarda hover yerine active */
@media (hover: none) {
    .bkh-sehir-liste li:hover {
        transform: none;
        box-shadow: none;
    }

    .bkh-sehir-liste li:active {
        border-color: #c0392b;
        background: #fdf2f2;
    }

    .bkh-btn-kaydet:hover {
        transform: none;
    }

    .bkh-btn-kaydet:active {
        background: #a93226;
    }
}

/* ===== TOPLAM SAYI GÖSTERGİSİ ===== */
.bkh-toplam-sayi {
    font-weight: 700;
    color: #c0392b;
}

.bkh-toplam-bar {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.2);
}

.bkh-toplam-bar .sayi {
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    margin: 0 5px;
}
