body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d0d0d;
  color: #f5f5f5;
  margin: 0;
  padding: 0;
}

/* 🔝 Navbar */
.navbar-wrapper {
  background-color: #111;
  width: 100%;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.navbar {
  width: 100%;
  max-width: 1000px;
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-left a {
  color: #d4af37;
  margin-right: 20px;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}
.navbar-left a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #d4af37;
  transition: width 0.3s ease;
}
.navbar-left a:hover {
  color: #fff;
}
.navbar-left a:hover::after {
  width: 100%;
}
.navbar-right a {
  background: #d4af37;
  color: black;
  padding: 6px 12px;
  border-radius: 5px;
  margin-left: 10px;
  text-decoration: none;
  font-weight: bold;
}

/* 📦 Sayfa Düzeni */
.page-wrapper {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  width: 100%;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

/* 🧱 Kategori Kartları */
.section-title {
  color: #d4af37;
  margin-bottom: 15px;
  font-size: 22px;
}
.category-card {
  background-color: #1f1f1f;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}
.category-card:hover {
  background-color: #2a2a2a;
}
.category-info {
  text-align: left;
}
.category-name {
  font-weight: bold;
  font-size: 17px;
  color: #fff;
  text-decoration: none;
}
.category-desc {
  font-size: 14px;
  color: #aaa;
}
.message-info {
  text-align: right;
  font-size: 13px;
  color: #ccc;
}

/* 📰 Sağ Panel */
.sidebar {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}
.panel-title {
  color: #d4af37;
  margin-bottom: 10px;
}
.card {
  background: #111;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #ccc;
}

/* Orta Kutu (Formlar, Kayıt) */
.center-box {
  max-width: 400px;
  margin: 80px auto;
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}
.center-box h2 {
  color: #d4af37;
  margin-bottom: 20px;
}
.center-box input,
.center-box button {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
}
.center-box input {
  background-color: #2a2a2a;
  color: white;
}
.center-box button {
  background-color: #d4af37;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}
.center-box a {
  color: #d4af37;
  text-decoration: none;
}
.center-box a:hover {
  text-decoration: underline;
}
.logo {
  width: 80px;
  margin-bottom: 20px;
}

/* Konu Listesi Kartları */
.topic-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 0 5px #000;
}
.topic-left {
  display: flex;
  flex-direction: column;
}
.topic-title {
  font-weight: bold;
  font-size: 17px;
  color: #f5f5f5;
  margin-bottom: 5px;
}
.topic-meta {
  font-size: 13px;
  color: #aaa;
}
.topic-tags {
  margin-top: 5px;
}
.tag {
  background: #d4af37;
  color: black;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 5px;
}
.topic-right {
  text-align: right;
  font-size: 14px;
  color: #ccc;
}

/* Konu Oluşturma Sayfası */
.new-topic-wrapper {
  max-width: 700px;
  margin: 60px auto;
  background: #1c1c1c;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}
.new-topic-wrapper h2 {
  color: #d4af37;
  margin-bottom: 20px;
}
#newTopicForm input[type="text"],
#newTopicForm textarea {
  width: 100%;
  padding: 12px;
  background: #121212;
  border: 1px solid #333;
  color: white;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
#newTopicForm textarea {
  resize: vertical;
}
.checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: #ddd;
}
.checkbox input {
  margin-right: 8px;
}
#newTopicForm button {
  background: #d4af37;
  color: #000;
  padding: 10px 20px;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
#newTopicForm button:hover {
  background: #f0c843;
}

/* Breadcrumb */
.breadcrumb {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 20px;
}
.breadcrumb a {
  color: #d4af37;
  text-decoration: none;
  margin-right: 5px;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* Yorumlar */
.comment-box {
  display: flex;
  align-items: flex-start;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  color: #fff;
  gap: 15px;
}
.comment-box .avatar {
  width: 50px;
  height: 50px;
  background-color: #d4af37;
  color: #000;
  font-weight: bold;
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.comment-box .content {
  flex: 1;
}
.comment-box .meta {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 5px;
}
.comment-box img {
  max-width: 100%;
  border-radius: 6px;
}

/* Yorum Formu */
#commentForm {
  display: block;
  width: 100%;
  margin-top: 30px;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
#commentText {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  resize: vertical;
  background: #1a1a1a;
  color: #fff;
}
.admin-sidebar {
  width: 70px;
  background: #1a1a1a;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: width 0.3s ease;
  overflow-x: hidden;
}

.admin-sidebar:hover {
  width: 200px;
}

.sidebar-item {
  width: 100%;
  padding: 12px;
  color: #d4af37;
  font-size: 18px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sidebar-item:hover {
  background: #2a2a2a;
}

.sidebar-label {
  opacity: 0;
  margin-left: 10px;
  transition: opacity 0.3s ease;
  font-weight: bold;
  color: #fff;
}

.admin-sidebar:hover .sidebar-label {
  opacity: 1;
}
/* --- Banner --- */
.forum-banner {
  width: 100%;
  max-width: 1920px;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  margin-bottom: 20px;
}

.forum-banner img {
  height: 100%;
  object-fit: cover;
}

.site-footer {
  background-color: #111;
  color: #aaa;
  padding: 40px 60px;
  font-size: 14px;
  border-top: 1px solid #333;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-left {
  max-width: 300px;
}

.footer-logo {
  height: 36px;
  margin-bottom: 10px;
}

.footer-links {
  margin-top: 10px;
}

.footer-links h4 {
  color: #d4af37;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 6px;
}

.footer-links ul li a {
  color: #aaa;
  text-decoration: none;
}

.footer-links ul li a:hover {
  text-decoration: underline;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
}
/* Konu sayfası kullanıcı yorum kutusu */
.comment-box {
  display: flex;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  gap: 15px;
}

.comment-box .comment-avatar-img,
.comment-box .comment-avatar-letter {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #d4af37;
  color: #000;
  font-weight: bold;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-box .content {
  flex: 1;
}

.comment-box .meta {
  font-size: 13px;
  color: #bbb;
  margin-bottom: 5px;
}

.comment-box .text {
  font-size: 15px;
  color: #ddd;
  line-height: 1.5;
}

.editor-toolbar {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.editor-toolbar button {
  padding: 4px 8px;
  font-size: 13px;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
}

textarea#commentText {
  width: 100%;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  resize: vertical;
}

.comment-wrapper {
  margin-top: 20px;
}
.bb-image {
  max-width: 100%;
  border-radius: 6px;
  margin: 5px 0;
}

.bb-quote {
  background: #222;
  border-left: 4px solid #d4af37;
  padding: 10px 15px;
  margin: 10px 0;
  color: #ccc;
  font-style: italic;
}

.bb-code {
  background: #1a1a1a;
  border: 1px solid #444;
  padding: 10px;
  font-family: monospace;
  overflow-x: auto;
  border-radius: 6px;
  color: #0f0;
}

details summary {
  cursor: pointer;
  font-weight: bold;
  color: #d4af37;
}

details {
  background: #111;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 6px;
  margin-top: 10px;
  color: #aaa;
}

.comment-box {
  display: flex;
  background: #181818;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  color: #ddd;
}

.comment-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 15px;
}

.comment-left .comment-avatar-img,
.comment-left .comment-avatar-letter {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #d4af37;
  color: #000;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}

.comment-user-info {
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
}

.user-badge {
  background: gold;
  color: #111;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-top: 3px;
}

.comment-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.comment-meta {
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

.comment-text {
  font-size: 15px;
  line-height: 1.5;
  color: #eee;
}
/* Gelen mesaj sayısı rozeti */
.inbox-count-badge {
  position: absolute;
  top: -4px; right: -6px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  padding: 0 4px;
  border-radius: 10px;
  display: none;
}

/* Modal genelleri */
.modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-window {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  width: 360px;
  color: #eee;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}
.modal-window header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modal-window header h2 {
  margin:0;
  color:#f1c40f;
}
.close-modal {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #eee;
  cursor: pointer;
}
.inbox-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}
.inbox-list li {
  padding: 8px 0;
  border-bottom: 1px solid #333;
}
.inbox-list li a {
  color: #ddd;
  text-decoration: none;
}
.inbox-list li a:hover {
  text-decoration: underline;
}

.inbox-count-badge {
  position: absolute;
  top: -4px; right: -6px;
  background: #e74c3c; color: #fff;
  font-size: 10px; padding: 0 4px;
  border-radius: 50%; display: none;
}
.modal-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
}
.modal-window {
  background: #1a1a1a; padding:20px; border-radius:8px;
  width:360px; color:#eee; box-shadow:0 0 10px rgba(0,0,0,0.8);
}
.modal-window header {
  display:flex; justify-content: space-between; align-items:center;
  margin-bottom:12px;
}
.close-modal {
  background:transparent; border:none; font-size:1.4rem;
  color:#eee; cursor:pointer;
}
.inbox-list, .chat-messages { list-style:none; padding:0; margin:0; }
.inbox-list { max-height:300px; overflow-y:auto; }
.inbox-list li { padding:8px 0; border-bottom:1px solid #333; }
.inbox-list li a { color:#ddd; text-decoration:none; }
.chat-messages {
  max-height:300px; overflow-y:auto; margin-bottom:10px;
}
.chat-messages .msg {
  background:#222; padding:8px 12px; border-radius:6px;
  margin-bottom:6px; color:#ddd;
}
.chat-messages .msg.mine { background:#2b2b2b; text-align:right; }
.chat-messages .msg .time {
  font-size:0.75em; color:#888; margin-left:6px;
}
.chat-input { display:flex; }
.chat-input textarea {
  flex:1; resize:none; background:#111; color:#eee;
  border:1px solid #333; border-radius:4px; padding:6px;
}
.chat-input button {
  margin-left:6px; padding:0 16px; background:#f1c40f;
  border:none; border-radius:4px; cursor:pointer; font-weight:bold;
}
.inbox-wrapper {
  display: inline-block;
  background: #333;
  padding: 6px 8px;
  border-radius: 4px;
  margin-right: 8px;
}
.inbox-wrapper .fa-inbox {
  color: #f1c40f;
}
.inbox-count-badge {
  position: absolute;
  top: -4px; right: -6px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  padding: 0 4px;
  border-radius: 50%;
  display: none;
}
.modal-window {
  width: 60vw !important;
  max-height: 80vh !important;
}
.chat-messages {
  max-height: calc(80vh - 160px);
  overflow-y: auto;
}
/* Navbar sağındaki kullanıcı bloğu */
.user-with-inbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Posta ikonu stili */
#btnInbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #333;
  border-radius: 4px;
  color: #f1c40f;
  text-decoration: none;
}

/* Gelen mesaj sayısı rozeti */
.inbox-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  padding: 0 4px;
  border-radius: 50%;
  display: none; /* 0 ise gizli */
}

/* Kullanıcı adı butonu */
.nav-user {
  background: #ffd700;
  color: #111;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

/* Çıkış butonu */
.user-with-inbox a[onclick] {
  background: #ffd700;
  color: #111;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
.user-with-inbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mailbox-icon {
  position: relative;
  font-size: 1.4em;      /* Emoji boyutu */
  text-decoration: none;
}

.inbox-count-badge {
  position: absolute;
  top: -4px;
  right: -10px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  padding: 0 4px;
  border-radius: 50%;
  display: inline-block;
}

.subforum-list {
  margin-top: 5px;
  font-size: 14px;
  padding-left: 5px;
}
.subforum-link {
  display: inline-block;
  color: #d4af37;
  text-decoration: none;
  margin-right: 10px;
}
.subforum-link:hover {
  text-decoration: underline;
}
