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

:root {
    --primary-red: #dc2626;
    --secondary-red: #ef4444;
    --light-red: #f87171;
    --dark-red: #b91c1c;
    --white: #ffffff;
    --gray-light: #f9fafb;
    --gray-medium: #6b7280;
    --gray-dark: #1f2937;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 30px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.site-title {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    transition: var(--transition);
}

.site-title:hover {
    transform: scale(1.02);
}

.site-title i {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.4rem;
    animation: pulse 2s ease-in-out infinite;
}

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

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

.site-subtitle {
    color: #6b7280;
    font-size: 1.15rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.site-subtitle i {
    color: #ef4444;
    animation: routeIcon 2s ease-in-out infinite;
}

@keyframes routeIcon {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
}

.container {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
}

.map-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(239, 68, 68, 0.1);
    overflow: hidden;
    animation: fadeInScale 0.8s ease-out;
    transition: var(--transition);
}

.map-wrapper:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.map-info {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    color: white;
    padding: 30px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.map-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.map-info h2 {
    margin: 0 0 12px 0;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.map-info h2 i {
    font-size: 1.8rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.map-info p {
    margin: 0;
    font-size: 1.05rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.map-info p i {
    font-size: 1rem;
}

.map-container {
    height: calc(100vh - 250px);
    min-height: 600px;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

.main-footer {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 25px 0;
    text-align: center;
    color: #6b7280;
    margin-top: auto;
    border-top: 1px solid rgba(239, 68, 68, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.main-footer p {
    margin: 8px 0;
}

.main-footer i {
    color: #ef4444;
    margin: 0 5px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-tubitak {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 500;
    margin-top: 12px;
}

.footer-tubitak i {
    color: #dc2626;
    animation: awardPulse 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

@keyframes awardPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .site-title i {
        font-size: 1.8rem;
    }
    
    .map-container {
        height: calc(100vh - 300px);
        min-height: 500px;
    }
    
    .map-info {
        padding: 20px 15px;
    }
    
    .map-info h2 {
        font-size: 1.5rem;
    }
    
    .map-info p {
        font-size: 0.9rem;
    }
    
    .map-wrapper {
        border-radius: 16px;
    }
}

/* Marker popup stilleri */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

/* Özel şehir marker stilleri */
.city-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5), 0 0 0 2px rgba(239, 68, 68, 0.2);
    transform: rotate(-45deg);
    position: relative;
    transition: var(--transition);
    animation: markerPulse 2s ease-in-out infinite;
}

.marker-pin:hover {
    transform: rotate(-45deg) scale(1.2);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.7), 0 0 0 3px rgba(239, 68, 68, 0.3);
}

@keyframes markerPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5), 0 0 0 2px rgba(239, 68, 68, 0.2);
    }
    50% {
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.7), 0 0 0 4px rgba(239, 68, 68, 0.3);
    }
}

.marker-pin::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Polyline çizgilerini vurgula */
.leaflet-overlay-pane svg path {
    cursor: pointer;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Yol popup stilleri */
.route-popup .leaflet-popup-content-wrapper {
    background: #ffffff;
    border: 2px solid #ef4444;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
    animation: popupSlide 0.3s ease-out;
}

@keyframes popupSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.route-popup .leaflet-popup-content {
    margin: 12px 16px;
    text-align: center;
}

.route-popup .leaflet-popup-tip {
    background: #ffffff;
    border: 2px solid #ef4444;
    border-top: none;
    border-left: none;
}
