/* --- MEVCUT style.css DOSYASININ TAMAMI (GÜNCELLENMİŞ) --- */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --danger: #ef4444;
    --modal-overlay: rgba(0,0,0,0.5);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body.dark-mode {
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --bg-color: #111827;
    --card-bg: #1f2937;
    --text-dark: #f3f4f6;
    --text-light: #9ca3af;
    --border-color: #374151;
    --modal-overlay: rgba(255,255,255,0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; -webkit-tap-highlight-color: transparent; }

body { background-color: var(--bg-color); color: var(--text-dark); transition: background-color 0.3s, color 0.3s; overflow-x: hidden; }

/* GLOBAL */
.container { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }
input, select, textarea {
    background: var(--bg-color); color: var(--text-dark); padding: 12px; 
    border: 1px solid var(--border-color); border-radius: 8px; outline: none; 
    width: 100%; font-size: 0.95rem; box-sizing: border-box;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }

/* NAVBAR */
.navbar { background-color: var(--card-bg); padding: 0.8rem 2rem; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-color); }
.brand { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-decoration: none; white-space: nowrap; }
.nav-search-container { position: relative; margin: 0 20px; width: 400px; }
.nav-search-input { background: var(--bg-color); color: var(--text-dark); padding: 10px 15px; border-radius: 20px; border: 1px solid var(--border-color); outline: none; width: 100%; transition: all 0.3s; }
.nav-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.search-results { position: absolute; top: 110%; left: 0; width: 100%; background: var(--card-bg); border-radius: 8px; box-shadow: var(--shadow); display: none; z-index: 101; overflow: hidden; border: 1px solid var(--border-color); }
.search-results.active { display: block; }
.search-item { padding: 10px; display: flex; align-items: center; cursor: pointer; border-bottom: 1px solid var(--border-color); }
.search-item:hover { background: var(--bg-color); }
.search-item img { width: 30px; height: 30px; border-radius: 50%; margin-right: 10px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; white-space: nowrap; }

/* NAVBAR (Güncelleme) */
/* Mevcut .nav-links ve öncesi kalabilir, sadece butonları ekliyoruz */

/* --- İKON BUTONLAR (TEMA VE BİLDİRİM İÇİN) --- */
.icon-btn { 
    background: var(--bg-color); 
    border: 1px solid var(--border-color); 
    color: var(--text-dark); 
    width: 40px; height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; align-items: center; justify-content: center; 
    transition: all 0.2s; 
    position: relative; 
    font-size: 1.1rem;
    margin-left: 5px; /* Butonlar arası boşluk */
}
.icon-btn:hover { 
    background: var(--border-color); 
    color: var(--primary); 
}

/* Bildirim Rozeti (Kırmızı Yuvarlak) */
.nav-badge { 
    position: absolute; 
    top: -5px; right: -5px; 
    background: var(--danger); 
    color: white; 
    font-size: 0.7rem; 
    width: 18px; height: 18px; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-weight: bold; 
    border: 2px solid var(--card-bg);
}

/* --- BİLDİRİM AÇILIR MENÜSÜ --- */
.notification-dropdown { 
    position: absolute; 
    top: 55px; right: 0; 
    width: 320px; 
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
    display: none; 
    z-index: 2000; 
    max-height: 400px; 
    overflow-y: auto; 
}
.notification-dropdown.active { display: block; }

.notif-item { 
    padding: 15px; 
    border-bottom: 1px solid var(--border-color); 
    font-size: 0.9rem; 
    color: var(--text-dark); 
    cursor: pointer; 
}
.notif-item:hover { background: var(--bg-color); }
.notif-item.unread { 
    background: rgba(79, 70, 229, 0.1); /* Okunmamışlar hafif mor */
    border-left: 4px solid var(--primary); 
}

/* GRID & CARDS (YENİ TASARIM) */
.notes-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 25px; 
    padding-bottom: 20px; 
}

.note-card { 
    background: var(--card-bg); 
    border-radius: 12px; 
    /* padding: 1.5rem;  <-- BU ESKİ KODDU, SİLİNDİ. Resim kenara değsin diye padding 0 olmalı */
    padding: 0;
    box-shadow: var(--shadow); 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.2s; 
    height: 100%; 
    border: 1px solid var(--border-color); 
    overflow: hidden; 
}

.note-card:hover { transform: translateY(-5px); border-color: var(--primary); }

/* Yeni Resim Alanı */
.note-image-container {
    width: 100%;
    height: 180px; /* Resim yüksekliği sabit */
    position: relative;
    background: #e5e7eb;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

.note-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya sığdırır, bozmaz */
}

.note-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

/* Kart Gövdesi */
.note-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.note-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
    cursor: pointer;
    color: var(--text-dark);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.note-course {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Kullanıcı Alanı (Avatar + İsim) */
.note-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto; /* En alta it */
    cursor: pointer;
    padding-top: 10px;
}

.note-user img { 
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 1px solid var(--border-color);
}
.note-user span { font-size: 0.9rem; font-weight: 500; color: var(--text-dark); }

/* Kart Altı (Beğen / İncele Butonları) */
.note-card-footer { 
    padding: 10px 15px; 
    border-top: 1px solid var(--border-color); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: rgba(0,0,0,0.02);
}

.action-btn { 
    background: transparent; 
    border: none; 
    color: var(--text-light); 
    cursor: pointer; 
    font-size: 0.9rem; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    font-weight: 600;
}
.action-btn:hover { color: var(--primary); }
.action-btn.liked { color: var(--danger); }
.action-btn.delete-btn:hover { color: var(--danger); }

/* PROFIL */
.profile-layout { display: flex; gap: 2rem; align-items: start; }
.profile-sidebar { flex: 1; background: var(--card-bg); padding: 2rem; border-radius: 16px; text-align: center; position: sticky; top: 90px; border: 1px solid var(--border-color); min-width: 280px; }
.profile-content { flex: 3; width: 100%; }
.profile-img-wrapper { position: relative; width: 120px; height: 120px; margin: 0 auto 1.5rem; }
.profile-img-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary); background: var(--bg-color); }
.profile-edit-overlay { position: absolute; bottom: 0; right: 0; background: var(--primary); color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid white; }
.stats-box { display: flex; justify-content: center; gap: 15px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border-color); }
.stat-value { font-size: 1.2rem; font-weight: bold; color: var(--primary); display: block; }

/* TABS */
.tabs { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 5px; border-bottom: 1px solid var(--border-color); }
.tab-btn { background: var(--bg-color); border: none; padding: 10px 20px; border-radius: 8px 8px 0 0; cursor: pointer; white-space: nowrap; color: var(--text-dark); font-weight: 600; opacity: 0.7; transition: all 0.2s; }
.tab-btn:hover { opacity: 1; background: var(--border-color); }
.tab-btn.active { background: var(--card-bg); color: var(--primary); opacity: 1; border-bottom: 3px solid var(--primary); }
.tab-pane { display: none; animation: fadeIn 0.3s ease; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* COLLECTION CARD */
.collection-card { 
    background: var(--card-bg); 
    border: 2px solid var(--border-color); 
    border-radius: 12px; 
    padding: 30px 20px; 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.3s; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
}
.collection-card:hover { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); 
    transform: translateY(-5px);
}
.collection-card.add-collection-card {
    border-style: dashed;
    background: var(--bg-color);
}
.collection-card.add-collection-card:hover {
    border-color: var(--primary);
    background: var(--card-bg);
}
.collection-icon { 
    font-size: 3rem; 
    color: var(--primary); 
    margin-bottom: 10px;
}
.collection-name { 
    color: var(--text-dark); 
    font-weight: 600; 
    word-break: break-word;
}
.collection-input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-dark);
    font-size: 0.95rem;
    outline: none;
}
.collection-input:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* FORMS & FILTERS */
.auth-box { max-width: 400px; margin: 3rem auto; background: var(--card-bg); padding: 2rem; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.btn { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; text-align: center; display: inline-block; font-weight: 600; }
.btn:hover { background: var(--primary-hover); }
.btn-secondary { background-color: var(--text-light); }
.btn-danger { background-color: var(--danger); }
.filter-wrapper { background: var(--card-bg); padding: 1rem; border-radius: 12px; box-shadow: var(--shadow); display: flex; gap: 15px; align-items: center; margin-bottom: 2rem; border: 1px solid var(--border-color); }
.filter-wrapper select, .filter-wrapper input { flex: 1; min-width: 150px; }

/* TOAST */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--card-bg); color: var(--text-dark); padding: 15px 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-left: 5px solid var(--primary); min-width: 250px; transform: translateX(120%); transition: transform 0.3s ease; display: flex; align-items: center; justify-content: space-between; }
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: #ef4444; }

/* LOAD MORE */
.load-more-container { text-align: center; margin: 30px 0; }
.btn-load-more { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: 10px 30px; border-radius: 20px; font-weight: bold; cursor: pointer; }

/* --- YENİ: FOLLOW BUTTON STYLES --- */
.btn-follow {
    background: var(--primary); 
    color: white; 
    border: none;
    padding: 8px 25px; 
    border-radius: 20px; 
    cursor: pointer; 
    font-size: 0.95rem;
    font-weight: 600; 
    transition: all 0.2s; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-follow:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px); 
}
/* Takip Ediliyor (Following) Durumu - Gri Stil */
.btn-follow.following { 
    background-color: #e5e7eb; /* Açık gri */
    color: #374151; /* Koyu gri yazı */
    border: 1px solid #d1d5db; 
    box-shadow: none;
}
.btn-follow.following:hover {
    background-color: #d1d5db; /* Hoverda biraz daha koyu gri */
    transform: none;
}
/* Dark Mode için Following */
body.dark-mode .btn-follow.following {
    background-color: #374151;
    color: #e5e7eb;
    border-color: #4b5563;
}

/* --- YENİ: GUEST BLUR (MİSAFİR MODU) --- */
.guest-blur-wrapper { 
    position: relative; 
    grid-column: 1 / -1; /* Tüm genişliği kapla */
    margin-top: 10px; 
}
.blur-background { 
    filter: blur(8px); 
    opacity: 0.6; 
    pointer-events: none; 
    user-select: none; 
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.guest-cta-overlay { 
    position: absolute; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    background: var(--card-bg); 
    padding: 2rem; 
    border-radius: 16px; 
    text-align: center; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
    z-index: 10; 
    width: 90%; 
    max-width: 400px; 
    border: 1px solid var(--border-color); 
}

/* ADMIN & MODALS */
.admin-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 2rem; }
.stat-card { background: var(--card-bg); padding: 20px; border-radius: 12px; text-align: center; border: 1px solid var(--border-color); }
.stat-card h3 { font-size: 2rem; color: var(--primary); margin: 10px 0; }
.report-item { background: var(--card-bg); padding: 15px; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.report-actions { display: flex; gap: 10px; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--modal-overlay); backdrop-filter: blur(5px); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 1rem; }
.modal-overlay.active { display: flex; }
.detail-modal-content { background: var(--card-bg); width: 100%; max-width: 700px; max-height: 90vh; border-radius: 16px; padding: 2rem; overflow-y: auto; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid var(--border-color); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; color: var(--text-dark); z-index: 10; }
.detail-header { display: flex; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.detail-header img { width: 50px; height: 50px; border-radius: 50%; margin-right: 15px; border: 2px solid var(--primary); object-fit: cover; }
.detail-actions { display: flex; gap: 10px; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.detail-actions .btn { flex: 1; }

/* RESPONSIVE */
@media (max-width: 850px) {
    .navbar { flex-direction: column; align-items: stretch; gap: 15px; padding: 1rem; }
    .brand { text-align: center; }
    .nav-search-container { width: 100%; margin: 0; }
    .nav-links { justify-content: space-around; width: 100%; background: var(--bg-color); padding: 10px; border-radius: 12px; border: 1px solid var(--border-color); }
    .nav-links a { font-size: 0.9rem; padding: 5px; }
    .filter-wrapper { flex-direction: column; align-items: stretch; gap: 10px; }
    .filter-wrapper select, .filter-wrapper input { width: 100%; min-width: auto; }
    .profile-layout { flex-direction: column; gap: 1.5rem; }
    .profile-sidebar { width: 100%; position: static; margin-bottom: 0; padding: 1.5rem; }
    .auth-box { width: 100%; margin: 2rem 0; padding: 1.5rem; }
    .notes-grid { grid-template-columns: 1fr; gap: 15px; }
    .admin-stats-grid { grid-template-columns: 1fr; }
    .report-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .report-actions { width: 100%; justify-content: flex-end; }
    .detail-actions { flex-direction: column; }
    #note-upload-form .filter-wrapper { display: flex; flex-direction: column; }
}

/* ========================================= */
/* PROFESYONEL ADMIN DASHBOARD (YENİ)        */
/* ========================================= */

/* Layout */
body#page-admin { background-color: #f8fafc; display: flex; height: 100vh; overflow: hidden; }
body#page-admin .navbar { display: none; } /* Admin panelinde normal navbar'ı gizle */

.admin-wrapper { display: flex; width: 100%; height: 100%; }

/* Sidebar (Sol Menü) */
.admin-sidebar {
    width: 260px; background: #1e293b; color: #f1f5f9;
    display: flex; flex-direction: column; flex-shrink: 0;
    transition: all 0.3s;
}
.admin-sidebar-header { padding: 20px; font-size: 1.5rem; font-weight: bold; border-bottom: 1px solid #334155; color: #818cf8; display: flex; align-items: center; gap: 10px; }
.admin-menu { list-style: none; padding: 20px 10px; flex-grow: 1; }
.admin-menu li { margin-bottom: 5px; }
.admin-menu-btn {
    width: 100%; padding: 12px 15px; background: transparent; border: none;
    color: #94a3b8; text-align: left; cursor: pointer; border-radius: 8px;
    font-size: 0.95rem; font-weight: 500; display: flex; align-items: center; gap: 10px;
    transition: all 0.2s;
}
.admin-menu-btn:hover { background: #334155; color: white; }
.admin-menu-btn.active { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.admin-logout { margin: 20px; padding: 12px; background: #ef4444; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Main Content (Sağ Taraf) */
.admin-main { flex-grow: 1; overflow-y: auto; padding: 30px; background: #f8fafc; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-title { font-size: 1.8rem; font-weight: 800; color: #1e293b; }

/* Dashboard Cards */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
.dash-card { background: white; padding: 20px; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; display: flex; align-items: center; gap: 20px; }
.dash-icon { width: 50px; height: 50px; border-radius: 12px; background: #e0e7ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.dash-info h3 { font-size: 1.8rem; font-weight: 800; color: #1e293b; margin: 0; }
.dash-info p { margin: 0; color: #64748b; font-size: 0.9rem; }

/* Table / List Styles */
.admin-table-wrapper { background: white; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; overflow: hidden; }
.admin-item { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #f1f5f9; transition: background 0.1s; }
.admin-item:last-child { border-bottom: none; }
.admin-item:hover { background: #f8fafc; }
.item-info { flex-grow: 1; display: flex; align-items: center; gap: 15px; }
.item-img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid #e2e8f0; }
.item-text h4 { font-size: 0.95rem; margin-bottom: 3px; color: #1e293b; }
.item-text span { font-size: 0.8rem; color: #64748b; }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; }
.status-pending { background: #fff7ed; color: #c2410c; }
.status-approved { background: #f0fdf4; color: #15803d; }
.status-banned { background: #fef2f2; color: #b91c1c; }

/* --- GELİŞMİŞ MODAL (Kullanıcı Detayları) --- */
.user-detail-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; margin-top: 20px; }
.user-info-panel { text-align: center; background: #1f2937; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; }
.user-info-panel img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 4px solid white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); margin-bottom: 10px; }
.user-notes-panel { max-height: 400px; overflow-y: auto; color: black;}
.mini-note-item { background: white; border: 1px solid #e2e8f0; padding: 10px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }

/* Responsive Admin */
@media (max-width: 900px) {
    .admin-sidebar { width: 70px; }
    .admin-sidebar-header span, .admin-menu-btn span, .admin-logout span { display: none; }
    .admin-menu-btn { justify-content: center; padding: 15px 0; }
    .admin-sidebar-header { justify-content: center; padding: 20px 0; }
    .user-detail-grid { grid-template-columns: 1fr; }
}

/* Admin Kartları */
.pending-note-card, .user-mgmt-card {
    background: var(--card-bg); 
    border: 1px solid var(--border-color);
    border-radius: 10px; 
    padding: 20px; 
    margin-bottom: 15px;
    display: flex; 
    flex-direction: column; 
    gap: 10px;
    box-shadow: var(--shadow);
}

.user-mgmt-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* --- TAKİP BUTONU (MODERN GRİ STİL) --- */
.btn-follow {
    background: var(--primary); 
    color: white; 
    border: none;
    padding: 8px 25px; 
    border-radius: 20px; 
    cursor: pointer; 
    font-size: 0.9rem; 
    font-weight: 600; 
    transition: all 0.2s;
}

/* Takip Ediliyor Durumu (Gri) */
.btn-follow.following { 
    background-color: #e5e7eb; /* Açık gri */
    color: #374151; /* Koyu yazı */
    border: 1px solid #d1d5db; 
}
.btn-follow.following:hover {
    background-color: #ffe4e6; /* Üzerine gelince hafif kırmızı (Takibi bırak hissi) */
    color: #ef4444;
    border-color: #fda4af;
    content: "Takibi Bırak"; /* İstersen CSS ile metni değiştirebilirsin */
}

/* --- YENİ: DEMOGRAFİK İSTATİSTİKLER --- */
.stats-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-panel-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.stat-row-item {
    margin-bottom: 15px;
}

.stat-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #334155;
}

.stat-progress-bg {
    width: 100%;
    height: 8px;
    background-color: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.stat-progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Renkli barlar için alternatif (isteğe bağlı) */
.stat-panel-card:nth-child(2) .stat-progress-fill {
    background-color: #10b981; /* Sınıflar için yeşil */
}

@media (max-width: 768px) {
    .stats-grid-row { grid-template-columns: 1fr; }
}

/* --- YORUM BÖLÜMÜ CSS --- */
.comments-section {
    margin-top: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.comment-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.comment-header strong {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.comment-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.delete-comment-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.6;
    align-self: flex-start;
}

.delete-comment-btn:hover {
    opacity: 1;
}

/* LİDERLİK TABLOSU (YAN YANA 2 SÜTUN) */
.leaderboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* İki eşit sütun */
    gap: 30px;
    align-items: start;
}

/* Mobilde alt alta olsun */
@media (max-width: 768px) {
    .leaderboard-grid { grid-template-columns: 1fr; }
}

.leader-column {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.leader-header {
    background: rgba(79, 70, 229, 0.05);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
body.dark-mode .leader-header { background: rgba(255,255,255,0.05); }

.leader-header i { font-size: 2rem; margin-bottom: 10px; display:block; }
.leader-header h2 { margin: 0; color: var(--primary); font-size: 1.5rem; }
.leader-header p { margin: 5px 0 0; color: var(--text-light); font-size: 0.9rem; }

/* Liste elemanları */
.leader-list { padding: 10px; }
.leader-item {
    display: flex; align-items: center; padding: 12px;
    border-radius: 10px; margin-bottom: 8px; cursor: pointer;
    transition: all 0.2s; border: 1px solid transparent;
}
.leader-item:hover { background: var(--bg-color); transform: translateX(5px); }

/* Rütbe ve diğer stiller (Aynı kalabilir) */
.rank-box { width: 40px; height: 40px; display:flex; align-items:center; justify-content:center; font-weight:bold; margin-right:15px; }
.rank-1 .rank-box { color:#FFD700; font-size:1.5rem; }
.rank-2 .rank-box { color:#C0C0C0; font-size:1.4rem; }
.rank-3 .rank-box { color:#CD7F32; font-size:1.4rem; }
.rank-other .rank-num { background:var(--bg-color); width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.9rem; border:1px solid var(--border-color); }
.user-info { flex:1; display:flex; align-items:center; gap:10px; }
.user-info img { width:40px; height:40px; border-radius:50%; object-fit:cover; border:1px solid var(--border-color); }
.score-badge { background:var(--primary); color:white; padding:4px 10px; border-radius:15px; font-size:0.85rem; font-weight:bold; }

/* --- RÜTBE SİSTEMİ ROZETLERİ --- */
.rank-badge-container {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.profile-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

/* --- PROFESYONEL AYARLAR SAYFASI --- */
.container-settings { max-width: 1000px; }
.page-title { margin-bottom: 30px; font-size: 2rem; color: var(--primary); }

.settings-layout {
    display: grid;
    grid-template-columns: 250px 1fr; /* Sol menü 250px, sağ taraf kalanı doldurur */
    gap: 40px;
    align-items: start;
}

/* Sol Menü (Sidebar) */
.settings-sidebar { display: flex; flex-direction: column; gap: 20px; }
.settings-nav {
    display: flex; flex-direction: column; background: var(--card-bg);
    border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color);
}
.settings-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 20px; text-decoration: none;
    color: var(--text-dark); font-weight: 600; transition: 0.2s;
    border-left: 4px solid transparent;
}
.settings-nav-link:hover { background: var(--bg-color); }
.settings-nav-link.active {
    background: rgba(79, 70, 229, 0.08); color: var(--primary);
    border-left-color: var(--primary);
}
body.dark-mode .settings-nav-link.active { background: rgba(255,255,255,0.05); }
.settings-nav-link.text-danger:hover { background: #fef2f2; color: var(--danger); }
body.dark-mode .settings-nav-link.text-danger:hover { background: rgba(239,68,68,0.1); }

.btn-back-profile {
    text-decoration: none; color: var(--text-light); display: flex;
    align-items: center; gap: 8px; font-weight: 600; padding: 10px;
    transition: 0.2s;
}
.btn-back-profile:hover { color: var(--primary); transform: translateX(-5px); }

/* Sağ İçerik Alanı */
.settings-section { display: none; /* Varsayılan olarak gizli */ }
.settings-section.active { display: block; /* Sadece aktif olan görünür */ }
.section-title { margin-bottom: 5px; font-size: 1.5rem; }
.section-desc { color: var(--text-light); margin-bottom: 25px; }

.setting-card {
    background: var(--card-bg); border-radius: 12px;
    padding: 25px; border: 1px solid var(--border-color);
    margin-bottom: 25px;
}
.setting-card h3 { margin-bottom: 15px; font-size: 1.1rem; }

/* Form Elemanları */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); color: var(--text-light);}
.form-input {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border-color);
    border-radius: 8px; background: var(--bg-color); color: var(--text-dark);
    transition: 0.2s; outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.form-text { display: block; margin-top: 5px; font-size: 0.85rem; }
.text-muted { color: var(--text-light); }

/* Profil Fotoğrafı Kartı Özel Stili */
.profile-pic-card { display: flex; align-items: center; gap: 25px; }
.current-pic-wrapper img {
    width: 100px; height: 100px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--primary);
}
.pic-actions h3 { margin-bottom: 5px; }
.pic-actions p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 15px; }
.btn-sm { padding: 8px 15px; font-size: 0.9rem; width: auto; display: inline-flex; align-items: center; gap: 8px;}

/* Tehlikeli Bölge Kartı */
.danger-card {
    border-color: #fca5a5; background: #fef2f2;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
body.dark-mode .danger-card { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
.text-danger { color: var(--danger) !important; }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .settings-layout { grid-template-columns: 1fr; gap: 20px; }
    .settings-sidebar { margin-bottom: 20px; }
    .profile-pic-card { flex-direction: column; text-align: center; }
    .danger-card { flex-direction: column; text-align: center; }
}

/* KOLEKSİYON MODALI */
.collection-list {
    max-height: 300px;
    overflow-y: auto;
}

.collection-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.collection-item:hover {
    background: var(--bg-color);
}

.collection-item:last-child {
    border-bottom: none;
}

.collection-icon {
    width: 40px;
    height: 40px;
    background: #e0e7ff;
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.collection-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
}

/* Seçili olan koleksiyonu belli et */
.collection-item.selected {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid var(--primary);
}

/* PROFİL KOLEKSİYON GÖRÜNÜMÜ */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.collection-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    aspect-ratio: 1/1; /* Kare olması için */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    overflow: hidden;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

/* Klasörün içindeki 4 küçük resim efekti (opsiyonel basit hali) */
.collection-preview {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.collection-title {
    font-weight: 600;
    text-align: center;
    padding: 0 10px;
    font-size: 0.95rem;
}

.collection-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
}
.collection-back-btn:hover { color: var(--primary); }

/* --- BİLDİRİM KAPSAYICISI (EKSİK OLAN KISIM) --- */
.notif-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    margin-right: 5px;
}

/* --- BİLDİRİM BAŞLIĞI VE TEMİZLE BUTONU --- */
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color); /* Hafif farklı renk olsun */
    font-weight: bold;
    font-size: 0.9rem;
}

.clear-notif-btn {
    background: transparent;
    border: none;
    color: var(--danger); /* Kırmızı renk */
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.clear-notif-btn:hover {
    background: rgba(239, 68, 68, 0.1); /* Hover olunca hafif kırmızı zemin */
}

/* --- FORUM SAYFASI STİLLERİ --- */

.forum-layout {
    display: grid;
    grid-template-columns: 1fr 300px; /* Sol geniş, sağ 300px */
    gap: 30px;
    align-items: start;
}

/* Üst Arama ve Filtre Kartı */
.forum-header-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forum-search-box {
    position: relative;
}
.forum-search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}
.forum-search-box input {
    padding-left: 40px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
}

.forum-filters {
    display: flex;
    gap: 10px;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: 0.2s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Soru Kartları (StackOverflow Tarzı) */
.question-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.question-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

/* Sol Taraf: İstatistikler (Cevap Sayısı) */
.q-stats-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    text-align: center;
}
.q-answer-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
}
.q-answer-label {
    font-size: 0.75rem;
    color: var(--text-light);
}
.q-stats-box.answered {
    color: #10b981; /* Yeşil */
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 5px;
    background: #ecfdf5;
}

/* Sağ Taraf: İçerik */
.q-content {
    flex: 1;
}
.q-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.q-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
}
.q-preview {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.q-tags {
    display: flex;
    gap: 5px;
}
.q-tag {
    background: var(--bg-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Sidebar */
.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.sidebar-list {
    list-style: none;
    padding: 0;
}
.sidebar-list li {
    margin-bottom: 8px;
}
.sidebar-list a {
    color: var(--text-light);
    text-decoration: none;
    transition: 0.2s;
}
.sidebar-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.action-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    text-align: center;
    border: none;
}
.action-card h3 { border: none; color: white; margin-bottom: 5px; }
.action-card p { margin-bottom: 15px; font-size: 0.9rem; opacity: 0.9; }
.action-card .btn {
    background: white;
    color: var(--primary);
    border: none;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 850px) {
    .forum-layout {
        grid-template-columns: 1fr;
    }
    .forum-sidebar {
        order: -1; /* Sidebar mobilde üste gelsin */
    }
}

/* Cevap Alanı Stili */
.answer-box {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary);
}

/* --- GERİ SAYIM SAYACI --- */
.countdown-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    background: linear-gradient(to right bottom, var(--card-bg), #f0fdf4); /* Hafif yeşilimsi geçiş */
}
body.dark-mode .countdown-container {
    background: linear-gradient(to right bottom, var(--card-bg), #064e3b);
}

.countdown-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-color);
    padding: 10px;
    border-radius: 8px;
    min-width: 60px;
    border: 1px solid var(--border-color);
}

.time-box span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.time-box small {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Admin panelindeki liste için ufak stil */
.cal-item {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- GANO HESAPLAMA STİLLERİ --- */
.gano-table-wrapper {
    overflow-x: auto;
}
.gano-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}
.gano-table th {
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-bottom: 10px;
}
.gano-table td {
    padding: 5px;
}
.gano-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-dark);
    font-size: 0.9rem;
}
.gano-input:focus {
    border-color: var(--primary);
    outline: none;
}
.btn-remove-row {
    color: var(--danger);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}
.letter-grade-box {
    font-weight: bold;
    text-align: center;
    color: var(--primary);
}

/* --- FOOTER TASARIMI --- */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
    margin-top: 4rem; /* İçerikten ayır */
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-column h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-column p {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-column a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary);
    padding-left: 5px; /* Hover efekti */
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    font-size: 1.2rem;
    display: inline-block;
    margin: 0;
}

.footer-bottom {
    background-color: var(--bg-color); /* Hafif ton farkı */
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Mobilde ortalasın */
@media (max-width: 768px) {
    .footer-content { text-align: center; }
    .social-icons { justify-content: center; }
}

/* --- NOT İSTEK KARTI (WANTED BOARD) --- */
.request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.request-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(79, 70, 229, 0.3); /* Kesik çizgili kenar */
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: transform 0.3s;
}
body.dark-mode .request-card { border-color: rgba(255,255,255,0.2); }

.request-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: var(--card-bg);
}

.req-badge {
    position: absolute;
    top: -10px; right: 15px;
    background: #ef4444; color: white;
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: bold;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.req-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.req-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.req-title { font-weight: bold; font-size: 1.1rem; color: var(--primary); margin-bottom: 5px; }
.req-prof { font-size: 0.9rem; color: var(--text-dark); display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.req-detail { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; margin-bottom: 15px; font-style: italic; }

.btn-fulfill {
    width: 100%;
    background: var(--bg-color);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px; border-radius: 8px;
    cursor: pointer; font-weight: 600;
    transition: 0.2s;
}
.btn-fulfill:hover { background: var(--primary); color: white; }

/* Hoca Etiketi (Not Kartı Üzerinde) */
.instructor-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.75rem; font-weight: 600;
    margin-top: 5px;
}

/* --- ADMIN PANELİ 2.0 EKLEMELERİ --- */

/* Sidebar Düzenlemeleri */
.menu-divider {
    padding: 15px 15px 5px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge-count {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Charts (Grafikler) */
.charts-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Sol grafik geniş, sağ dar */
    gap: 20px;
    margin-top: 30px;
}
.chart-box {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}
@media (max-width: 900px) { .charts-container { grid-template-columns: 1fr; } }

/* Settings (Ayarlar Kartları) */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.full-width { grid-column: 1 / -1; }
.setting-card {
    background: #1f2937;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
}
.setting-card h3 { font-size: 1.1rem; color: #ffffff; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.setting-card p { font-size: 0.9rem; color: #64748b; margin-bottom: 15px; min-height: 40px; }

/* Switch (Aç/Kapa Butonu) */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(24px); }

/* Logs Table (Loglar Tablosu) */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; padding: 12px; background: #f8fafc; border-bottom: 2px solid #e2e8f0; color: #475569; }
.admin-table td { padding: 12px; border-bottom: 1px solid #e2e8f0; color: #334155; }
.log-action { font-weight: bold; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; }
.log-DELETE { background: #fef2f2; color: #b91c1c; }
.log-UPDATE { background: #eff6ff; color: #1d4ed8; }
.log-APPROVE { background: #f0fdf4; color: #15803d; }

/* Verification Card */
.verify-card { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #eee; }
.verify-info { display: flex; gap: 15px; align-items: center; }
.verify-img-btn { font-size: 0.9rem; color: var(--primary); cursor: pointer; text-decoration: underline; }

/* --- PROFESYONEL MODAL TASARIMI (V2) --- */

/* Modalın Kendisi */
.detail-modal-content.pro-modal {
    padding: 0; /* İç boşluğu sıfırla, banner tam otursun */
    max-width: 850px;
    overflow: hidden; /* Taşmaları gizle */
    background: #ffffff;
    border: none;
}

/* Koyu Mod Uyumu */
body.dark-mode .detail-modal-content.pro-modal {
    background: #1e293b;
}

/* Üst Banner (Gradyan) */
.pro-modal-banner {
    height: 140px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    position: relative;
}

/* İçerik Düzeni (Grid) */
.pro-modal-body {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sol 280px, Sağ kalan */
    min-height: 450px;
}

/* --- SOL TARAF (KİMLİK) --- */
.pro-sidebar {
    background: #f8fafc;
    border-right: 1px solid var(--border-color);
    padding: 0 20px 20px 20px;
    text-align: center;
    position: relative;
}
body.dark-mode .pro-sidebar {
    background: #0f172a;
}

/* Avatar (Yukarı Taşan) */
.pro-avatar-container {
    margin-top: -60px; /* Banner'ın üstüne çık */
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.pro-avatar-container img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #ffffff; /* Beyaz çerçeve */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
    background: white;
}
body.dark-mode .pro-avatar-container img {
    border-color: #1e293b; /* Koyu modda çerçeve */
}

/* Kimlik Bilgileri */
.pro-identity h2 { font-size: 1.4rem; margin-bottom: 2px; color: var(--text-dark); }
.pro-identity p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 5px; }
.role-text { 
    display: inline-block; 
    background: rgba(79, 70, 229, 0.1); 
    color: var(--primary); 
    padding: 2px 10px; 
    border-radius: 12px; 
    font-size: 0.8rem; 
    font-weight: bold; 
}

/* İstatistikler (Yan Yana) */
.pro-stats-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.p-stat { display: flex; flex-direction: column; }
.p-stat span { font-weight: 800; font-size: 1.1rem; color: var(--text-dark); }
.p-stat small { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; }

/* Yönetim Araçları */
.pro-admin-tools { text-align: left; margin-top: 15px; }
.pro-admin-tools h4 { font-size: 0.9rem; color: var(--text-light); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }

.pro-input {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--bg-color);
    color: var(--text-dark);
}

.tool-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-block { width: 100%; }
.mt-2 { margin-top: 10px; }

/* --- SAĞ TARAF (İÇERİK) --- */
.pro-content {
    padding: 25px;
    background: var(--card-bg);
}

.section-header {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    color: var(--text-dark);
}
body.dark-mode .section-header { border-color: #334155; }

/* Not Listesi */
.pro-notes-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Liste Elemanı (Kartı) */
.mini-note-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    transition: 0.2s;
}
.mini-note-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}
.note-info strong { display: block; color: var(--text-dark); font-size: 0.95rem; }
.note-info small { color: var(--text-light); font-size: 0.8rem; }

/* Boş Durum */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}
.empty-state i { font-size: 3rem; margin-bottom: 10px; opacity: 0.5; }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .pro-modal-body { grid-template-columns: 1fr; }
    .pro-sidebar { border-right: none; border-bottom: 1px solid var(--border-color); }
    .pro-content { padding: 20px; }
}

.unread-msg {
    background-color: #fff !important;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15) !important;
}
body.dark-mode .unread-msg {
    background-color: #1e293b !important;
}

/* =========================================
   📱 KAPSAMLI MOBİL OPTİMİZASYON 
   ========================================= */

/* 1. Sayfanın genelinin sağa/sola kaymasını (taşmasını) kesin olarak engelle */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* =========================================================
   📱 KUSURSUZ MOBİL OPTİMİZASYON (TAM SÜRÜM)
   ========================================================= */
/* =========================================================
   📱 KUSURSUZ MOBİL OPTİMİZASYON (TAM SÜRÜM - V4)
   ========================================================= */
@media (max-width: 768px) {
    /* --- TEMEL MOBİL KİLİTLEME --- */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* ========================================= */
    /* 1. NAVBAR VE ÜST MENÜ DÜZELTMELERİ        */
    /* ========================================= */
    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 15px 10px;
        gap: 15px;
    }
    .brand {
        text-align: center;
        font-size: 1.5rem;
    }
    .nav-search-container {
        width: 100%;
    }
    
    /* YENİ MENÜ TASARIMI: Yan yana diz, sığmayanlar alta geçsin (Wrap) */
    .nav-links {
        width: 100%;
        display: flex;
        flex-direction: row !important; 
        flex-wrap: wrap !important; 
        justify-content: center !important;
        overflow-x: visible !important; 
        white-space: normal !important; 
        padding-bottom: 5px;
        gap: 8px !important; 
    }
    
    .nav-links a {
        display: inline-block !important;
        width: auto !important;
        flex: 1 1 calc(33% - 10px); 
        text-align: center;
        padding: 8px 10px !important;
        font-size: 0.9rem !important;
        background: var(--bg-color);
        border-radius: 8px;
        border: 1px solid var(--border-color);
        box-sizing: border-box;
    }
    
    .icon-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: var(--bg-color) !important;
        border: 2px solid var(--text-light) !important; 
        margin: 2px !important;
    }
    
    .notif-wrapper {
        position: static !important; 
        display: flex;
        justify-content: center;
    }
    
    .notification-dropdown {
        position: fixed !important; 
        top: 150px !important; 
        left: 5% !important;
        width: 90% !important;
        max-width: none !important;
        z-index: 9999 !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
        border-radius: 12px !important;
    }

    /* ========================================= */
    /* 2. ADMIN PANELİ MOBİL OPTİMİZASYONU       */
    /* ========================================= */
    .admin-layout {
        display: flex !important;
        flex-direction: column !important; 
    }
    
    .admin-sidebar {
        width: 100% !important;
        max-height: 250px !important; 
        overflow-y: auto !important;
        border-right: none !important;
        border-bottom: 2px solid var(--border-color) !important;
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
    }
    
    .admin-tab-content {
        width: 100% !important;
        padding: 0 !important;
        overflow-x: auto !important; 
    }

    /* ========================================= */
    /* 3. LİDERLİK PANOSU (Sıkışmayı Önleme)     */
    /* ========================================= */
    .leader-item {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        text-align: center !important;
        padding: 20px 10px !important;
        position: relative !important;
        gap: 12px !important;
    }
    
    .leader-item .rank-box {
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
    }
    
    .leader-item .user-info {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 15px !important;
    }
    
    .leader-item .score-badge {
        width: 100% !important;
        display: block !important;
        padding: 10px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    /* ========================================= */
    /* 4. SAYAÇ (COUNTDOWN) KUTULARI             */
    /* ========================================= */
    #countdown-wrapper > div {
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 15px 10px !important;
        gap: 10px !important;
    }
    #active-event-title {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 5px !important;
        font-size: 1.2rem !important;
    }
    #countdown-wrapper > div > div[style*="background"] {
        width: calc(50% - 10px) !important; 
        min-width: 0 !important;
        flex: 0 0 calc(50% - 10px) !important;
        padding: 10px 5px !important;
        box-sizing: border-box !important;
    }
    #countdown-wrapper span[id^="cd-"] {
        font-size: 1.8rem !important;
        display: block !important;
        margin-bottom: 2px !important;
    }
    #countdown-wrapper div {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }

    /* ========================================= */
    /* 5. MODAL VE YORUM DÜZELTMELERİ            */
    /* ========================================= */
    .modal-overlay {
        overflow-x: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .detail-modal-content {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        margin: 10px auto !important;
        padding: 40px 15px 15px 15px !important;
        max-height: 90vh; 
        overflow-y: auto !important;
        overflow-x: hidden !important;
        border-radius: 12px;
        box-sizing: border-box !important;
    }
    .close-modal {
        top: 10px !important;
        right: 15px !important;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        color: white !important;
        z-index: 100;
    }
    
    .detail-header img {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        border-radius: 50% !important;
        margin-top: 0 !important; 
        object-fit: cover !important;
    }
    
    .detail-modal-content img:not(.detail-header img):not(.comment-item img) {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        margin-top: 10px;
        box-sizing: border-box !important;
    }
    
    .detail-modal-content .comment-item img { 
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        margin-right: 10px !important;
    }
    
    .detail-modal-content iframe {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }
    .detail-actions {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    /* ========================================= */
    /* 6. GİRİŞ SAYFASI VE FOOTER (YENİ EKLENEN) */
    /* ========================================= */
    
    /* Container min-height ekleyerek sayfanın ortasındaki boşluğu doldur */
    .container {
        min-height: calc(100vh - 250px) !important;
        padding: 10px !important;
    }

    /* Giriş / Kayıt formunu ekrana uygun şekilde genişlet */
    #login-form, #register-form, .login-container {
        width: 95% !important;
        max-width: 100% !important;
        margin: 20px auto !important;
        padding: 25px 15px !important;
        box-sizing: border-box !important;
    }

    /* Footer'ı alt alta dizip ortala (Yan yana sıkışmasını engelle) */
    .footer-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 25px !important;
    }
    
    .footer-column {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Footer linklerini rahat tıklanabilir yap */
    .footer-column a {
        display: block !important;
        padding: 5px 0 !important;
    }

    /* --- 7. DİĞER GRİD VE TABLO DÜZELTMELERİ --- */
    .notes-grid { grid-template-columns: 1fr !important; gap: 15px; }
    .profile-layout { flex-direction: column; }
    .profile-sidebar { width: 100%; margin-bottom: 20px; text-align: center; }
    .stats-box { justify-content: center; }
    .tabs { flex-wrap: wrap; justify-content: center; gap: 5px; }
    .tab-btn { flex: 1 1 45%; text-align: center; padding: 8px; font-size: 0.9rem; }
    .gano-table-wrapper { overflow-x: auto; width: 100%; }
    .form-grid { grid-template-columns: 1fr !important; }
}