/* >> BAHÇELİEVLER NET - CYBER BLUE STABIL V2.6 << */
:root {
    --bg: #f8f9fa;
    --cyber-blue: #00d2ff;
    --cyber-pink: #ff007f;
    --dark: #212529;
    --app-blue: #007bff; /* İstenen canlı mavi tonu */
}

body {
    background: var(--bg);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dark);
    padding-bottom: 80px;
    overflow-x: hidden;
}

/* SAYFA YAPISI */
.page { display: none; padding: 15px; box-sizing: border-box; }
.page.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* BAŞLIK VE KARTLAR */
.cyber-header { text-align: center; text-transform: uppercase; letter-spacing: 2px; font-size: 1.2rem; margin: 20px 0; }
.neon-text { color: var(--cyber-pink); font-weight: bold; }

.cyber-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: 4px solid var(--cyber-blue);
    padding: 15px;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
}

/* SOSYAL BUTONLAR - GÖRSELLE TAM UYUMLU */
.cyber-btn-block {
    display: flex;
    align-items: center;
    background: #fff;
    color: var(--dark);
    text-decoration: none;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.cyber-btn-block:active { transform: scale(0.98); }

.cyber-btn-block i {
    margin-right: 15px;
    font-size: 1.3rem;
    color: var(--app-blue);
    width: 25px;
    text-align: center;
}

/* FORM ELEMENTLERİ */
.cyber-form input, .cyber-form textarea, .cyber-form select {
    width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #ced4da; border-radius: 5px; box-sizing: border-box; font-size: 16px !important;
}

.cyber-submit { width: 100%; background: var(--dark); color: #fff; border: none; padding: 15px; font-weight: bold; text-transform: uppercase; cursor: pointer; }

/* MODAL - İLAN DETAYI (FULL STABILIZE) */
.modal {
    position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9);
    display: flex; align-items: center; justify-content: center;
}

.modal-content {
    width: 95%; max-width: 500px; max-height: 90vh; background: #fff; border-radius: 15px; overflow-y: auto; position: relative;
}

/* 3 RESİMLİ GALERİ MOTORU */
#modal-image-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 300px;
    background: #000;
}

#modal-image-gallery img {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    scroll-snap-align: start;
}

#modal-image-gallery::-webkit-scrollbar { height: 5px; }
#modal-image-gallery::-webkit-scrollbar-thumb { background: var(--cyber-pink); border-radius: 10px; }

/* MODAL BUTONLARI VE PANEL */
.modal-info-panel { padding: 20px; }
.close-detail { position: absolute; right: 15px; top: 10px; font-size: 30px; cursor: pointer; color: #fff; z-index: 100; text-shadow: 0 0 10px #000; }

#modal-buy-btn {
    background: var(--cyber-blue) !important;
    margin-bottom: 10px;
    transition: 0.3s;
}

#modal-delete-btn-inner {
    background: #ff4d4d !important;
    font-size: 0.8rem;
    padding: 10px;
}

/* MAVİ NAVİGASYON */
.app-footer-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--app-blue) !important;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.15);
}

.nav-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7); /* Pasif beyazlar */
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.nav-item i { font-size: 1.4rem; margin-bottom: 3px; }

.nav-item.active {
    color: #ffffff; /* Aktif buton tam beyaz */
    font-weight: bold;
    transform: translateY(-2px);
}

@keyframes moveObstacle {
    0% { left: 100%; }
    100% { left: -50px; }
}

/* SLIDER TASARIMI */
.slider-container { height: 200px; overflow: hidden; position: relative; border-radius: 10px; margin-bottom: 20px; }
.slider-item { height: 100%; background-size: cover; background-position: center; display: none; align-items: center; justify-content: center; color: #fff; text-align: center; }

/* >> OYUN ELEMENTLERİ STABİLİZASYONU << */
#player {
    transition: bottom 0.1s; /* Zıplama yumuşaklığı */
}

#obstacle {
    /* games.js içindeki animasyonun çalışması için gerekli */
    animation-fill-mode: forwards; 
}

/* >> FIRSAT & İNDİRİM GÖRSEL UYUMU << */
#firsat-list img {
    max-height: 250px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

/* >> ÖĞRENCİLER SAYFASI ÖZEL RENK << */
.student-badge {
    background: #f3e5f5;
    color: #6f42c1;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.7rem;
}

/* >> SLIDER GEÇİŞ EFEKTİ << */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from { opacity: .4 } 
    to { opacity: 1 }
}

/* Kategori Filtre Tasarımı */
.category-filter-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 15px;
}

.filter-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.3s;
}

.filter-btn.active {
    background: #00d2ff;
    color: white;
    border-color: #00d2ff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

/* Modern İlan Kartları */
.ad-card.cyber-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.ad-card.cyber-card:hover {
    transform: translateY(-5px);
    border-color: #00d2ff;
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.15);
}

.ad-card img {
    border-radius: 12px !important; /* Daha yumuşak köşeler */
}