/* ==========================================================================
   ZİRVE DAĞCILIK & DOĞA SPORLARI KULÜBÜ
   MODERN MOBİL UYGULAMA & ÇİFT TEMA SİSTEMİ (DARK / LIGHT MODE)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* ==========================================================================
   Tema Değişkenleri (CSS Custom Properties)
   ========================================================================== */

:root {
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --sar: env(safe-area-inset-right, 0px);
}

:root, [data-theme="dark"] {
    /* Koyu Tema - Doğa & Dağcılık */
    --bg-dark: #09110e;
    --bg-body-radial: radial-gradient(at 15% 15%, rgba(16, 185, 129, 0.08) 0px, transparent 50%), radial-gradient(at 85% 20%, rgba(255, 107, 0, 0.07) 0px, transparent 50%);
    --bg-card: #12201b;
    --bg-card-hover: #182b24;
    --bg-card-glass: rgba(18, 32, 27, 0.88);
    --bg-input: rgba(0, 0, 0, 0.35);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 107, 0, 0.35);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --heading-color: #ffffff;

    --primary: #ff6b00;
    --primary-hover: #e05a00;
    --primary-glow: rgba(255, 107, 0, 0.4);
    
    --emerald: #10b981;
    --emerald-dark: #065f46;
    --emerald-glow: rgba(16, 185, 129, 0.35);
    
    --cyan: #38bdf8;
    --cyan-dark: #0369a1;
    
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.6);
    --warning: #f59e0b;

    --header-bg: rgba(9, 17, 14, 0.88);
    --mobile-nav-bg: rgba(14, 26, 21, 0.95);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    /* Aydınlık Tema - Temiz Zirve & Dağ Havası */
    --bg-dark: #f3f6f4;
    --bg-body-radial: radial-gradient(at 15% 15%, rgba(16, 185, 129, 0.12) 0px, transparent 50%), radial-gradient(at 85% 20%, rgba(234, 88, 12, 0.08) 0px, transparent 50%);
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-card-glass: rgba(255, 255, 255, 0.92);
    --bg-input: #f8fafc;
    --border-color: rgba(0, 0, 0, 0.09);
    --border-highlight: rgba(234, 88, 12, 0.35);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --heading-color: #0f172a;

    --primary: #ea580c;
    --primary-hover: #c2410c;
    --primary-glow: rgba(234, 88, 12, 0.25);
    
    --emerald: #059669;
    --emerald-dark: #047857;
    --emerald-glow: rgba(5, 150, 105, 0.25);
    
    --cyan: #0284c7;
    --cyan-dark: #0369a1;
    
    --danger: #dc2626;
    --danger-glow: rgba(220, 38, 38, 0.4);
    --warning: #d97706;

    --header-bg: rgba(255, 255, 255, 0.92);
    --mobile-nav-bg: rgba(255, 255, 255, 0.96);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Temel & Mobil Optimizasyonu
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    background-image: var(--bg-body-radial);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ==========================================================================
   Header & Navigasyon
   ========================================================================== */
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    width: 100%;
    max-width: 100vw;
    transition: background 0.3s ease, padding-top 0.2s ease;
}

/* Mobil Uygulama / PWA / Webview Standalone Modunda Status Bar (Çentik / Pil / Saat) Boşluğu */
@media all and (display-mode: standalone), all and (display-mode: fullscreen), all and (display-mode: minimal-ui) {
    .header-main {
        padding-top: max(38px, calc(10px + env(safe-area-inset-top, 0px)));
    }
}

.is-standalone-app .header-main {
    padding-top: max(38px, calc(10px + env(safe-area-inset-top, 0px)));
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--heading-color);
    letter-spacing: -0.5px;
    flex-shrink: 0;
    text-decoration: none;
    white-space: nowrap;
}

.brand-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    border: 2px solid var(--primary);
    flex-shrink: 0;
    overflow: hidden;
    padding: 2px;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.brand-logo .logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex-wrap: nowrap;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--heading-color);
    background: rgba(125, 125, 125, 0.1);
}

.nav-links a.active {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--primary);
}

.user-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-dropdown-item {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 230px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1100;
    backdrop-filter: blur(14px);
}

.nav-dropdown-item:hover .nav-dropdown-menu,
.nav-dropdown-item:focus-within .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-menu a {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 107, 0, 0.12);
    color: var(--primary);
}

.header-user-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-user-info {
    text-align: right;
    line-height: 1.2;
}

.header-user-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--heading-color);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-role {
    font-size: 0.72rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.header-avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.header-logout-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444 !important;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-logout-btn:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   Etkinlik Sekmeleri ve Kartları
   ========================================================================== */
.event-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    overflow-x: auto;
}

.event-tab-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.event-tab-btn:hover {
    color: var(--heading-color);
    background: var(--bg-card-hover);
}

.event-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.event-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
}

.event-card-item:hover {
    border-color: var(--border-highlight);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.event-status-badge {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-open {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-waiting {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-completed {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.participant-avatars-stack {
    display: flex;
    align-items: center;
}

.participant-avatar-chip {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    margin-left: -8px;
}

.participant-avatar-chip:first-child {
    margin-left: 0;
}

/* ==========================================================================
   Ana Kapsayıcı
   ========================================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
    width: 100%;
}

/* ==========================================================================
   Hero & Zirve Banner
   ========================================================================== */
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(18, 32, 27, 0.7) 100%);
    border: 1px solid var(--border-color);
    padding: 36px 32px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .hero-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-color: rgba(5, 150, 105, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

/* ==========================================================================
   Kartlar & Grid Yapıları
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-main-side {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.3s ease;
}

.card:hover {
    border-color: var(--border-highlight);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.card-title {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Haftalık Program & 4 Gün Katılım Kartı
   ========================================================================== */
.event-featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    box-shadow: var(--shadow-card);
}

.event-featured-badge {
    position: absolute;
    top: -12px;
    right: 28px;
    background: linear-gradient(135deg, var(--primary), #e05a00);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 20px 0;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading-color);
    font-family: var(--font-heading);
}

/* 4 Gün Kuralı Geri Sayım Alanı */
.countdown-box {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 14px;
}

.countdown-box.is-open {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}

.countdown-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.countdown-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.countdown-box.is-open .countdown-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald);
}

.countdown-title {
    font-weight: 700;
    color: var(--heading-color);
    font-size: 1rem;
}

.countdown-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ==========================================================================
   Butonlar & Etkileşimler
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    color: #fff;
    opacity: 0.95;
}

.btn-emerald {
    background: linear-gradient(135deg, var(--emerald) 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--emerald-glow);
}

.btn-emerald:hover {
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(125, 125, 125, 0.1);
    color: var(--heading-color);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--danger-glow);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   KAYBOLDUM / SOS BUTONLARI (GÜVENLİ & ERİŞİLEBİLİR KONUMLANDIRMA)
   ========================================================================== */
.header-sos-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: var(--danger);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    animation: pulseSosSubtle 2.5s infinite;
}

.header-sos-btn:hover {
    background: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
    box-shadow: 0 4px 14px var(--danger-glow);
    transform: translateY(-1px);
}

@keyframes pulseSosSubtle {
    0% { border-color: rgba(239, 68, 68, 0.45); }
    50% { border-color: var(--danger); box-shadow: 0 0 10px rgba(239, 68, 68, 0.35); }
    100% { border-color: rgba(239, 68, 68, 0.45); }
}

.drawer-sos-card {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--danger-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drawer-sos-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--danger-glow);
}

.drawer-sos-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #ffffff;
    flex-shrink: 0;
}

/* ==========================================================================
   Harita Konteyneri (Leaflet)
   ========================================================================== */
.map-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.map-container {
    width: 100%;
    height: 480px;
    background: #0d1714;
}

.map-stats-overlay {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    z-index: 500;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-chip {
    display: flex;
    flex-direction: column;
}

.stat-chip-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-chip-val {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
}

/* ==========================================================================
   Servis Yoklama Tablosu
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.custom-table tr:hover td {
    background: rgba(125, 125, 125, 0.05);
}

/* ==========================================================================
   Servis Biniş Yoklama - Kutu / Kart (Box) Tasarımı
   ========================================================================== */
.attendance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 16px;
}

.attendance-card-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid var(--warning);
}

.attendance-card-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.attendance-card-box.status-1 {
    border-top-color: var(--emerald);
    border-left: 3px solid var(--emerald);
}

.attendance-card-box.status-0 {
    border-top-color: var(--warning);
}

.attendance-card-box.status-2 {
    border-top-color: var(--danger);
    border-left: 3px solid var(--danger);
}

.attendance-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.attendance-box-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attendance-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-input);
    color: var(--primary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.attendance-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--heading-color);
    line-height: 1.25;
}

.attendance-blood-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    display: inline-block;
    margin-left: 6px;
}

.attendance-box-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-input);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.attendance-stop-chip {
    font-weight: 700;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
}

.attendance-phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.attendance-time-chip {
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.attendance-box-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.btn-board-toggle {
    padding: 10px 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-board-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--heading-color);
}

.btn-board-toggle:disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
    filter: grayscale(0.4);
}

.btn-board-toggle.active-1 {
    background: linear-gradient(135deg, var(--emerald) 0%, #047857 100%);
    color: #ffffff;
    border-color: var(--emerald);
    box-shadow: 0 4px 10px var(--emerald-glow);
}

.btn-board-toggle.active-0 {
    background: linear-gradient(135deg, var(--warning) 0%, #b45309 100%);
    color: #ffffff;
    border-color: var(--warning);
}

.btn-board-toggle.active-2 {
    background: linear-gradient(135deg, var(--danger) 0%, #991b1b 100%);
    color: #ffffff;
    border-color: var(--danger);
    box-shadow: 0 4px 10px var(--danger-glow);
}

.board-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.board-toggle-btn.status-0 {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.board-toggle-btn.status-1 {
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald);
    border-color: rgba(16, 185, 129, 0.4);
}

.board-toggle-btn.status-2 {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Canlı Parkur Kayıt Ekranı (GPS Tracker)
   ========================================================================== */
.gps-recorder-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.gps-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.15);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.gps-live-indicator .dot {
    width: 10px;
    height: 10px;
    background: var(--emerald);
    border-radius: 50%;
    animation: blinkGps 1s infinite;
}

@keyframes blinkGps {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.gps-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.gps-metric-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.gps-metric-val {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
}

.gps-metric-val.highlight {
    color: var(--primary);
}

.gps-metric-val.cyan {
    color: var(--cyan);
}

.gps-metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

/* ==========================================================================
   Formlar & Giriş Alanları
   ========================================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control, .form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ==========================================================================
   Modallar (Katılım, SOS, Bilgi)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: max(20px, calc(20px + env(safe-area-inset-top, 0px))) max(16px, env(safe-area-inset-right, 0px)) max(20px, calc(20px + env(safe-area-inset-bottom, 0px))) max(16px, env(safe-area-inset-left, 0px));
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.2s ease;
    overflow: hidden;
}

.modal-backdrop.show .modal-content {
    transform: translateY(0);
}

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

.modal-body {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   Mobil Alt Gezinme Çubuğu (PWA Style)
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    z-index: 900;
    padding-top: 8px;
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

@media all and (display-mode: standalone), all and (display-mode: fullscreen) {
    .mobile-bottom-nav {
        padding-bottom: max(18px, calc(10px + env(safe-area-inset-bottom, 0px)));
    }
}

.is-standalone-app .mobile-bottom-nav {
    padding-bottom: max(18px, calc(10px + env(safe-area-inset-bottom, 0px)));
}

.mobile-nav-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav-item i {
    font-size: 1.25rem;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
    color: var(--primary);
}

/* ==========================================================================
   Profil Sayfası Sekmeleri & Kartları
   ========================================================================== */
.profile-hero {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-card);
}

.profile-avatar-wrapper {
    position: relative;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    border: 3.5px solid var(--primary);
    box-shadow: 0 4px 18px var(--primary-glow);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-avatar-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(255,107,0,0.4);
}

.profile-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-edit-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: 3px solid var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.profile-avatar-wrapper:hover .avatar-edit-badge {
    transform: scale(1.12);
    background: var(--primary-hover);
}

/* Avatar Yükleme & Kırpma/Sıkıştırma Arayüzü */
.avatar-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.avatar-action-btn:hover {
    background: rgba(255,107,0,0.12);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.avatar-action-btn.btn-camera {
    background: linear-gradient(135deg, rgba(255,107,0,0.15), rgba(255,107,0,0.05));
    border-color: rgba(255,107,0,0.35);
    color: var(--primary);
}

.avatar-action-btn.btn-gallery {
    background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(56,189,248,0.05));
    border-color: rgba(56,189,248,0.35);
    color: var(--cyan);
}

.avatar-preview-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 20px var(--primary-glow);
    overflow: hidden;
    position: relative;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compression-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(16,185,129,0.15);
    color: var(--emerald);
    border: 1px solid rgba(16,185,129,0.35);
    font-size: 0.8rem;
    font-weight: 700;
}

.profile-stat-badge {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

/* ==========================================================================
   Toast Bildirimleri
   ========================================================================== */
.toast-container {
    position: fixed;
    top: max(24px, calc(24px + env(safe-area-inset-top, 0px)));
    right: max(24px, calc(24px + env(safe-area-inset-right, 0px)));
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media all and (display-mode: standalone), all and (display-mode: fullscreen) {
    .toast-container {
        top: max(46px, calc(24px + env(safe-area-inset-top, 0px)));
    }
}

.is-standalone-app .toast-container {
    top: max(46px, calc(24px + env(safe-area-inset-top, 0px)));
}

.custom-toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    animation: slideInRight 0.3s ease;
}

.custom-toast.success { border-left-color: var(--emerald); }
.custom-toast.error { border-left-color: var(--danger); }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Üye Yönetimi, Rol Rozetleri ve Form Kutuları
   ========================================================================== */
.member-box-card {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
}

.member-box-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.badge-role-admin {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.35);
    font-weight: 700;
}

.badge-role-guide {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-weight: 700;
}

.badge-role-member {
    background: rgba(56, 189, 248, 0.12);
    color: var(--cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-weight: 600;
}

.stat-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* ==========================================================================
   Mobil Hamburger Butonu & Çekmece Menüsü (Off-canvas Drawer)
   ========================================================================== */
.mobile-menu-btn {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    padding-bottom: 16px;
    padding-left: 20px;
    padding-right: 20px;
    border-bottom: 1px solid var(--border-color);
}

@media all and (display-mode: standalone), all and (display-mode: fullscreen) {
    .mobile-drawer-header {
        padding-top: max(38px, calc(16px + env(safe-area-inset-top, 0px)));
    }
}

.is-standalone-app .mobile-drawer-header {
    padding-top: max(38px, calc(16px + env(safe-area-inset-top, 0px)));
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.drawer-close-btn:hover {
    color: var(--danger);
}

.drawer-user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border-color);
}

.drawer-content {
    padding: 16px 16px 90px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    padding-left: 8px;
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.drawer-links a:hover, .drawer-links a.active {
    background: rgba(255, 107, 0, 0.12);
    color: var(--primary);
    font-weight: 700;
}

.drawer-links a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* ==========================================================================
   Duyarlı Tasarım (Media Queries)
   ========================================================================== */
@media (max-width: 1150px) {
    .nav-links { display: none !important; }
    .mobile-menu-btn { display: flex !important; }
    .desktop-user-text { display: none !important; }
}

@media (max-width: 580px) {
    .header-logout-text { display: none !important; }
    .header-logout-btn { padding: 6px 8px !important; }
}

@media (min-width: 1151px) {
    .nav-links { display: flex !important; }
    .mobile-menu-btn { display: none !important; }
}

@media (max-width: 992px) {
    .grid-main-side { grid-template-columns: 1fr; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .event-meta-grid, .gps-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-bottom-nav { display: block; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.5rem; }
    .profile-hero {
        flex-direction: column;
        text-align: center;
    }
    .card {
        padding: 16px 14px;
    }
    .event-featured-card {
        padding: 20px 14px;
    }
    .event-featured-badge {
        right: 14px;
        top: -10px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    .countdown-box {
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
    }
    .countdown-status {
        width: 100%;
    }
    .attendance-grid {
        grid-template-columns: 1fr !important;
    }
    .event-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }
    .section-header-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .section-header-flex > .btn,
    .section-header-flex > a.btn,
    .section-header-flex > button.btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    .nav-container {
        padding: 0 10px;
    }
    .brand-logo .logo-text {
        font-size: 1.05rem;
    }
    .brand-logo .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .theme-toggle-btn, .mobile-menu-btn {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    .attendance-card-box {
        padding: 12px;
    }
    .stat-chip-val {
        font-size: 0.95rem;
    }
    .attendance-box-actions {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
    }
    .btn-board-toggle {
        padding: 8px 2px;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   ZİRVE DAĞCILIK ANİMASYONLU SPLASH EKRANI (ZİRVEYE ÇIKAN IŞIK)
   ========================================================================== */
.zirve-splash-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 999999;
    background: #030806;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.zirve-splash-screen.splash-hiding {
    opacity: 0;
    transform: translateY(-24px) scale(1.03);
    pointer-events: none;
}

.splash-backdrop-radial {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 38%, rgba(16, 185, 129, 0.18) 0%, rgba(255, 107, 0, 0.1) 40%, rgba(3, 8, 6, 0.98) 75%);
}

.splash-particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.splash-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8, 0 0 16px #ffffff;
    animation: splashTwinkle 2.5s infinite alternate ease-in-out;
}

.splash-star.s1 { top: 18%; left: 14%; animation-delay: 0.2s; }
.splash-star.s2 { top: 12%; left: 78%; animation-delay: 0.7s; }
.splash-star.s3 { top: 28%; left: 88%; animation-delay: 1.1s; }
.splash-star.s4 { top: 35%; left: 8%;  animation-delay: 0.4s; }
.splash-star.s5 { top: 15%; left: 45%; animation-delay: 1.4s; }
.splash-star.s6 { top: 8%;  left: 28%; animation-delay: 0.9s; }

@keyframes splashTwinkle {
    0% { opacity: 0.2; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1.4); }
}

.splash-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    padding: 24px;
    text-align: center;
}

.splash-mountain-container {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 600 / 420;
    margin-bottom: 20px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
}

.splash-mountain-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Zirve Güneş Parıltısı */
.splash-summit-sunrise {
    transform-origin: 300px 30px;
    animation: splashSunrisePulse 2.4s infinite alternate ease-in-out;
}

@keyframes splashSunrisePulse {
    0% { transform: scale(0.85); opacity: 0.35; }
    100% { transform: scale(1.15); opacity: 0.65; }
}

/* Logodaki Kırmızı Z Şeklindeki Tırmanış Rotası Arka Parıltısı */
.splash-z-trail-bg {
    filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.7));
    animation: splashRedZPulse 2.4s infinite alternate ease-in-out;
}

@keyframes splashRedZPulse {
    0% { opacity: 0.45; stroke-width: 7.5; }
    100% { opacity: 0.85; stroke-width: 9.5; }
}

/* Zirveye Tırmanan Işık İzi (Z Trail) */
.splash-climbing-trail {
    stroke-dasharray: 1100;
    stroke-dashoffset: 1100;
    animation: splashDrawRidgeTrail 1.75s cubic-bezier(0.35, 0, 0.25, 1) forwards;
}

@keyframes splashDrawRidgeTrail {
    0% { stroke-dashoffset: 1100; opacity: 0.2; }
    10% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Zirveye Tırmanan Işık Küresi */
.splash-light-orb {
    transform-origin: center;
}

/* Zirve Patlama Parıltısı (Starburst) */
.splash-summit-burst {
    transform-origin: 300px 25px;
    opacity: 0;
    transform: scale(0.15);
    animation: splashBurstFlare 0.8s 1.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splashBurstFlare {
    0% { opacity: 0; transform: scale(0.15) rotate(0deg); }
    40% { opacity: 1; transform: scale(1.3) rotate(45deg); }
    100% { opacity: 0.95; transform: scale(1) rotate(90deg); }
}

/* Başlık ve Marka Bölümü */
.splash-brand-showcase {
    opacity: 0;
    transform: translateY(22px);
    animation: splashBrandReveal 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splashBrandReveal {
    0% { opacity: 0; transform: translateY(22px); }
    100% { opacity: 1; transform: translateY(0); }
}

.splash-logo-badge {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #ffffff;
    padding: 3px;
    border: 3px solid #ff6b00;
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.7), 0 0 50px rgba(16, 185, 129, 0.35);
    animation: splashLogoFloat 2.6s infinite alternate ease-in-out;
}

.splash-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

@keyframes splashLogoFloat {
    0% { transform: scale(0.95); box-shadow: 0 0 18px rgba(255, 107, 0, 0.5); }
    100% { transform: scale(1.06); box-shadow: 0 0 35px rgba(255, 107, 0, 0.9), 0 0 60px rgba(16, 185, 129, 0.45); }
}

.splash-chip-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.splash-hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    line-height: 1.15;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
    margin-bottom: 4px;
}

.splash-hero-title .splash-accent {
    color: #ff6b00;
    margin-left: 5px;
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
}

.splash-hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #38bdf8;
    margin-bottom: 22px;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.splash-meter-bar {
    width: 170px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    margin: 0 auto 12px;
    overflow: hidden;
}

.splash-meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #38bdf8, #ff6b00);
    border-radius: 999px;
    box-shadow: 0 0 10px #ff6b00;
    animation: splashMeterProgress 2.2s linear forwards;
}

@keyframes splashMeterProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.splash-tap-skip {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.6px;
    font-weight: 500;
    transition: color 0.2s;
}

.zirve-splash-screen:hover .splash-tap-skip {
    color: rgba(255, 255, 255, 0.85);
}

