/* Ortak uygulama kabuğu — feed / forum / gruplar sol menü */
.app-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 58px;
  min-height: 100vh;
}

.left-sidebar {
  padding: 1.5rem 1rem 2rem;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
}

.nav-profile-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.nav-profile-mini:hover {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.profile-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-name-sm {
  font-size: 0.875rem;
  font-weight: 500;
}
.profile-role-sm {
  font-size: 0.75rem;
  color: var(--muted, #64748b);
}

.sidebar-nav {
  list-style: none;
}
.sidebar-nav li {
  margin-bottom: 2px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--gray-700, #334155);
  font-size: 0.9rem;
  transition: all 0.15s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--blue-50, #eff6ff);
  color: var(--blue-700, #1d4ed8);
  font-weight: 500;
}
html.dark .sidebar-nav a {
  color: var(--muted, #8899bb);
}
html.dark .sidebar-nav a:hover,
html.dark .sidebar-nav a.active {
  background: #1a2236;
  color: #93c5fd;
}

.sidebar-divider {
  height: 1px;
  background: var(--border, #e2e8f0);
  margin: 1rem 0;
}
html.dark .sidebar-divider {
  background: #1e2d4a;
}

.hamburger-section {
  position: relative;
}
.hamburger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: var(--card, #fff);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text, #0f172a);
}
.hamburger-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 50;
  overflow: hidden;
}
.hamburger-menu.open {
  display: block;
}
.hamburger-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text, #0f172a);
  text-decoration: none;
}
.hamburger-menu a:hover {
  background: var(--blue-50, #eff6ff);
}

#navModeratorPanelLink[hidden],
#feedMobileModLink[hidden] {
  display: none !important;
}

#profilNavDisplayNameTransfer[hidden],
#profilNavGearAffiliateRefresh[hidden],
.nav-platform-owner-only[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.gruplar-main,
.studyolar-main {
  padding: 1.25rem 1.5rem 3rem;
  min-width: 0;
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
  .left-sidebar {
    display: none;
  }

  .post-more {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }

  .pmd-item {
    min-height: 44px;
    padding: 12px 14px;
  }
}

/* Gönderi / grup ⋯ menüsü */
.post-more-wrap {
  position: relative;
  flex-shrink: 0;
}
.post-more {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #64748b);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.post-more:hover {
  background: var(--gray-100, #f1f5f9);
}
.post-more-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  min-width: 180px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  z-index: 40;
  overflow: hidden;
}
.post-more-dropdown.open {
  display: block;
}
.pmd-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  font-size: 0.84rem;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: var(--gray-700, #334155);
  border-bottom: 1px solid var(--gray-100, #f1f5f9);
}
.pmd-item:last-child {
  border-bottom: none;
}
.pmd-item.pmd-danger {
  color: #ef4444;
}
.pmd-icon {
  width: 18px;
  text-align: center;
}

.report-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.report-overlay.open {
  display: flex;
}
.report-box {
  width: 100%;
  max-width: 420px;
  background: var(--card, #fff);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border, #e2e8f0);
  position: relative;
}
.report-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: var(--gray-100, #f1f5f9);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
}
.report-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.report-sub {
  font-size: 0.82rem;
  color: var(--muted, #64748b);
  margin-bottom: 0.85rem;
}
.report-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
}
.report-char {
  font-size: 0.72rem;
  color: var(--muted, #64748b);
  text-align: right;
  margin-top: 0.25rem;
}
.report-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.85rem;
}
.report-btn-cancel,
.report-btn-submit {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid var(--border, #e2e8f0);
  background: transparent;
}
.report-btn-submit {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.report-btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.band-toast.pmd-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #0f172a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.band-toast.pmd-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
