/* Harita Eleme - Profesyonel Tasarım */

.harita-secim-wrapper {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 50px 40px;
}

.harita-secim-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    position: relative;
    z-index: 10;
}

.harita-secim-item {
    position: relative;
    background: rgba(19, 19, 24, 0.95);
    border-radius: 16px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.harita-secim-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.harita-secim-item:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.harita-secim-item:hover::before {
    opacity: 1;
}

.harita-secim-item.highlight {
    border-color: rgba(102, 126, 234, 0.9);
    box-shadow: 
        0 0 60px rgba(102, 126, 234, 0.7),
        0 12px 40px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    z-index: 20;
    animation: highlightPulse 1.5s ease-in-out infinite;
}

.harita-secim-item.highlight::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.35) 0%, rgba(139, 92, 246, 0.35) 100%);
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 
            0 0 60px rgba(102, 126, 234, 0.7),
            0 12px 40px rgba(102, 126, 234, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 80px rgba(102, 126, 234, 0.9),
            0 12px 50px rgba(102, 126, 234, 0.7),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.harita-secim-item.selected {
    border-color: #f5576c;
    box-shadow: 
        0 0 80px rgba(245, 87, 108, 0.9),
        0 0 120px rgba(245, 87, 108, 0.6),
        0 15px 50px rgba(245, 87, 108, 0.7),
        inset 0 0 30px rgba(245, 87, 108, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    z-index: 30;
    animation: selectedGlow 2s ease-in-out infinite;
}

.harita-secim-item.selected::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.5) 0%, rgba(245, 87, 108, 0.4) 100%);
    animation: selectedGlowInner 2s ease-in-out infinite;
}

.harita-secim-item.selected::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.6) 0%, rgba(245, 87, 108, 0.3) 50%, rgba(245, 87, 108, 0.6) 100%);
    z-index: -1;
    animation: selectedGlowOuter 2s ease-in-out infinite;
    filter: blur(15px);
}

@keyframes selectedGlow {
    0%, 100% {
        box-shadow: 
            0 0 80px rgba(245, 87, 108, 0.9),
            0 0 120px rgba(245, 87, 108, 0.6),
            0 15px 50px rgba(245, 87, 108, 0.7),
            inset 0 0 30px rgba(245, 87, 108, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 100px rgba(245, 87, 108, 1),
            0 0 150px rgba(245, 87, 108, 0.8),
            0 15px 60px rgba(245, 87, 108, 0.9),
            inset 0 0 40px rgba(245, 87, 108, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes selectedGlowInner {
    0%, 100% {
        opacity: 1;
        background: linear-gradient(135deg, rgba(245, 87, 108, 0.5) 0%, rgba(245, 87, 108, 0.4) 100%);
    }
    50% {
        opacity: 1;
        background: linear-gradient(135deg, rgba(245, 87, 108, 0.7) 0%, rgba(245, 87, 108, 0.6) 100%);
    }
}

@keyframes selectedGlowOuter {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.harita-secim-item-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* Harita Görseli - Yatay Format */
.harita-secim-item-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}

.harita-secim-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.harita-secim-item:hover .harita-secim-item-image {
    transform: scale(1.05);
}

.harita-secim-item.selected .harita-secim-item-image {
    transform: scale(1);
}

/* Harita İsmi */
.harita-secim-item-name-wrapper {
    padding: 12px 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.harita-secim-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin: 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.2;
}

.harita-secim-item-name .elendi-badge {
    font-size: 11px;
    color: #f5576c;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(245, 87, 108, 0.6);
}

.harita-secim-item:hover .harita-secim-item-name {
    color: rgba(255, 255, 255, 0.95);
}

.harita-secim-item.selected .harita-secim-item-name {
    color: #f5576c;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(245, 87, 108, 0.6);
}


/* Buton */
.harita-secim-butonu {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.harita-reset-butonu {
    background: linear-gradient(135deg, #f5576c 0%, #c44569 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 4px 12px rgba(245, 87, 108, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.harita-reset-butonu:hover {
    background: linear-gradient(135deg, #ff6b7a 0%, #d4556f 100%);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 16px rgba(245, 87, 108, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.harita-secim-butonu:disabled,
.harita-reset-butonu:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

.harita-secim-butonu:hover:not(:disabled)::before {
    left: 100%;
}

.harita-secim-butonu:hover:not(:disabled) {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 16px rgba(102, 126, 234, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.harita-secim-butonu:active:not(:disabled) {
    transform: translateY(0);
}

.harita-secim-butonu:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Sonuç Kartı */
.secilen-harita-sonuc {
    margin-top: 50px;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    min-height: 200px;
}

.secilen-harita-sonuc[style*="opacity: 1"],
.secilen-harita-sonuc[style*="opacity:1"] {
    opacity: 1 !important;
    visibility: visible !important;
}

.secilen-harita-sonuc-content {
    background: linear-gradient(145deg, rgba(26, 26, 31, 0.95) 0%, rgba(19, 19, 24, 0.95) 100%);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(245, 87, 108, 0.5);
    box-shadow: 
        0 15px 50px rgba(245, 87, 108, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.secilen-harita-sonuc-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(245, 87, 108, 0.8), transparent);
}

.secilen-harita-sonuc-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.secilen-harita-bilgi {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 25px;
}

.secilen-harita-resim {
    width: 200px;
    height: 112px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid #f5576c;
    box-shadow: 
        0 10px 30px rgba(245, 87, 108, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    aspect-ratio: 16 / 9;
}

.secilen-harita-resim:hover {
    transform: scale(1.05);
}

.secilen-harita-bilgi h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.secilen-harita-bilgi p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

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

/* Responsive */
@media (max-width: 1400px) {
    .harita-secim-container {
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .harita-secim-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .harita-secim-wrapper {
        padding: 30px 20px;
    }
    
    .harita-secim-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .harita-secim-item-name {
        font-size: 14px;
        padding: 12px;
    }

    .secilen-harita-bilgi {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .secilen-harita-resim {
        width: 100%;
        max-width: 300px;
    }
    
    .secilen-harita-sonuc-content {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .harita-secim-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .harita-secim-item-name {
        font-size: 13px;
        padding: 10px;
    }
    
    .harita-secim-butonu {
        padding: 14px 28px;
        font-size: 16px;
    }
}
