.haritaoy-background {
    background: fixed;
    background-size: cover;
    background-position: center;
    background-image: url('/files/images/haritaoy-backgorund.webp');
    filter: brightness(0.6);
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

.haritaoy-content {
    position: relative;
    z-index: 1;
}

.haritaoy-container {
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 0 auto 20px;
    max-width: 1400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.haritaoy-baslik {
    font-family: 'HiJack', sans-serif !important;
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.02em !important;
    margin: 0 !important;
    background: linear-gradient(90deg, #0d9488 0%, #5eead4 50%, #ffffff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

.harita-kutu {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.harita-kutu:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.harita-resim-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.harita-resim {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.harita-kutu:hover .harita-resim {
    filter: brightness(1);
}

.harita-adi {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    z-index: 10;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.oy-ver-butonlari-wrapper {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 220px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
    z-index: 10;
    flex-wrap: wrap;
}

.oy-ver-butonu {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    flex: 1 1 0;
    min-width: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1.2;
}

.oy-ver-butonu:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.5);
}

.oy-ver-butonu-2x {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.oy-ver-butonu-2x:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.5);
}

.oy-ver-butonu:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.haritayi-banla-butonu {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    flex: 1 1 0;
    min-width: 0;
}
.haritayi-banla-butonu:hover:not(:disabled) {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.5);
}

.oy-sayisi-kutucuk {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 92, 246, 0.8);
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 12px;
    z-index: 5;
}

/* Elendi (oylama öncesi elenen haritalar) - pembe/kırmızı */
.harita-elendi-kutucuk {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

/* Banlandı (kullanıcı tarafından banlanan haritalar) - elendi renginden farklı, koyu kırmızı/turuncu */
.harita-banlandi-kutucuk {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%) !important;
    border: 1px solid rgba(254, 202, 202, 0.3);
}

.oylama-kapali-mesaj {
    background: rgba(220, 38, 38, 0.2);
    border: 2px solid rgba(220, 38, 38, 0.5);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.oylama-kapali-mesaj h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fca5a5;
    margin-bottom: 10px;
}

.oylama-kapali-mesaj p {
    font-size: 1.1rem;
    color: #fee2e2;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(26, 26, 31, 0.95);
    margin: auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #fff;
}

.modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.modal-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.modal-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.02);
}

.oylamayi-baslat-butonu {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.oylamayi-baslat-butonu:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.5);
}

.buton-container-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 20px 0;
}

.sonraki-oylama-butonu,
.sonuclar-butonu {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sonraki-oylama-butonu:hover,
.sonuclar-butonu:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.sonraki-oylama-butonu:active,
.sonuclar-butonu:active {
    transform: translateY(0);
}

.sonraki-oylama-butonu:disabled,
.sonuclar-butonu:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sifirla-butonu {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sifirla-butonu:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.5);
}

.oy-vermeyenler-container,
.oylar-listesi-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.oy-vermeyenler-title,
.oylar-listesi-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fbbf24;
}

.oy-vermeyen-kullanici {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
}

.oy-vermeyen-kullanici img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fbbf24;
}

.oy-detay-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 4px solid #8b5cf6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.oy-detay-item img:not(.harita-oy-role-icon) {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #8b5cf6;
}

.sonuclar-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.secilen-harita-item {
    background: rgba(26, 26, 31, 0.8);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.secilen-harita-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.secilen-harita-header img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #8b5cf6;
}

.secilen-harita-baslik {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.oy-veren-kullanici {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 5px;
    display: inline-flex;
}

.oy-veren-kullanici img:not(.harita-oy-role-icon) {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #8b5cf6;
}

/* 2x oy veren rol rozeti – kesintisiz parlama (yumuşak döngü) */
@keyframes reward-role-glow {
    0% { filter: drop-shadow(0 0 3px rgba(255, 209, 102, 0.55)); }
    25% { filter: drop-shadow(0 0 4px rgba(255, 209, 102, 0.7)); }
    50% { filter: drop-shadow(0 0 5px rgba(255, 209, 102, 0.85)); }
    75% { filter: drop-shadow(0 0 4px rgba(255, 209, 102, 0.7)); }
    100% { filter: drop-shadow(0 0 3px rgba(255, 209, 102, 0.55)); }
}

@keyframes reward-role-glow-emoji {
    0% { text-shadow: 0 0 3px rgba(255, 209, 102, 0.55); }
    25% { text-shadow: 0 0 4px rgba(255, 209, 102, 0.7); }
    50% { text-shadow: 0 0 5px rgba(255, 209, 102, 0.85); }
    75% { text-shadow: 0 0 4px rgba(255, 209, 102, 0.7); }
    100% { text-shadow: 0 0 3px rgba(255, 209, 102, 0.55); }
}

.harita-oy-role-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 4px;
    vertical-align: middle;
    flex-shrink: 0;
    border: none;
    filter: drop-shadow(0 0 3px rgba(255, 209, 102, 0.55));
    animation: reward-role-glow 2.5s linear infinite;
}

.harita-oy-role-emoji {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    font-size: 1.5rem;
    line-height: 1;
    text-shadow: 0 0 3px rgba(255, 209, 102, 0.55);
    animation: reward-role-glow-emoji 2.5s linear infinite;
}

.oy-detay-item .harita-oy-role-icon,
.oy-detay-item .harita-oy-role-emoji {
    margin-left: 6px;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.toggle-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e5e7eb;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #6b7280;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #8b5cf6;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

