/* ==========================================
   DESIGN TOKENS
   ========================================== */
:root {
    /* Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-glass: rgba(17, 24, 39, 0.85);
    --bg-glass-light: rgba(30, 41, 59, 0.75);
    --border-glass: rgba(99, 122, 159, 0.2);
    --border-glass-hover: rgba(99, 122, 159, 0.4);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #00d4ff;
    --accent-purple: #7b2ff7;
    --accent-gradient: linear-gradient(135deg, #00d4ff, #0099ff, #7b2ff7);

    --color-allowed: #10b981;
    --color-allowed-bg: rgba(16, 185, 129, 0.15);
    --color-prohibited: #ef4444;
    --color-prohibited-bg: rgba(239, 68, 68, 0.15);
    --color-uncertain: #f59e0b;
    --color-uncertain-bg: rgba(245, 158, 11, 0.15);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --header-height: 38px;
    --panel-width: 320px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-glow-purple: 0 0 20px rgba(123, 47, 247, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Screen Reader Only - SEO amaçlı görünmez metin */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================
   LOADING SCREEN
   ========================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.diving-icon {
    width: 100%;
    height: 100%;
}

.rotating-ring {
    animation: rotate 3s linear infinite;
    transform-origin: 50% 50%;
}

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

.loading-title {
    font-size: 28px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.loading-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-secondary);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 40%;
    background: var(--accent-gradient);
    border-radius: 3px;
    animation: loadingSlide 1.2s ease-in-out infinite;
}

@keyframes loadingSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ==========================================
   HEADER
   ========================================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: transform var(--transition-normal);
}

.app-header.hidden {
    transform: translateY(-100%);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 22px;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

.logo-icon-img {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.3));
}

.logo-text h1 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* Search */
.header-center {
    flex: 1;
    max-width: 420px;
    margin: 0 24px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 6px 12px 6px 32px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 12px;
    outline: none;
    transition: all var(--transition-fast);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: var(--shadow-lg);
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-glass);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-glass-light);
}

.search-result-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.search-result-name {
    font-size: 13px;
    font-weight: 500;
}

.search-result-type {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Header Buttons */
.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.header-btn svg {
    width: 15px;
    height: 15px;
}

.header-btn:hover {
    background: var(--bg-glass-light);
    color: var(--text-primary);
    border-color: var(--border-glass-hover);
}

.header-btn.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* ==========================================
   MAP
   ========================================== */
.map-container,
.leaflet-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: #060913 !important;
}

/* Override Leaflet default styles */
.leaflet-control-zoom {
    display: none !important;
}

.leaflet-control-attribution {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: var(--text-muted) !important;
    font-family: var(--font-primary) !important;
    font-size: 10px !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: var(--radius-sm) !important;
    padding: 3px 8px !important;
    margin: 8px !important;
}

.leaflet-control-attribution a {
    color: var(--accent-blue) !important;
}

/* ==========================================
   CUSTOM ZOOM CONTROLS
   ========================================== */
.custom-zoom {
    position: fixed;
    bottom: 40px;
    right: 16px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 300;
}

.zoom-btn:hover {
    background: var(--bg-glass-light);
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-glow-blue);
}

.zoom-home {
    margin-top: 8px;
    font-size: 14px;
}

/* ==========================================
   COORDINATES DISPLAY
   ========================================== */
.coords-display {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 6px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    pointer-events: none;
}

/* ==========================================
   PANELS (LEGEND & STATS)
   ========================================== */
.legend-panel,
.stats-panel {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    z-index: 999;
    width: var(--panel-width);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(calc(-100% - 20px));
    opacity: 0;
    transition: all var(--transition-slow);
    overflow: hidden;
}

.legend-panel {
    left: 16px;
}

.stats-panel {
    right: 16px;
    left: auto;
    transform: translateX(calc(100% + 20px));
}

.legend-panel.visible {
    transform: translateX(0);
    opacity: 1;
}

.stats-panel.visible {
    transform: translateX(0);
    opacity: 1;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
}

.panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.panel-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-prohibited);
    border-color: var(--color-prohibited);
}

.panel-body {
    padding: 16px 20px;
    max-height: calc(100vh - var(--header-height) - 120px);
    overflow-y: auto;
}

/* Scrollbar */
.panel-body::-webkit-scrollbar {
    width: 4px;
}

.panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.panel-body::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 4px;
}

/* Legend Items */
.legend-section {
    margin-bottom: 20px;
}

.legend-section:last-child {
    margin-bottom: 0;
}

.legend-section h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.legend-item:hover {
    background: var(--bg-glass-light);
}

.legend-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-glass-hover);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.legend-item input[type="checkbox"]:checked {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.legend-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.legend-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.legend-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-glass-light);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Stats Cards */
.stat-card {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: 1px solid var(--border-glass);
    transition: all var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.stat-allowed { background: var(--color-allowed-bg); border-color: rgba(16, 185, 129, 0.3); }
.stat-prohibited { background: var(--color-prohibited-bg); border-color: rgba(239, 68, 68, 0.3); }
.stat-uncertain { background: var(--color-uncertain-bg); border-color: rgba(245, 158, 11, 0.3); }
.stat-total { background: rgba(0, 212, 255, 0.1); border-color: rgba(0, 212, 255, 0.3); }

.stat-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-allowed .stat-number { color: var(--color-allowed); }
.stat-prohibited .stat-number { color: var(--color-prohibited); }
.stat-uncertain .stat-number { color: var(--color-uncertain); }
.stat-total .stat-number { color: var(--accent-blue); }

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.panel-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-glass);
}

.stat-note {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================
   CUSTOM POPUP STYLES
   ========================================== */
.leaflet-popup-content-wrapper {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    color: var(--text-primary) !important;
    padding: 0 !important;
    min-width: 280px;
}

.leaflet-popup-content {
    margin: 0 !important;
    font-family: var(--font-primary) !important;
    line-height: 1.5 !important;
}

.leaflet-popup-tip {
    background: var(--bg-glass) !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: none !important;
}

.leaflet-popup-close-button {
    color: var(--text-muted) !important;
    font-size: 20px !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: 12px !important;
    right: 12px !important;
    z-index: 10;
}

.leaflet-popup-close-button:hover {
    color: var(--color-prohibited) !important;
}

/* Popup Content */
.zone-popup {
    padding: 14px;
}

.zone-popup-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    padding-right: 16px;
}

.zone-popup-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-prohibited {
    background: var(--color-prohibited-bg);
    color: var(--color-prohibited);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-allowed {
    background: var(--color-allowed-bg);
    color: var(--color-allowed);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-uncertain {
    background: var(--color-uncertain-bg);
    color: var(--color-uncertain);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.zone-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.zone-popup-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.zone-popup-row {
    display: flex;
    gap: 6px;
    font-size: 12px;
}

.zone-popup-label {
    color: var(--text-muted);
    font-weight: 500;
    min-width: 70px;
    flex-shrink: 0;
}

.zone-popup-value {
    color: var(--text-secondary);
}

.zone-popup-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-top: 0px;
    padding-top: 4px;
    border-top: 1px solid var(--border-glass);
}

.zone-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--border-glass);
    gap: 6px;
}

.zone-popup-source {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zone-popup-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.zone-popup-source a:hover {
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .header-center {
        display: none;
    }

    .logo-text h1 {
        font-size: 15px;
    }

    .logo-region {
        display: none;
    }

    .legend-panel,
    .stats-panel {
        width: calc(100vw - 32px);
        left: 16px;
        right: 16px;
    }

    .stats-panel {
        left: 16px;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
}

.animate-in {
    animation: fadeIn 0.4s ease forwards;
}

/* ==========================================
   REPORT MODAL & ADS
   ========================================== */
.report-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.report-modal.active {
    opacity: 1;
    visibility: visible;
}

.report-modal-content {
    width: 90%;
    max-width: 400px;
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.report-modal.active .report-modal-content {
    transform: translateY(0);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
}

.form-actions {
    margin-top: 20px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.btn-submit:hover {
    opacity: 0.9;
}

.report-status {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
}

.report-status.success {
    color: var(--color-allowed);
}

.report-status.error {
    color: var(--color-prohibited);
}

.btn-report-zone-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-uncertain);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-report-zone-small:hover {
    background: rgba(245, 158, 11, 0.2);
}

.popup-ads-area {
    width: 100%;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 6px;
    text-align: center;
    position: relative;
    /* Reklam gelene kadar yer kaplamasın */
    min-height: 0;
    overflow: hidden;
}

.popup-ads-area:empty {
    display: none;
    margin: 0;
    padding: 0;
    border: none;
}

.popup-ads-area::before {
    content: 'Reklam';
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.popup-ads-area .adsbygoogle {
    border-radius: 4px;
    overflow: hidden;
    /* Boşken tamamen gizle */
    min-height: 0 !important;
}

/* Reklam dolduktan sonra görünür */
.popup-ads-area .adsbygoogle[data-adsbygoogle-status="done"] {
    min-height: 50px;
}

/* Site Copyright - Cam Çerçeve */
.site-copyright {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 7px 15px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    pointer-events: all;
}

.site-copyright:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
    color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.site-copyright:active {
    transform: translateY(0);
}

.copyright-icon {
    font-size: 13px;
    filter: drop-shadow(0 0 4px rgba(100, 200, 255, 0.4));
}

.copyright-text {
    white-space: nowrap;
}

/* Logo tıklanabilir */
a.logo {
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

a.logo:hover {
    opacity: 0.85;
}

/* Mobil: daha küçük copyright ve koordinatlar */
@media (max-width: 600px) {
    .site-copyright {
        bottom: 8px;
        left: 8px;
        padding: 4px 10px;
        font-size: 10px;
        border-radius: 16px;
        gap: 4px;
    }
    .copyright-icon {
        font-size: 10px;
    }
    .coords-display {
        bottom: 8px;
        padding: 4px 10px;
        font-size: 10px;
        border-radius: var(--radius-sm);
    }
}


/* ==========================================
   ADMIN PANEL & ADMIN MODE STYLES
   ========================================== */
.admin-panel {
    /* Her iki panel de solda/sağda olabilir. Admin panelini sağa sabitlemek daha iyidir */
    right: 16px;
    left: auto;
    transform: translateX(calc(100% + 20px));
}

.admin-panel.visible {
    transform: translateX(0);
    opacity: 1;
}

/* Harita Admin Modu Aktif Efekti */
.admin-mode-active {
    box-shadow: inset 0 0 0 4px rgba(123, 47, 247, 0.4);
    transition: box-shadow 0.3s ease;
}

.admin-mode-active::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1001;
    border: 3px solid transparent;
    border-image: linear-gradient(to right, #00d4ff, #7b2ff7) 1;
    animation: adminGlow 2s ease-in-out infinite alternate;
}

@keyframes adminGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

/* Sürükleme İşaretçisi (Drag Marker) */
.admin-drag-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-marker-pulse {
    position: absolute;
    width: 24px;
    height: 24px;
    background: rgba(123, 47, 247, 0.3);
    border-radius: 50%;
    animation: markerPulse 1.5s infinite;
}

.drag-marker-inner {
    position: absolute;
    font-size: 20px;
    cursor: grab;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.drag-marker-inner:active {
    cursor: grabbing;
}

@keyframes markerPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Admin Giriş Modalı */
.admin-login-content {
    border: 1px solid rgba(123, 47, 247, 0.3);
    box-shadow: 0 0 30px rgba(123, 47, 247, 0.15), var(--shadow-lg);
}

.btn-admin-submit {
    background: linear-gradient(135deg, #7b2ff7, #0099ff);
}

.btn-admin-submit:hover {
    box-shadow: 0 0 15px rgba(123, 47, 247, 0.4);
}

/* Yönetici Bilgisi ve Çıkış */
.admin-user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(123, 47, 247, 0.08);
    border: 1px solid rgba(123, 47, 247, 0.15);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 12px;
}

.admin-user-info span {
    font-size: 13px;
    color: var(--text-primary);
}

.admin-user-info strong {
    color: #00d4ff;
    font-weight: 600;
}

.btn-logout-small {
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-prohibited);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-logout-small:hover {
    background: var(--color-prohibited);
    color: white;
}

.admin-divider {
    border: 0;
    height: 1px;
    background: var(--border-glass);
    margin: 14px 0;
}

.admin-section-tip {
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--text-secondary);
    background: rgba(0, 212, 255, 0.06);
    border-left: 3px solid var(--accent-blue);
    padding: 8px 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 16px;
}

/* Düzenleme Formu */
.admin-edit-form select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.admin-edit-form select:focus {
    border-color: var(--accent-blue);
}

.form-row-coords {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.coord-col {
    display: flex;
    flex-direction: column;
}

.coord-label {
    font-size: 11px !important;
    font-weight: 500;
    color: var(--text-muted) !important;
    margin-bottom: 4px;
}

.admin-edit-form input[readonly] {
    background: rgba(30, 41, 59, 0.4);
    color: var(--text-secondary);
    border-color: var(--border-glass);
    cursor: not-allowed;
}

/* Radius Slider Özelleştirme */
.admin-radius-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    outline: none;
    margin: 8px 0;
}

.admin-radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transition: transform 0.1s ease;
}

.admin-radius-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Admin Form Actions */
.admin-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
}

/* Üç butonlu durum için (sil görünür olduğunda) */
.admin-form-actions.has-delete {
    grid-template-columns: auto 1fr 1fr;
}

.btn-admin-primary,
.btn-admin-secondary,
.btn-admin-danger {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-fast);
}

.btn-admin-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.btn-admin-primary:hover {
    box-shadow: var(--shadow-glow-blue);
    opacity: 0.95;
}

.btn-admin-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.btn-admin-secondary:hover {
    background: var(--bg-glass-light);
    color: var(--text-primary);
    border-color: var(--border-glass-hover);
}

.btn-admin-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-prohibited);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-admin-danger:hover {
    background: var(--color-prohibited);
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* ==========================================
   THEME SELECTOR
   ========================================== */
.theme-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.theme-select-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}

.theme-select-btn:hover {
    border-color: var(--border-glass-hover);
    color: var(--text-primary);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: var(--shadow-glow-blue);
}

.theme-select-btn.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
    font-weight: 600;
}

.theme-select-btn .theme-icon {
    font-size: 16px;
}

.theme-select-btn .theme-name {
    font-size: 9px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

/* ==========================================
   DARK OCEAN TILES FILTERS (Aydınlık haritayı şık karanlık deniz haritasına dönüştürür)
   ========================================== */
.dark-ocean-tiles {
    /* Yakınlaşınca sokaklar ve detaylar JS üzerinden dinamik olarak aydınlanacak */
    filter: invert(var(--ocean-tiles-invert, 90%)) hue-rotate(185deg) brightness(var(--ocean-tiles-brightness, 0.70)) contrast(1.15) !important;
    opacity: var(--ocean-tiles-opacity, 0.85) !important;
    transition: filter 0.5s ease-out, opacity 0.5s ease-out;
}

/* GEBCO Bathymetry soft dark filter: no invert, just beautiful darkening and teal/blue coloring */
.dark-ocean-gebco {
    /* Alt zemin rengi yakınlaştıkça daha net ve canlı hale gelecek */
    filter: brightness(var(--ocean-gebco-brightness, 0.48)) saturate(0.7) contrast(1.2) hue-rotate(8deg) !important;
    opacity: var(--ocean-gebco-opacity, 1.00) !important;
    transition: filter 0.5s ease-out, opacity 0.5s ease-out;
}

/* Esri/Carto okyanus etiketlerinin ters çevrilerek parlaması için */
.dark-ocean-labels {
    filter: invert(100%) brightness(var(--ocean-labels-brightness, 0.85)) contrast(1.2) !important;
    opacity: var(--ocean-labels-opacity, 1.00) !important;
    transition: filter 0.5s ease-out, opacity 0.5s ease-out;
}

/* ==========================================
   GLOBAL SETTINGS SECTION & TOGGLE SWITCH
   ========================================== */
.admin-settings-section {
    padding: 10px 4px;
}

.admin-settings-section h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.admin-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast) ease;
}

.admin-setting-item:hover {
    border-color: var(--border-glass-hover);
    background: rgba(30, 41, 59, 0.85);
}

.admin-setting-item .setting-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Premium Glassmorphic Sliding Toggle Switch */
.admin-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.admin-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.admin-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.admin-switch input:checked + .admin-slider {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.35);
}

.admin-switch input:checked + .admin-slider:before {
    transform: translateX(20px);
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Ads Hiding Rules */
.ads-disabled .popup-ads-area {
    display: none !important;
}

.leaflet-control-attribution{opacity:.1}
