﻿/* ===== Aviation Map Styles ===== */
/* Full screen map */
#map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: #1a1a2e;
}

/* Leaflet container background */
.leaflet-container {
    background: #1a1a2e !important;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo i {
    color: #3b82f6;
    font-size: 1.5rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.view-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.utc-time {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.utc-time span {
    color: #fff;
    font-weight: 600;
}

/* Search Box */
.search-box {
    position: fixed;
    top: 70px;
    left: 20px;
    z-index: 1000;
}

.search-input {
    width: 300px;
    padding: 12px 16px 12px 44px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-input::placeholder {
    color: #64748b;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

/* Layer Panel Toggle Button */
.layer-panel-toggle {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1001;
}

.layer-toggle-btn {
    width: 50px;
    height: 50px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.layer-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

/* Layer Control Panel - Right Side */
.layer-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 340px;
    max-height: calc(100vh - 100px);
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    z-index: 1000;
    overflow: hidden;
    display: none; /* Varsayılan olarak kapalı */
}

.layer-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.layer-panel-header h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.layer-panel-header h3 i {
    color: #3b82f6;
}

.layer-panel-close {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.layer-panel-close:hover {
    background: rgba(255,255,255,0.2);
}

.layer-panel-content {
    padding: 16px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

/* Layer Category */
.layer-category {
    margin-bottom: 20px;
}

.layer-category-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Layer Grid - Card Style */
.layer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.layer-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.layer-card:hover {
    transform: scale(1.03);
}

.layer-card.active {
    border-color: #22c55e;
}

.layer-card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
}

/* Card backgrounds */
.layer-card[data-layer="alloff"] .layer-card-bg { background: linear-gradient(135deg, #374151, #1f2937); }
.layer-card[data-layer="fir"] .layer-card-bg { background: linear-gradient(135deg, #4338ca, #3730a3); }
.layer-card[data-layer="uir"] .layer-card-bg { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.layer-card[data-layer="countries"] .layer-card-bg { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.layer-card[data-layer="wind"] .layer-card-bg { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.layer-card[data-layer="sigmet"] .layer-card-bg { background: linear-gradient(135deg, #f59e0b, #d97706); }
.layer-card[data-layer="sigwx"] .layer-card-bg { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.layer-card[data-layer="radar"] .layer-card-bg { background: linear-gradient(135deg, #10b981, #059669); }
.layer-card[data-layer="satellite"] .layer-card-bg { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.layer-card[data-layer="flash"] .layer-card-bg { background: linear-gradient(135deg, #eab308, #ca8a04); }
.layer-card[data-layer="tstorm"] .layer-card-bg { background: linear-gradient(135deg, #ec4899, #db2777); }
.layer-card[data-layer="volcanic"] .layer-card-bg { background: linear-gradient(135deg, #ef4444, #dc2626); }
.layer-card[data-layer="airports"] .layer-card-bg { background: linear-gradient(135deg, #14b8a6, #0d9488); }

/* Map Style Card Backgrounds with CSS Patterns */
.style-card .layer-card-bg {
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Dark Map Style - Dark city grid pattern */
.style-card .layer-card-bg.style-dark { 
    background: 
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    background-size: 12px 12px, 12px 12px, 100% 100%;
}

/* Satellite Style - Aerial/earth texture */
.style-card .layer-card-bg.style-satellite { 
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(34, 197, 94, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(34, 197, 94, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #14532d 0%, #166534 30%, #15803d 60%, #1e3a5f 100%);
}

/* Streets Style - Light road map pattern */
.style-card .layer-card-bg.style-streets { 
    background: 
        linear-gradient(0deg, rgba(156, 163, 175, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(156, 163, 175, 0.4) 1px, transparent 1px),
        linear-gradient(0deg, rgba(209, 213, 219, 0.6) 2px, transparent 2px),
        linear-gradient(90deg, rgba(209, 213, 219, 0.6) 2px, transparent 2px),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    background-size: 8px 8px, 8px 8px, 24px 24px, 24px 24px, 100% 100%;
}

/* Terrain Style - Topographic contour pattern */
.style-card .layer-card-bg.style-terrain { 
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 60%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 4px,
            rgba(101, 163, 13, 0.3) 4px,
            rgba(101, 163, 13, 0.3) 5px
        ),
        linear-gradient(135deg, #65a30d 0%, #84cc16 30%, #a3e635 60%, #bef264 100%);
}

.style-card {
    position: relative;
    overflow: hidden;
}

/* Inactive state - dimmed */
.style-card:not(.active) .layer-card-bg {
    filter: brightness(0.5) saturate(0.7);
}

.style-card:not(.active):hover .layer-card-bg {
    filter: brightness(0.7) saturate(0.9);
}

/* Active state - full brightness with glow */
.style-card.active .layer-card-bg {
    filter: brightness(1) saturate(1);
}

.style-card .style-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.style-card:not(.active) .style-icon {
    opacity: 0.6;
}

.style-card:hover .style-icon {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.style-card.active {
    box-shadow: 0 0 0 2px #3b82f6, 0 4px 12px rgba(59, 130, 246, 0.4);
}

.style-card.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.layer-card-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.layer-card-badge.on {
    background: #22c55e;
    color: #fff;
}

.layer-card-badge.off {
    background: rgba(0,0,0,0.6);
    color: #fff;
}

.layer-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 6px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

/* Zoom Controls */
.zoom-controls {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.zoom-btn {
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

/* Wind Legend */
.wind-legend {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 20px;
    z-index: 1000;
    display: none;
}

.wind-legend.show {
    display: block;
}

.wind-legend-title {
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: center;
}

.wind-legend-bar {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wind-legend-bar span {
    color: #fff;
    font-size: 0.7rem;
}

.wind-gradient {
    width: 200px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, 
        #3b82f6 0%, 
        #22c55e 25%, 
        #eab308 50%, 
        #f97316 75%, 
        #ef4444 100%
    );
}

/* Hide default Leaflet controls */
.leaflet-control-zoom {
    display: none;
}

.leaflet-control-attribution {
    background: rgba(15, 23, 42, 0.8) !important;
    color: #64748b !important;
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
    border-radius: 4px 0 0 0 !important;
}

.leaflet-control-attribution a {
    color: #94a3b8 !important;
}

/* Loading indicator */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    text-align: center;
    color: #fff;
}

.loading-spinner i {
    font-size: 3rem;
    color: #3b82f6;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    margin-top: 16px;
    font-size: 1rem;
    color: #94a3b8;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* ===== Airport Markers & Popups ===== */

/* Airport marker wrapper */
.airport-marker-wrapper {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Airport marker container */
.airport-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.airport-marker:hover {
    transform: scale(1.15);
}

.airport-marker:hover .airport-icon {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Uçak ikonu container */
.airport-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.airport-icon i {
    font-size: 16px;
    transform: rotate(-45deg);
}

/* SVG marker icon - eski stil için fallback */
.airport-marker-icon {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* ICAO code display */
.airport-code {
    position: absolute;
    bottom: -24px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Airport popup styling */
.airport-popup {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
}

.popup-header strong {
    font-size: 18px;
    color: #1f2937;
}

.popup-header .category-badge {
    margin-left: auto;
}

.popup-header strong {
    font-size: 16px;
    color: #1f2937;
}

.category-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.VFR {
    background-color: #22c55e;
    color: #fff;
}

.category-badge.MVFR {
    background-color: #3b82f6;
    color: #fff;
}

.category-badge.IFR {
    background-color: #a855f7;
    color: #fff;
}

.category-badge.LIFR {
    background-color: #ef4444;
    color: #fff;
}

.popup-body {
    font-size: 13px;
    line-height: 1.5;
}

.popup-body p {
    margin: 4px 0;
    color: #374151;
}

.popup-body p:first-child {
    font-weight: 600;
    color: #1f2937;
}

.metar-info {
    background: #f3f4f6;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    border-left: 3px solid #3b82f6;
}

.metar-label {
    font-weight: 700;
    font-size: 12px;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.metar-time {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 8px;
}

.metar-text {
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #374151;
    border: 1px solid #d1d5db;
    max-height: 60px;
    overflow-y: auto;
    margin-bottom: 8px;
    word-break: break-word;
}

.metar-details {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #6b7280;
}

.metar-details span {
    padding: 4px 8px;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #d1d5db;
}

.metar-warning {
    color: #dc2626;
    font-weight: 600;
    text-align: center;
    padding: 8px 0;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.leaflet-popup-tip {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.leaflet-popup-close-button {
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    top: 4px;
    right: 4px;
}

.leaflet-popup-close-button:hover {
    color: #1f2937;
}

/* ===== Airport Details Modal ===== */
.airport-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.airport-details-modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #1e293b;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icao {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.modal-category-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-category-badge.VFR { background: #22c55e; color: #fff; }
.modal-category-badge.MVFR { background: #3b82f6; color: #fff; }
.modal-category-badge.IFR { background: #a855f7; color: #fff; }
.modal-category-badge.LIFR { background: #ef4444; color: #fff; }

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.modal-airport-info {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-airport-info h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.modal-airport-info p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.modal-sun-info {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sun-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sun-item i {
    font-size: 20px;
    color: #fbbf24;
}

.sun-item i.fa-moon {
    color: #60a5fa;
}

.sun-item i.fa-mountain {
    color: #94a3b8;
}

.sun-item span {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sun-item strong {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.modal-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 16px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.modal-tab:hover {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
}

.modal-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.modal-tab i {
    font-size: 14px;
}

/* Tab Content */
.modal-tab-content {
    padding: 20px 24px;
    min-height: 200px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Weather Section */
.weather-section {
    margin-bottom: 20px;
}

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

.weather-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-section h4 i {
    color: #3b82f6;
}

.weather-raw {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    line-height: 1.6;
}

/* NOTAM List */
.notam-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notam-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px;
    border-left: 3px solid #f59e0b;
    transition: all 0.2s ease;
}

.notam-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

/* NOTAM Öncelik Seviyeleri */
.notam-item.priority-high {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.notam-item.priority-medium {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.notam-item.priority-low {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.notam-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notam-id {
    font-weight: 600;
    color: #f59e0b;
    font-size: 12px;
}

.notam-item.priority-high .notam-id {
    color: #ef4444;
}

.notam-item.priority-medium .notam-id {
    color: #f59e0b;
}

.notam-item.priority-low .notam-id {
    color: #22c55e;
}

.notam-validity {
    font-size: 11px;
    color: #64748b;
}

/* NOTAM Kategori Badge */
.notam-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.notam-category.category-runway {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.notam-category.category-taxiway {
    background: rgba(168, 85, 247, 0.2);
    color: #a78bfa;
}

.notam-category.category-navigation {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.notam-category.category-obstacle {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.notam-category.category-airspace {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.notam-category.category-service {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
}

.notam-category.category-closure {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.notam-category.category-general {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.notam-category.category-apron {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.notam-category.category-construction {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}

/* NOTAM Meta Bilgileri */
.notam-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 10px;
    color: #64748b;
}

.notam-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.notam-meta-item i {
    font-size: 10px;
    opacity: 0.7;
}

/* NOTAM Source Badge */
.notam-source {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 11px;
    color: #60a5fa;
}

.notam-source i {
    font-size: 12px;
}

/* NOTAM Count Badge */
.notam-count {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* NOTAM Cache Badge */
.notam-cached {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    cursor: help;
}

.notam-cached i {
    margin-right: 3px;
}

.notam-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #cbd5e1;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.no-notams {
    text-align: center;
    padding: 30px;
    color: #64748b;
}

.no-notams i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    color: #475569;
}

.loading-notams, .loading-runways {
    text-align: center;
    padding: 30px;
    color: #64748b;
}

.loading-notams i, .loading-runways i {
    margin-right: 8px;
}

/* Runways List - Görsel Pist Şablonu */
.runways-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.runways-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.runway-row {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.runway-row.closed {
    opacity: 0.5;
    border-color: #ef4444;
}

.runway-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 70px;
}

.runway-end.left {
    align-items: flex-start;
}

.runway-end.right {
    align-items: flex-end;
}

.runway-end-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.runway-end-content {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 4px;
    width: 100%;
}

.runway-end.left .runway-end-content {
    flex-direction: row;
    justify-content: flex-start;
}

.runway-end.right .runway-end-content {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.runway-wind-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.runway-end.left .runway-wind-info {
    align-items: flex-start;
}

.runway-end.right .runway-wind-info {
    align-items: flex-end;
}

.wind-badge {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
}

.wind-headwind {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.wind-tailwind {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.wind-crosswind {
    color: #f97316;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.wind-calm {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.runway-number {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    transition: transform 0.3s ease;
}

.runway-number.active-runway {
    animation: runwayPulse 2s ease-in-out infinite;
}

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

.runway-bars {
    color: #64748b;
    font-size: 14px;
}

.runway-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
}

.runway-dimensions {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    text-align: center;
}

.runway-strip {
    width: 100%;
    height: 8px;
    background: #4a5568;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.runway-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #fff 0px,
        #fff 20px,
        transparent 20px,
        transparent 30px
    );
    transform: translateY(-50%);
}

.runway-markings {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 48px,
        rgba(255,255,255,0.1) 48px,
        rgba(255,255,255,0.1) 50px
    );
}

.runway-info {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 16px;
}

.runway-light {
    color: #fbbf24;
    font-size: 12px;
}

.runway-closed {
    font-size: 10px;
    color: #ef4444;
    font-weight: 700;
    text-transform: uppercase;
}

.active-runway-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 4px;
    color: #22c55e;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.active-runway-indicator i {
    font-size: 14px;
}

.active-runway-indicator .fa-plane {
    animation: planeLanding 2s ease-in-out infinite;
    display: inline-block;
}

.runway-end.left .active-runway-indicator .fa-plane {
    animation: planeLandingLeft 2s ease-in-out infinite;
}

.runway-end.right .active-runway-indicator .fa-plane {
    animation: planeLandingRight 2s ease-in-out infinite;
}

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

@keyframes planeLandingLeft {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(0deg);
    }
}

@keyframes planeLandingRight {
    0%, 100% {
        transform: translateY(0) rotate(180deg);
    }
    50% {
        transform: translateY(-3px) rotate(180deg);
    }
}

.no-runways {
    text-align: center;
    padding: 30px;
    color: #64748b;
}

.no-runways i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

/* Mini Map */
.modal-map-section {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-map-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-map-section h4 i {
    color: #3b82f6;
}

.mini-map {
    height: 200px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    background: #1a1a2e;
}

.mini-map .leaflet-container {
    height: 100% !important;
    width: 100% !important;
    background: #1a1a2e;
}

.mini-map .leaflet-control-zoom {
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.mini-map .leaflet-control-zoom a {
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
    border: none;
}

.mini-map .leaflet-control-zoom a:hover {
    background: rgba(59, 130, 246, 0.8);
}

/* Prediction Placeholder */
.prediction-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.prediction-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: #475569;
}

.prediction-placeholder p {
    font-size: 14px;
    margin: 0;
}

/* Details Button in Popup */
.popup-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px;
}

.popup-details-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.popup-details-btn i {
    font-size: 11px;
}

/* ===== SIGMET Popup Styles ===== */
.sigmet-popup-container .leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.98);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.sigmet-popup-container .leaflet-popup-content {
    margin: 0;
    min-width: 280px;
    max-width: 400px;
}

.sigmet-popup-container .leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sigmet-popup {
    font-family: 'Inter', -apple-system, sans-serif;
}

.sigmet-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.sigmet-hazard-icon {
    font-size: 20px;
}

.sigmet-hazard-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sigmet-popup-body {
    padding: 14px 16px;
    color: #e2e8f0;
    font-size: 13px;
}

.sigmet-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sigmet-info-row:last-child {
    border-bottom: none;
}

.sigmet-info-row strong {
    color: #94a3b8;
    font-weight: 500;
}

.sigmet-raw-text {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #cbd5e1;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 150px;
    overflow-y: auto;
}

/* SIGMET Legend (optional) */
.sigmet-legend {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    z-index: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.sigmet-legend.show {
    display: block;
}

.sigmet-legend h4 {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sigmet-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 11px;
    color: #94a3b8;
}

.sigmet-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* SIGMET layer hover cursor */
.leaflet-interactive.sigmet-area {
    cursor: pointer;
}

/* ===== AeroTaf AI Styles ===== */
/* TAF Validity Display */
.taf-validity {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.taf-validity .validity-label {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.taf-validity .validity-label i {
    color: #3b82f6;
}

/* AI Ask Button */
.ai-ask-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.ai-ask-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.ai-ask-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ai-ask-btn i {
    font-size: 16px;
}

/* AI Response Container */
.ai-response-container {
    margin-top: 16px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.ai-response-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    color: #e2e8f0;
    font-weight: 600;
    font-size: 13px;
}

.ai-response-header i {
    color: #a78bfa;
}

.ai-badge {
    margin-left: auto;
    padding: 3px 8px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    color: #c4b5fd;
}

.ai-badge.cached {
    background: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.ai-badge.new {
    background: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.ai-response-text {
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ai-response-text .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: #a78bfa;
    animation: blink 0.7s infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.ai-response-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-timestamp {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-timestamp::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* AI Loading State */
.ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: #a78bfa;
    font-size: 14px;
}

.ai-loading i {
    font-size: 18px;
}

/* AI Error State */
.ai-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-top: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 13px;
}

.ai-error i {
    color: #ef4444;
}

/* Prediction Tab Sections */
#tab-prediction .weather-section {
    margin-bottom: 20px;
}

#tab-prediction .weather-section:last-child {
    margin-bottom: 0;
}

#predictionTafSection h4,
#aiAnalysisSection h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
}

#predictionTafSection h4 i {
    color: #3b82f6;
}

#aiAnalysisSection h4 i {
    color: #a78bfa;
}