/* ========================================
   TÜBİTAK Karadeniz Dil Haritası - CSS
======================================== */

/* Temel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header Stilleri */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #007bff;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}

.project-info small {
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    flex: 1;
}

/* Map Container */
.map-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-header {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.map-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-description {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Leaflet Harita Stilleri */
.leaflet-map {
    height: 600px;
    width: 100%;
    border-radius: 0 0 20px 20px;
}

/* Leaflet Popup Özelleştirmesi */
.leaflet-popup-content-wrapper {
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 250px !important;
}

.leaflet-popup-tip {
    border-top-color: white !important;
}

/* Şehir Popup İçeriği */
.city-popup {
    padding: 1rem;
    background: white;
    border-radius: 15px;
}

.city-popup-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.city-popup-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.city-popup-icon {
    font-size: 1.5rem;
    color: #007bff;
    margin-right: 0.5rem;
}

/* Şehir Marker Stilleri */
.city-marker {
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.city-marker:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
    border-width: 4px;
}

.city-marker.hover-effect {
    width: 36px !important;
    height: 36px !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6) !important;
    z-index: 1000 !important;
}

/* SVG Map Stilleri */
.svg-map {
    width: 100%;
    height: 500px;
    cursor: pointer;
}

.city-area {
    fill: #e3f2fd;
    stroke: #1976d2;
    stroke-width: 2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.city-area:hover {
    fill: #bbdefb;
    stroke: #0d47a1;
    stroke-width: 3;
    transform: scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.city-area.active {
    fill: #2196f3;
    stroke: #0d47a1;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.city-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    fill: #1976d2;
    text-anchor: middle;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Modal Stilleri */
.modal-content {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: none;
}

.modal-header {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* Kelime Grid Stilleri */
.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.word-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.word-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.word-card:hover::before {
    left: 100%;
}

.word-card:hover {
    transform: translateY(-5px);
    border-color: #007bff;
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.word-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.word-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

.play-icon {
    color: #007bff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Video Container */
.video-container {
    position: relative;
    background: #000;
    border-radius: 0 0 15px 15px;
}

.video-player {
    width: 100%;
    height: 400px;
    border-radius: 0 0 15px 15px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 1.5rem;
    }
    
    .map-wrapper {
        min-height: 400px;
    }
    
    .words-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .word-card {
        padding: 1rem;
    }
    
    .video-player {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 1rem 0;
    }
    
    .map-container {
        border-radius: 15px;
        margin: 0 0.5rem 1rem;
    }
    
    .header .container,
    .footer .container {
        padding: 0 1rem;
    }
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}