/* Map Page Specific Styles */
/* İkbal Kocaeli - Hizmet Noktalarımız Sayfası */

/* ============================================
   BASE STYLES
   ============================================ */

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.hero-text {
    font-family: 'Playfair Display', serif;
}

.gradient-text {
    background: linear-gradient(135deg, #B87333 0%, #F8F6F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cargo-card {
    background: rgba(248, 246, 240, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 115, 51, 0.3);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ============================================
   MOBILE MENU ANIMATIONS
   ============================================ */

#mobileMenuToggle {
    display: none;
    z-index: 100;
}

@media (max-width: 767px) {
    #mobileMenuToggle {
        display: block !important;
    }
}

.hamburger-icon {
    width: 28px;
    height: 24px;
    position: relative;
    display: block !important;
    cursor: pointer;
}

.hamburger-icon span {
    display: block !important;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fb923c !important;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

.hamburger-icon.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-icon.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

#mobileMenu {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

#mobileMenu.active {
    transform: translateX(0) !important;
}

#mobileMenuOverlay.active {
    display: block !important;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#mobileMenu a {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

#mobileMenu.active a {
    opacity: 1;
    transform: translateX(0);
}

#mobileMenu.active a:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.active a:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.active a:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.active a:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.active a:nth-child(5) { transition-delay: 0.3s; }
#mobileMenu.active a:nth-child(6) { transition-delay: 0.35s; }
#mobileMenu.active a:nth-child(7) { transition-delay: 0.4s; }

/* ============================================
   MAP ANIMATIONS
   ============================================ */

#turkey-svg-map path {
    opacity: 0;
    transform-origin: center;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    pointer-events: auto !important; /* Force interactivity */
    cursor: pointer;
}

#turkey-svg-map path[data-code].animate-in {
    animation: drawAndFadeIn 1.2s ease-out forwards;
}

#turkey-svg-map path[data-code].animate-complete {
    animation: pulseGlow 4s ease-in-out infinite;
    opacity: 1;
    stroke-dashoffset: 0;
}

@keyframes drawAndFadeIn {
    0% {
        opacity: 0;
        stroke-dashoffset: 1000;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.5;
        stroke-dashoffset: 0;
    }
    100% {
        opacity: 1;
        stroke-dashoffset: 0;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(184, 115, 51, 0.2));
    }
    50% {
        filter: brightness(1.1) drop-shadow(0 0 15px rgba(184, 115, 51, 0.4));
    }
}

#turkey-svg-map path[data-code]:hover {
    filter: brightness(1.4) drop-shadow(0 0 15px rgba(255, 140, 0, 0.6)) !important;
    transition: filter 0.3s ease, fill 0.3s ease;
    cursor: pointer;
}

/* ============================================
   MAP CONTAINER
   ============================================ */

#map-container svg {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* ============================================
   DARK MODE
   ============================================ */

body.dark-mode {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #cbd5e0;
}

.dark-mode .gradient-text {
    background: linear-gradient(135deg, #dd6b20 0%, #fbd38d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .cargo-card {
    background: rgba(45, 55, 72, 0.5);
    backdrop-filter: blur(10px);
    border-color: rgba(221, 107, 32, 0.2);
}

.dark-mode nav {
    border-color: rgba(221, 107, 32, 0.2);
}

.dark-mode .hamburger-icon span {
    background: #fbbf24 !important;
}
