:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #f59e0b;
    --bg: #0b0f1a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body {
    background: var(--bg);
    background-image: 
        radial-gradient(circle at 20% 35%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(79, 172, 254, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex; flex-direction: column;
    overflow-x: hidden;
}

/* --- NAVIGASYON --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 8%;
    background: rgba(11, 15, 26, 0.9); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
}
.logo {
    font-size: 2rem; font-weight: 900; letter-spacing: -1.5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-clip: text; -webkit-background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    cursor: pointer; z-index: 1001;
}
nav ul { display: flex; list-style: none; gap: 2.5rem; }
nav a { text-decoration: none; color: var(--text-dim); font-weight: 600; transition: 0.3s; font-size: 0.95rem; }
nav a:hover, nav a.active { color: var(--primary); text-shadow: 0 0 15px rgba(0, 242, 254, 0.4); }
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: white; z-index: 1001; }

/* --- ORTAK ALANLAR --- */
.container { max-width: 1300px; margin: 0 auto; padding: 4rem 5%; flex: 1; width: 100%; }
.hero h1 { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; text-align: center; }
.hero p { text-align: center; max-width: 700px; margin: 0 auto; color: var(--text-dim); }
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-clip: text; -webkit-background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}

/* --- LAYOUT & FORM --- */
.main-layout { display: grid; grid-template-columns: 380px 1fr; gap: 3rem; align-items: start; margin-top: 2rem; }
.page-header { margin-bottom: 3rem; border-left: 4px solid var(--primary); padding-left: 1.5rem; }
.page-header h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; }
.sticky-form { position: sticky; top: 120px; z-index: 10; }
.glass-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 24px; padding: 2rem;
    backdrop-filter: blur(12px); box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.panel-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; }
.dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); }

/* --- INPUTLAR --- */
input, select, textarea {
    width: 100%; background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border); padding: 1rem; border-radius: 12px;
    color: white !important; outline: none; transition: 0.3s; font-size: 1rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); background-color: rgba(255, 255, 255, 0.1) !important; }
option { background-color: var(--bg); color: white; }
.input-wrapper { display: flex; flex-direction: column; gap: 0.5rem; }
.floating-group { position: relative; margin-bottom: 1.2rem; }
.floating-group input, .floating-group select { padding: 1.4rem 1rem 0.6rem; }
.floating-group label {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--text-dim); transition: 0.3s; pointer-events: none; font-size: 0.9rem;
}
.floating-group input:focus + label, .floating-group input:not(:placeholder-shown) + label {
    top: 12px; font-size: 0.7rem; color: var(--primary); font-weight: 700;
}
textarea { min-height: 100px; resize: vertical; margin-bottom: 1.5rem; }

/* --- RESİM YÜKLEME --- */
.file-upload-container { margin-bottom: 1.5rem; }
#imageInput { display: none; }
.file-label {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 1rem; background: rgba(255, 255, 255, 0.05); border: 1px dashed var(--border);
    border-radius: 12px; cursor: pointer; transition: 0.3s; font-weight: 600; color: var(--text-dim);
}
.file-label:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--primary); color: var(--primary); }
#imagePreview {
    margin-top: 1rem; width: 100%; height: 150px; border-radius: 12px;
    background-size: cover; background-position: center; border: 1px solid var(--border); display: none;
}

/* --- BUTONLAR --- */
.glow-button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white; border: none; padding: 1.2rem; border-radius: 12px;
    font-weight: 800; cursor: pointer; text-transform: uppercase; width: 100%;
    transition: 0.3s; box-shadow: 0 0 20px rgba(0, 242, 254, 0.2); letter-spacing: 1px;
}
.glow-button:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0, 242, 254, 0.4); }
.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white; border: none; padding: 1rem 2rem; border-radius: 12px;
    cursor: pointer; font-weight: bold; transition: 0.3s;
}
.btn-primary:hover { transform: scale(1.02); }

/* --- İLAN KARTLARI --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.ad-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border);
    border-radius: 20px; padding: 1rem; transition: 0.4s;
    display: flex; flex-direction: column; min-height: 320px; position: relative;
    opacity: 0; transform: translateY(20px); animation: fadeInCard 0.6s ease-out forwards;
}
@keyframes fadeInCard { to { opacity: 1; transform: translateY(0); } }
.ad-card:hover { transform: translateY(-8px); border-color: var(--primary); background: rgba(0, 242, 254, 0.03); }
.ad-card-image {
    width: 100%; height: 180px; background-color: rgba(0,0,0,0.2);
    background-size: cover; background-position: center; border-radius: 16px;
    margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.05); cursor: pointer;
    position: relative; /* Damga için gerekli */
}
.ad-card h3 { font-size: 1.2rem; margin-top: 0.5rem; color: white; }

/* İlan Kartı Alt Kısım ve Butonlar */
.ad-card-footer {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 15px; width: 100%;
}
.phone-link {
    flex: 1; background: rgba(255, 255, 255, 0.1); color: white;
    text-decoration: none; padding: 10px; border-radius: 12px;
    text-align: center; font-size: 0.9rem; transition: 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}
.phone-link:hover { background: rgba(255, 255, 255, 0.2); }

.btn-message {
    flex: 1; background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #38bdf8; border: 1px solid #38bdf8;
    padding: 10px; border-radius: 12px; cursor: pointer;
    font-size: 0.9rem; font-weight: bold; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-message:hover { background: #38bdf8; color: #0f172a; box-shadow: 0 0 15px rgba(56, 189, 248, 0.4); }

.badge-owner {
    flex: 1; text-align: center; color: #f59e0b; font-size: 0.85rem; font-weight: bold;
    background: rgba(245, 158, 11, 0.1); padding: 10px; border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* --- YENİ ŞİKAYET BUTONU (MODERN) --- */
.btn-report {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.4); /* Yarı saydam siyah */
    backdrop-filter: blur(4px);
    color: #f87171; /* Soluk kırmızı */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-report:hover {
    background: #ef4444; /* Canlı kırmızı */
    color: white;
    transform: scale(1.1) rotate(10deg);
}

/* --- SATILDI DAMGASI --- */
.sold-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background-color: rgba(220, 38, 38, 0.95);
    color: white;
    padding: 10px 30px;
    font-size: 24px;
    font-weight: 900;
    border: 4px solid white;
    border-radius: 8px;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    letter-spacing: 2px;
    pointer-events: none;
}

/* Satılan kart stili */
.ad-card.sold .ad-card-image { filter: grayscale(100%); opacity: 0.7; }
.ad-card.sold .ad-card-body { opacity: 0.6; }
.btn-disabled { background: #475569 !important; color: #cbd5e1 !important; cursor: not-allowed; box-shadow: none !important; }

/* --- SATILDI İŞLEM BUTONU --- */
.btn-sold-action {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.2);
    justify-content: center;
}
.btn-sold-action:hover { transform: translateY(-2px); box-shadow: 0 6px 10px rgba(34, 197, 94, 0.3); }
.btn-sold-action.undo {
    background: linear-gradient(135deg, #3b82f6, #2563eb); /* Geri al için mavi */
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

/* --- İSTATİSTİK & FAQ & ARAMA --- */
.stats-container { display: flex; justify-content: center; gap: 4rem; margin: 4rem 0; flex-wrap: wrap; }
.stat-box {
    text-align: center; background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border); padding: 2rem; border-radius: 20px; min-width: 200px;
    backdrop-filter: blur(10px); transition: 0.3s;
}
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--primary); margin-bottom: 0.5rem; display: block; }
.stat-label { color: var(--text-dim); font-size: 0.9rem; font-weight: 600; }

/* FAQ (SSS) DÜZELTMESİ (ÖNEMLİ) */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-btn {
    width: 100%;
    background-color: transparent !important; /* Arkaplanı zorla şeffaf yap */
    background: none !important;
    border: none;
    padding: 1.5rem 0;
    color: white !important; /* Yazı rengi beyaz */
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    -webkit-appearance: none; /* Tarayıcı stilini sil */
    appearance: none;
    box-shadow: none !important;
    transition: 0.3s;
}

.faq-btn:hover {
    color: var(--primary) !important;
}

.faq-btn .arrow { transition: 0.3s; font-size: 0.8rem; }
.faq-btn.active .arrow { transform: rotate(180deg); color: var(--primary); }

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-dim);
    font-size: 0.95rem;
}
.faq-content p { padding-bottom: 1.5rem; }

.search-container { margin-bottom: 1rem; position: relative; width: 100%; }
.search-input { width: 100%; padding: 1.2rem 1rem 1.2rem 3rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 12px; color: white; font-size: 1rem; outline: none; transition: 0.3s; }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(0, 242, 254, 0.1); }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); opacity: 0.5; font-size: 1.2rem; }
.filter-bar { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 1px solid var(--border); color: var(--text-dim); padding: 0.6rem 1.2rem; border-radius: 20px; cursor: pointer; transition: 0.3s; }
.filter-btn.active, .filter-btn:hover { background: var(--card-bg); border-color: var(--primary); color: white; }
.badge { padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.badge-loss { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-find { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-part { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }

/* --- YUKARI ÇIK BUTONU & LOAD MORE --- */
#scrollTopBtn {
    position: fixed; bottom: 30px; left: 30px; z-index: 2999;
    width: 50px; height: 50px; border-radius: 50%;
    background: #334155; color: white; border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer; font-size: 1.5rem; display: none; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.3s;
}
#scrollTopBtn.show { display: flex; opacity: 1; visibility: visible; }
#scrollTopBtn:hover { transform: translateY(-3px); background: #475569; }

#loadMoreBtn {
    display: block; width: 200px; margin: 30px auto; padding: 12px;
    background: #334155; color: white; border: none; border-radius: 25px;
    cursor: pointer; font-weight: bold; font-size: 14px;
    transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
#loadMoreBtn:hover { background: #475569; transform: translateY(-2px); }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--bg), var(--primary)); border-radius: 5px; border: 2px solid var(--bg); }

/* --- LIGHTBOX & TOAST --- */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px); z-index: 2000; display: none; justify-content: center; align-items: center; animation: fadeIn 0.3s ease;
}
.lightbox-img { max-width: 90%; max-height: 90%; border-radius: 12px; box-shadow: 0 0 50px rgba(0, 242, 254, 0.2); transform: scale(0.9); transition: 0.3s; }
.lightbox-overlay.active .lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: white; cursor: pointer; }
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: rgba(15, 23, 42, 0.95); border-left: 4px solid var(--primary); color: white;
    padding: 1rem 1.5rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-width: 300px; animation: slideIn 0.3s forwards; display: flex; align-items: center; gap: 10px;
}
.toast.error { border-color: #ef4444; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* --- FOOTER --- */
footer {
    background: rgba(15, 23, 42, 0.95); border-top: 1px solid var(--border);
    padding: 4rem 5% 2rem; margin-top: 5rem; font-size: 0.9rem; color: var(--text-dim);
}
.footer-content {
    max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem; margin-bottom: 3rem;
}
.footer-col h3 { color: white; margin-bottom: 1.5rem; font-weight: 800; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { text-decoration: none; color: var(--text-dim); transition: 0.3s; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; text-align: center; }

/* --- CHAT SİSTEMİ & BİLDİRİMLER --- */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #2563eb, #00f2fe);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 3000;
    transition: transform 0.2s;
    
    /* Emoji Ayarları */
    font-size: 32px;
    line-height: 1;
    text-align: center;
    color: white;
}

.floating-chat-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px);
    z-index: 4000; display: none; justify-content: center; align-items: center;
    animation: fadeIn 0.3s ease;
}
.chat-box {
    width: 90%; max-width: 400px; height: 80vh;
    background: #0f172a; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}
.chat-header {
    padding: 15px; background: #1e293b; border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
}
.chat-list-item {
    display: flex; align-items: center; gap: 15px; padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.2s; position: relative;
}
.chat-list-item:hover { background: rgba(255,255,255,0.05); }
.chat-avatar {
    width: 45px; height: 45px; background: #334155; color: white;
    border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem;
}
.chat-info { flex: 1; overflow: hidden; }
.chat-name { font-weight: bold; color: white; display: block; margin-bottom: 3px; }
.chat-preview { font-size: 0.85rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.chat-messages {
    flex: 1; padding: 20px; overflow-y: auto;
    background-color: #0b1120;
    background-image: radial-gradient(#1e293b 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex; flex-direction: column; gap: 10px;
}
.message-bubble {
    max-width: 80%; padding: 10px 15px; font-size: 0.95rem; line-height: 1.4; position: relative;
    word-wrap: break-word; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.msg-me { align-self: flex-end; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; border-radius: 15px 15px 2px 15px; }
.msg-other { align-self: flex-start; background: #334155; color: #e2e8f0; border-radius: 15px 15px 15px 2px; }

.chat-input-area { padding: 10px 15px; background: #1e293b; display: flex; gap: 10px; align-items: center; }
#chatInput { flex: 1; background: #0f172a; border: 1px solid rgba(255,255,255,0.1); color: white; padding: 12px 15px; border-radius: 25px; outline: none; }
.chat-input-area button {
    width: 45px; height: 45px; border-radius: 50%; background: #2563eb; color: white;
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s;
}
.chat-input-area button:hover { transform: scale(1.1); background: #3b82f6; }
.chat-delete-btn {
    background: none; border: none; color: #94a3b8; cursor: pointer;
    font-size: 14px; padding: 8px; margin-left: 10px; transition: 0.2s; z-index: 10;
}
.chat-delete-btn:hover { color: #ef4444; transform: scale(1.2); }

/* Bildirim Rozeti */
.notification-badge {
    position: absolute; top: 0; right: 0;
    background-color: #ef4444; color: white; border-radius: 50%; width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: bold; border: 2px solid #0b0f1a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); animation: bounce 0.5s;
}
.menu-badge {
    background-color: #ef4444; color: white; border-radius: 10px;
    padding: 2px 8px; font-size: 11px; margin-left: 8px; font-weight: bold; vertical-align: middle;
}
@keyframes bounce { 0% { transform: scale(0); } 80% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- MEDYA SORGULARI --- */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; gap: 2rem; }
    .sticky-form { position: relative; top: 0; }
    .menu-toggle { display: block; }
    nav { padding: 1.5rem 5%; }
    nav ul {
        position: fixed; top: 75px; right: -100%; width: 100%; height: auto;
        background: rgba(11, 15, 26, 0.98); flex-direction: column; align-items: center;
        padding: 2rem 0; border-bottom: 1px solid var(--border); transition: 0.4s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    nav ul.active { right: 0; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .btn-primary { width: 100%; text-align: center; margin-bottom: 10px; }
    .filter-bar { justify-content: center; }
    .ad-card-footer { flex-direction: column; gap: 10px; align-items: flex-start; }
    .ad-card-footer button, .ad-card-footer a { width: 100%; justify-content: center; }
}