* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg: #f5f5f5; --white: #fff; --text: #333; --text-light: #666; --text-lighter: #999; --border: #e5e5e5; --primary: #1b3668; --primary-hover: #254a8a; --accent: #e67e22; }
[data-theme="dark"] { --bg: #0d1117; --white: #161b22; --text: #e6edf3; --text-light: #8b949e; --text-lighter: #6e7681; --border: #30363d; --primary: #58a6ff; --primary-hover: #79c0ff; --accent: #f0883e; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

/* HEADER */
header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.logo a { font-size: 24px; font-weight: 700; color: var(--primary); }
.search-box { flex: 1; max-width: 400px; }
.search-box form { display: flex; }
.search-box input { flex: 1; padding: 8px 14px; border: 1px solid #ccc; border-right: none; border-radius: 3px 0 0 3px; font-size: 14px; outline: none; }
.btn-search { padding: 8px 18px; background: var(--primary); color: #fff; border: none; border-radius: 0 3px 3px 0; cursor: pointer; font-size: 14px; }
.btn-search:hover { background: var(--primary-hover); }
.header-nav { display: flex; gap: 16px; font-size: 14px; margin-left: auto; }
.header-nav a { color: var(--text-light); }
.header-nav a:hover { color: var(--text); text-decoration: none; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); padding: 4px 8px; }

/* MOBILE MENU */
.mobile-menu { display: none; position: fixed; top: 53px; right: 0; width: 300px; height: calc(100vh - 53px); background: var(--white); border-left: 1px solid var(--border); box-shadow: -4px 0 16px rgba(0,0,0,0.1); z-index: 999; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.mobile-logo { font-size: 18px; font-weight: 700; color: var(--primary); text-decoration: none; }
.mobile-menu-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-light); padding: 4px; }
.mobile-menu-close:hover { color: var(--text); }
.mobile-menu-body { padding: 8px 0; }
.mobile-section { padding: 8px 20px; }
.mobile-section-title { font-size: 11px; font-weight: 600; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.mobile-link-main { display: block; padding: 10px 0; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-link-main:hover { color: var(--primary); text-decoration: none; }
.mobile-tags-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.mobile-tag { display: inline-block; padding: 5px 10px; background: var(--bg); border-radius: 4px; font-size: 12px; color: var(--primary); text-decoration: none; font-weight: 500; }
.mobile-tag:hover { background: var(--primary); color: #fff; text-decoration: none; }
.mobile-more-tags { display: none; margin-top: 6px; }
.mobile-more-tags.show { display: flex; flex-wrap: wrap; gap: 6px; }
.mobile-link { display: block; padding: 8px 0; color: var(--text); font-size: 14px; text-decoration: none; border-bottom: 1px solid #f0f0f0; }
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--primary); text-decoration: none; }
.mobile-theme-section { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }
.mobile-theme-row { display: flex; justify-content: space-between; align-items: center; }
.mobile-theme-row span { font-size: 13px; color: var(--text); }

/* NAV */
.main-nav { background: var(--white); border-bottom: 2px solid var(--primary); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; }
.main-nav a { padding: 12px 20px; color: var(--text-light); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav a.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; display: flex; background: var(--white); border: 1px solid var(--border); border-top: none; min-height: calc(100vh - 94px); }

/* SIDEBAR */
.sidebar { width: 300px; min-width: 300px; border-right: 1px solid var(--border); padding: 14px 0; position: sticky; top: 86px; height: calc(100vh - 86px); overflow-y: auto; }
.sidebar-title { font-size: 15px; font-weight: 600; color: var(--text); padding: 0 18px 10px; }
.topic-list { list-style: none; }
.topic-list li { padding: 6px 18px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.topic-list li:hover { background: #f8f8f8; }
.topic-list li a.topic-name { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-list li a.topic-name:hover { color: var(--primary); text-decoration: none; }
.topic-list li .topic-count { color: var(--text-lighter); font-size: 13px; min-width: 28px; text-align: right; padding-left: 8px; }

/* CONTENT */
.content { flex: 1; min-height: 100vh; }
.topic-header { padding: 16px 28px; border-bottom: 1px solid var(--border); }
.topic-header h1 { font-size: 22px; font-weight: 700; color: var(--text); }

/* TOPIC ENTRY BLOCK (anasayfa/kategori) */
.topic-entry-block { padding: 16px 28px; border-bottom: 1px solid #f0f0f0; }
.topic-entry-block:last-child { border-bottom: none; }
.topic-entry-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.topic-entry-title a { color: var(--text); text-decoration: none; }
.topic-entry-title a:hover { color: var(--primary); }
.topic-entry-content { font-size: 15px; line-height: 1.7; color: #555; margin-bottom: 4px; }
.topic-entry-meta-right { display: flex; align-items: center; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.topic-entry-meta-right .entry-text { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.topic-entry-meta-right .entry-author-name { font-size: 14px; color: var(--primary); font-weight: 700; text-decoration: none; line-height: 1.2; }
.topic-entry-meta-right .entry-author-name:hover { text-decoration: underline; }
.topic-entry-meta-right .entry-date { color: var(--text-lighter); font-size: 11px; line-height: 1.2; }
.topic-entry-meta-right .entry-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #f0f0f0; }
.topic-entry-meta-right .entry-avatar-default { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }

/* ENTRY (konu sayfasi) */
.entry { padding: 16px 28px; border-bottom: 1px solid #f0f0f0; }
.entry:hover { background: #fafafa; }
.entry-content { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 16px; white-space: pre-wrap; }
.entry-content a, .topic-entry-content a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.entry-content a:hover, .topic-entry-content a:hover { color: var(--primary-hover); }

/* ENTRY FOOTER - anasayfa ile birebir ayni */
.entry-footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid #f0f0f0; margin-top: 10px; }
.entry-actions { display: flex; gap: 6px; align-items: center; }
.entry-author-info { display: flex; align-items: center; gap: 8px; }
.entry-author-info .entry-text { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.entry-author-info .entry-author-name { font-size: 14px; color: var(--primary); font-weight: 700; text-decoration: none; line-height: 1.2; }
.entry-author-info .entry-date { color: var(--text-lighter); font-size: 11px; line-height: 1.2; }
.entry-author-info .entry-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #f0f0f0; }
.entry-author-info .entry-avatar-default { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }

/* VOTE */
.vote-btn { background: var(--white); border: 1px solid #e0e0e0; border-radius: 4px; padding: 4px 8px; cursor: pointer; font-size: 12px; color: var(--text-lighter); display: inline-flex; align-items: center; gap: 4px; transition: all 0.15s; }
.vote-btn:hover { border-color: var(--primary); color: var(--primary); background: #f8f9ff; }
.vote-btn.vote-up.active { background: #27ae60; color: #fff; border-color: #27ae60; }
.vote-btn.vote-down.active { background: #c0392b; color: #fff; border-color: #c0392b; }
.vote-score { font-size: 14px; font-weight: 600; color: var(--text); min-width: 20px; text-align: center; }

/* FAVORITE */
.fav-btn { background: var(--white); border: 1px solid #e0e0e0; border-radius: 4px; padding: 4px 8px; cursor: pointer; font-size: 13px; color: #ccc; transition: all 0.15s; }
.fav-btn:hover { color: #e74c3c; border-color: #e74c3c; }
.fav-btn.active { color: #e74c3c; border-color: #e74c3c; background: #fdf5f5; }

/* ENTRY MORE MENU */
.entry-more { position: relative; }
.entry-more-toggle { background: var(--white); border: 1px solid #e0e0e0; border-radius: 4px; padding: 4px 8px; cursor: pointer; font-size: 14px; color: var(--text-lighter); transition: all 0.15s; }
.entry-more-toggle:hover { border-color: var(--primary); color: var(--primary); }
.entry-more-list { display: none; position: absolute; bottom: 100%; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); min-width: 150px; z-index: 300; padding: 4px 0; margin-bottom: 4px; }
.entry-more-list.show { display: block; }
.entry-more-list button { display: block; width: 100%; padding: 8px 14px; border: none; background: none; text-align: left; font-size: 13px; color: var(--text); cursor: pointer; font-family: inherit; }
.entry-more-list button:hover { background: #f5f5f5; color: var(--primary); }

/* ENTRY ADMIN PANEL */
.entry-admin-panel { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 8px 12px; background: #f9f9f9; border-radius: 4px; border: 1px solid #eee; }
.entry-admin-btn { background: var(--white); border: 1px solid #ddd; border-radius: 3px; padding: 4px 10px; cursor: pointer; font-size: 11px; color: var(--text-light); text-decoration: none; }
.entry-admin-btn:hover { background: #f0f0f0; border-color: #bbb; }
.entry-admin-btn.danger { color: #c0392b; border-color: #e8d5d5; }
.entry-admin-btn.danger:hover { background: #fdf0ef; }
.entry-move-form { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.entry-move-form input { width: 50px; padding: 4px 6px; border: 1px solid #ddd; border-radius: 3px; font-size: 11px; }

/* ENTRY FORM */
.entry-form-bottom { padding: 16px 28px; border-top: 1px solid var(--border); background: #fafafa; }
.entry-form-bottom textarea { width: 100%; border: 1px solid #ddd; border-radius: 3px; padding: 10px 12px; font-size: 14px; line-height: 1.6; resize: vertical; min-height: 80px; font-family: inherit; outline: none; }
.entry-form-bottom textarea:focus { border-color: #999; }
.entry-form-bottom-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.link-insert-btn { background: none; border: 1px solid #ddd; border-radius: 3px; padding: 4px 12px; cursor: pointer; font-size: 12px; color: var(--text-light); }
.link-insert-btn:hover { background: #f5f5f5; }

/* MODAL */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: 6px; width: 90%; max-width: 400px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 15px; font-weight: 600; }
.modal-close-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-light); }
.modal-body { padding: 16px; }

/* BUTTONS */
.btn-action { padding: 6px 14px; border: 1px solid #ddd; background: var(--white); border-radius: 3px; cursor: pointer; font-size: 13px; color: var(--text-light); text-decoration: none; display: inline-block; }
.btn-action:hover { background: #f5f5f5; border-color: #bbb; text-decoration: none; }
.btn-action.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-action.primary:hover { background: var(--primary-hover); }

/* FORM */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #999; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; }

/* AUTH */
.auth-container { display: flex; justify-content: center; padding: 40px 24px; }
.auth-card { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 32px; width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 20px; font-weight: 600; margin-bottom: 20px; text-align: center; }
.auth-links { text-align: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-light); }

/* PROFILE */
.profile-page { background: var(--white); border-bottom: 1px solid var(--border); }
.profile-cover { height: 100px; background: linear-gradient(135deg, var(--primary) 0%, #254a8a 100%); }
.profile-main { padding: 0 28px 20px; }
.profile-avatar-section { display: flex; gap: 20px; align-items: flex-end; margin-top: -40px; }
.profile-avatar-large { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.profile-avatar-large img { width: 100px; height: 100px; border-radius: 50%; border: 4px solid var(--white); object-fit: cover; }
.avatar-placeholder { width: 100px; height: 100px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; border: 4px solid var(--white); }
.avatar-edit-btn { position: absolute; bottom: 0; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: 50%; width: 28px; height: 28px; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.profile-info-section { padding-top: 45px; }
.profile-display-name { font-size: 22px; font-weight: 700; }
.profile-username { color: var(--text-light); font-size: 14px; margin-top: 2px; }
.profile-bio { margin-top: 8px; font-size: 14px; color: var(--text-light); line-height: 1.5; }
.profile-stats-row { display: flex; gap: 24px; margin-top: 12px; }
.profile-stat { display: flex; flex-direction: column; }
.stat-num { font-size: 16px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-lighter); }
.profile-tabs { display: flex; border-bottom: 1px solid var(--border); }
.profile-tab { padding: 12px 24px; color: var(--text-light); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.profile-tab:hover { color: var(--text); text-decoration: none; }
.profile-tab.active { color: var(--text); border-bottom-color: var(--primary); font-weight: 500; }

/* FOLLOW */
.follow-btn { cursor: pointer; }
.followed-cats { padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--border); }
.followed-cat-tag { padding: 4px 12px; background: #f0f0f0; border-radius: 3px; font-size: 13px; color: var(--primary); text-decoration: none; }
.followed-cat-tag:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* SEARCH */
.search-header { padding: 16px 28px; border-bottom: 1px solid var(--border); }
.search-header h1 { font-size: 18px; }
.search-meta { color: var(--text-lighter); font-size: 13px; margin-top: 2px; }
.topic-card { padding: 10px 28px; border-bottom: 1px solid #f0f0f0; }
.topic-card:hover { background: #f8f8f8; }
.topic-card h3 { font-size: 15px; }
.topic-card h3 a { color: var(--text); }
.topic-card .card-meta { font-size: 12px; color: var(--text-lighter); margin-top: 2px; }

/* EMPTY / PAGINATION / ERROR */
.empty-state { padding: 40px 28px; text-align: center; color: var(--text-light); font-size: 14px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 18px 28px; border-top: 1px solid var(--border); }
.page-info { color: var(--text-light); font-size: 13px; }
.error-page { padding: 50px 28px; text-align: center; }
.error-page h1 { font-size: 56px; font-weight: 700; color: var(--text-lighter); }
.error-page h2 { font-size: 18px; margin: 8px 0; }
.error-page p { color: var(--text-light); margin-bottom: 16px; font-size: 14px; }

/* ALERTS */
.alert { padding: 10px 18px; margin: 12px 28px; border-radius: 3px; font-size: 13px; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #fce4ec; color: #c62828; border: 1px solid #f8bbd0; }

/* NAV DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown-btn { background: none; border: none; padding: 12px 16px; color: var(--text-light); font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit; }
.nav-dropdown-btn:hover { color: var(--text); }
.nav-dropdown-content { display: none; position: absolute; top: 100%; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); min-width: 180px; z-index: 200; padding: 4px 0; }
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a { display: block; padding: 8px 16px; color: var(--text); font-size: 13px; white-space: nowrap; }
.nav-dropdown-content a:hover { background: #f5f5f5; color: var(--primary); text-decoration: none; }

/* ADMIN */
.admin-body { background: var(--bg); }
.admin-header { background: var(--primary); }
.admin-header .header-inner { padding: 10px 24px; }
.admin-header .logo a { color: #fff; }
.admin-header .header-nav { display: flex; gap: 16px; }
.admin-header .header-nav a { color: rgba(255,255,255,.7); font-size: 13px; }
.siteye-don-link { color: rgba(255,255,255,.9) !important; font-weight: 500; }
.admin-container { max-width: 1200px; margin: 0 auto; display: flex; min-height: calc(100vh - 50px); background: var(--white); border: 1px solid var(--border); }
.admin-sidebar { width: 220px; min-width: 220px; border-right: 1px solid var(--border); padding: 12px 0; }
.admin-nav { display: flex; flex-direction: column; }
.admin-nav a { padding: 10px 16px; color: var(--text-light); font-size: 14px; border-left: 2px solid transparent; }
.admin-nav a:hover { background: #f8f8f8; color: var(--text); text-decoration: none; }
.admin-nav a.active { color: var(--text); border-left-color: var(--accent); font-weight: 500; background: #f8f8f8; }
.admin-content { flex: 1; padding: 20px; }
.admin-page h1 { font-size: 18px; font-weight: 600; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #f8f9fa; border: 1px solid var(--border); border-radius: 4px; padding: 18px; text-align: center; }
.stat-card h3 { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-card p { color: var(--text-light); font-size: 13px; margin-top: 3px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #f8f9fa; padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-light); border-bottom: 1px solid var(--border); text-transform: uppercase; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.admin-table tr:hover { background: #f8f8f8; }
.admin-table a { color: var(--primary); }
.admin-table-container { overflow-x: auto; }

/* FOOTER */
footer { background: var(--white); border-top: 1px solid var(--border); padding: 16px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-lighter); }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: var(--text-lighter); }
.footer-links a:hover { color: var(--text); }

/* POPUP */
.custom-popup { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: var(--white); border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); padding: 20px 28px; z-index: 10000; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 280px; max-width: 400px; animation: slideDown 0.3s ease-out; border-top: 3px solid; }
.custom-popup.basarili { border-top-color: #27ae60; }
.custom-popup.hata { border-top-color: #e74c3c; }
.popup-icon { font-size: 28px; }
.custom-popup.basarili .popup-icon { color: #27ae60; }
.custom-popup.hata .popup-icon { color: #e74c3c; }
.popup-text { font-size: 14px; color: var(--text); text-align: center; }
.popup-btn { padding: 6px 20px; border: 1px solid var(--border); border-radius: 4px; background: var(--white); cursor: pointer; font-size: 13px; color: var(--text-light); }
.popup-btn:hover { background: #f5f5f5; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .mobile-menu-btn { display: block; }
    .header-nav { display: none; }
    .main-nav { display: none; }
    .nav-dropdown { display: none; }
    .mobile-menu .theme-switch { display: block !important; }
    .container { flex-direction: column; }
    .sidebar { display: none; }
    .topic-entry-block, .entry { padding: 14px 16px; }
    .topic-header { padding: 14px 16px; }
    .topic-entry-title { font-size: 18px; }
    .topic-entry-content { font-size: 15px; }
    .entry-content { font-size: 15px; }
    .admin-container { flex-direction: column; }
    .admin-sidebar { width: 100%; min-width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .admin-nav { flex-direction: row; overflow-x: auto; }
    .admin-nav a { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
}
@media (min-width: 901px) {
    .header-nav .theme-switch { display: inline-block; }
}
@media (max-width: 600px) {
    .header-inner { padding: 10px 12px; gap: 12px; }
    .logo a { font-size: 20px; }
    .search-box input { font-size: 13px; padding: 6px 10px; }
    .btn-search { padding: 6px 14px; font-size: 13px; }
    .topic-header h1 { font-size: 18px; }
    .topic-entry-title { font-size: 16px; }
    .topic-entry-content { font-size: 14px; line-height: 1.7; }
    .entry-content { font-size: 14px; line-height: 1.7; }
    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
@media (min-width: 901px) { .mobile-menu { display: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 0.3s ease-out; }
/* DARK THEME UYUMLU */
[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] header { background: var(--white); border-bottom-color: var(--border); }
[data-theme="dark"] .main-nav { background: var(--white); border-bottom-color: var(--primary); }
[data-theme="dark"] .sidebar { background: var(--white); border-right-color: var(--border); }
[data-theme="dark"] .sidebar-title { color: var(--text); }
[data-theme="dark"] .topic-list li a.topic-name { color: var(--text); }
[data-theme="dark"] .topic-list li:hover { background: #1c2333; }
[data-theme="dark"] .content { background: var(--white); }
[data-theme="dark"] .topic-entry-block { border-bottom-color: var(--border); }
[data-theme="dark"] .topic-entry-title a { color: var(--text); }
[data-theme="dark"] .topic-entry-content { color: #adbac7; }
[data-theme="dark"] .entry { border-bottom-color: var(--border); }
[data-theme="dark"] .entry:hover { background: #1c2333; }
[data-theme="dark"] .entry-content { color: #adbac7; }
[data-theme="dark"] .entry-footer { border-top-color: var(--border); }
[data-theme="dark"] .entry-admin-panel { background: #1c2333; border-color: var(--border); }
[data-theme="dark"] .entry-form-bottom { background: #161b22; border-top-color: var(--border); }
[data-theme="dark"] .entry-form-bottom textarea { background: #0d1117; border-color: var(--border); color: var(--text); }
[data-theme="dark"] .btn-action { background: var(--white); border-color: var(--border); color: var(--text-light); }
[data-theme="dark"] .btn-action:hover { background: #1c2333; border-color: var(--text-lighter); color: var(--text); }
[data-theme="dark"] .vote-btn { background: var(--white); border-color: var(--border); color: var(--text-lighter); }
[data-theme="dark"] .vote-btn:hover { border-color: var(--primary); color: var(--primary); background: #1c2333; }
[data-theme="dark"] .fav-btn { background: var(--white); border-color: var(--border); color: #6e7681; }
[data-theme="dark"] .entry-more-toggle { background: var(--white); border-color: var(--border); color: var(--text-lighter); }
[data-theme="dark"] .entry-more-list { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .entry-more-list button { color: var(--text); }
[data-theme="dark"] .entry-more-list button:hover { background: #1c2333; }
[data-theme="dark"] .entry-admin-btn { background: var(--white); border-color: var(--border); color: var(--text-light); }
[data-theme="dark"] .entry-avatar-default { background: var(--primary); color: #0d1117; }
[data-theme="dark"] .entry-avatar { border-color: var(--border); }
[data-theme="dark"] .modal-box { background: var(--white); }
[data-theme="dark"] .modal-header { border-bottom-color: var(--border); }
[data-theme="dark"] .form-group input, [data-theme="dark"] .form-group textarea, [data-theme="dark"] .form-group select { background: #0d1117; border-color: var(--border); color: var(--text); }
[data-theme="dark"] .alert-success { background: #0d2818; color: #3fb950; border-color: #238636; }
[data-theme="dark"] .alert-error { background: #2d1215; color: #f85149; border-color: #da3633; }
[data-theme="dark"] footer { background: var(--white); border-top-color: var(--border); }
[data-theme="dark"] .pagination { border-top-color: var(--border); }
[data-theme="dark"] .auth-card { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .auth-links { border-top-color: var(--border); color: var(--text-light); }
[data-theme="dark"] .profile-page { background: var(--white); border-bottom-color: var(--border); }
[data-theme="dark"] .profile-tabs { border-bottom-color: var(--border); }
[data-theme="dark"] .profile-tab { color: var(--text-light); }
[data-theme="dark"] .profile-tab.active { color: var(--text); border-bottom-color: var(--primary); }
[data-theme="dark"] .topic-header { border-bottom-color: var(--border); }
[data-theme="dark"] .topic-header h1 { color: var(--text); }
[data-theme="dark"] .search-header { border-bottom-color: var(--border); }
[data-theme="dark"] .topic-card { border-bottom-color: var(--border); }
[data-theme="dark"] .topic-card:hover { background: #1c2333; }
[data-theme="dark"] .topic-card h3 a { color: var(--text); }
[data-theme="dark"] .admin-table th { background: #1c2333; border-bottom-color: var(--border); }
[data-theme="dark"] .admin-table td { border-bottom-color: var(--border); color: var(--text); }
[data-theme="dark"] .admin-table tr:hover { background: #1c2333; }
[data-theme="dark"] .stat-card { background: #161b22; border-color: var(--border); }
[data-theme="dark"] .nav-dropdown-content { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .nav-dropdown-content a { color: var(--text); }
[data-theme="dark"] .nav-dropdown-content a:hover { background: #1c2333; }
[data-theme="dark"] .mobile-menu { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .mobile-menu-inner a { color: var(--text); }
[data-theme="dark"] .mobile-menu-inner a:hover { background: #1c2333; }
[data-theme="dark"] .entry-content a { color: var(--primary); }
[data-theme="dark"] .topic-entry-content a { color: var(--primary); }
/* THEME TOGGLE */
.theme-switch { position: relative; width: 52px; height: 28px; cursor: pointer; flex-shrink: 0; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.theme-slider { position: absolute; inset: 0; background: #d1d5db; border-radius: 28px; transition: 0.3s; display: flex; align-items: center; justify-content: space-between; padding: 0 7px; }
.theme-slider:before { content: ''; position: absolute; height: 22px; width: 22px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.theme-switch input:checked + .theme-slider { background: var(--accent); }
.theme-switch input:checked + .theme-slider:before { transform: translateX(24px); background: #fff; }
.theme-icon { font-size: 13px; z-index: 1; line-height: 1; }
.theme-icon.sun { color: #fff; }
.theme-icon.moon { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .theme-slider { background: #374151; }
[data-theme="dark"] .theme-switch input:checked + .theme-slider { background: var(--primary); }
[data-theme="dark"] .theme-slider:before { background: #e5e7eb; }
[data-theme="dark"] .theme-icon.sun { color: #fbbf24; }
[data-theme="dark"] .theme-icon.moon { color: #93c5fd; }
 }
/* STATIK OY SAYISI (giris yapilmamisken) */
.vote-count-static { font-size: 13px; color: var(--text-lighter); display: inline-flex; align-items: center; gap: 4px; }
/* MOBILE THEME */
.mobile-theme-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.mobile-theme-row span { font-size: 13px; color: var(--text); }