/*
 * Anlatmak Theme — layout.css
 * 3-Kolon Desktop Grid, Mobil Breakpoints, Sayfa Kapsayıcısı
 */

/* ── Site Container ──────────────────────────────────────────────────────── */
.site-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 3-Kolon Ana Grid ────────────────────────────────────────────────────── */
.three-col-layout {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  grid-template-areas: "sidebar-left main sidebar-right";
  gap: 24px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 40px;
}

.sidebar-left   { grid-area: sidebar-left; }
.main-content   { grid-area: main; min-width: 0; }
.sidebar-right  { grid-area: sidebar-right; }

/* Yapışkan sidebar'lar */
.sidebar-left,
.sidebar-right {
  position: sticky;
  top: 80px;          /* header height + 20px gap */
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar-left::-webkit-scrollbar,
.sidebar-right::-webkit-scrollbar { display: none; }

/* ── Hero + Content Type Bar ─────────────────────────────────────────────── */
.hero-wrapper {
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Section Header (Feed Başlığı) ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header__title {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── Profil Sayfası Grid ─────────────────────────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-areas:
    "profile-header profile-header"
    "profile-main   profile-sidebar";
  gap: 24px;
  padding-top: 0;
  padding-bottom: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.profile-header-area { grid-area: profile-header; }
.profile-main        { grid-area: profile-main; min-width: 0; }
.profile-sidebar     {
  grid-area: profile-sidebar;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}
.profile-sidebar::-webkit-scrollbar { display: none; }

/* ── Profil Cover ────────────────────────────────────────────────────────── */
.profile-cover {
  position: relative;
  height: 260px;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  background: var(--card-2);
}

.profile-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(13,14,21,0.8) 100%
  );
}

/* Profil Kimlik Alanı */
.profile-identity {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0 32px 24px;
  margin-bottom: 24px;
  position: relative;
}

.profile-avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-bottom: 12px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card);
}

.profile-avatar__level-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.profile-name-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 800;
}

.profile-verified {
  color: var(--accent);
  font-size: 18px;
  margin-top: 4px;
}

.profile-level-tag {
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  align-self: center;
}

.profile-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.profile-username {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.profile-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 12px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.profile-meta__item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-stats {
  display: flex;
  gap: 24px;
}

.profile-stat {
  text-align: center;
}

.profile-stat__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.profile-stat__label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Rozetler */
.profile-badges {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.profile-badges__row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform var(--ease);
}

.profile-badge:hover { transform: scale(1.1); }

/* Vitrin Kartları — 3'lü Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.showcase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform var(--ease), border-color var(--ease);
}

.showcase-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.showcase-card__img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.showcase-card__body { padding: 12px; }

.showcase-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.showcase-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.showcase-card__type-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--card-2);
  color: var(--text-muted);
  margin-bottom: 8px;
  display: inline-block;
}

.showcase-card__stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Profil Sekme Navigasyonu */
.profile-tabs {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.profile-tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  text-decoration: none;
}

.profile-tab:hover { color: var(--text); }
.profile-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── İlgi Alanları Etiketleri ────────────────────────────────────────────── */
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.interest-tag {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--card-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--ease);
}

.interest-tag:hover { border-color: var(--accent); color: var(--accent); }

/* Benzer Yazarlar */
.similar-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.similar-author:last-child { border-bottom: none; }

.similar-author__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.similar-author__info { flex: 1; min-width: 0; }
.similar-author__name { font-size: 13px; font-weight: 600; color: var(--text); }
.similar-author__handle { font-size: 12px; color: var(--text-muted); }

/* Seviye & Rozet Kartı */
.level-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.level-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: var(--accent-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.level-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.level-card__sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.level-card__bar {
  height: 6px;
  background: var(--card-2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 6px;
}

.level-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.level-card__xp {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Profil İstatistikler Sidebar ────────────────────────────────────────── */
.profile-stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-stat-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  transition: color var(--ease);
}

.profile-stat-list__item:last-child { border-bottom: none; }
.profile-stat-list__item:hover { color: var(--accent); }

.profile-stat-list__icon { color: var(--text-muted); font-size: 16px; }
.profile-stat-list__label { flex: 1; color: var(--text-muted); }
.profile-stat-list__value { font-weight: 700; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1200px) {
  .three-col-layout {
    grid-template-columns: 200px 1fr 260px;
  }
}

/* Küçük Tablet */
@media (max-width: 960px) {
  .three-col-layout {
    grid-template-columns: 200px 1fr;
    grid-template-areas:
      "sidebar-left main";
  }
  .sidebar-right { display: none; }

  .profile-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "profile-header"
      "profile-main";
  }
  .profile-sidebar { display: none; }

  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobil */
@media (max-width: 768px) {
  .three-col-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main";
    padding-top: 16px;
    gap: 12px;
  }

  .sidebar-left  { display: none; }
  .sidebar-right { display: none; }

  .site-container { padding: 0 12px; }

  .profile-name { font-size: 1.2rem; }
  .profile-actions { flex-direction: column; gap: 6px; }
  .profile-stats { gap: 12px; }

  .showcase-grid { grid-template-columns: 1fr; }
}

/* Küçük Mobil */
@media (max-width: 480px) {
  .hero { height: 200px; }
  .hero__content { padding: 20px; }
  .content-type-btn { min-width: 80px; }

  .profile-cover { height: 180px; }
  .profile-avatar { width: 72px; height: 72px; }
  .profile-avatar-wrap { width: 72px; height: 72px; margin-top: -36px; }
}

/* ── Hiyerarşik Yorum Ağacı & Form Stilleri ────────────────────────────── */
.comments-area {
  margin-top: 32px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.comments-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.comment-form-card {
  background: var(--card-2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.comment-form-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-form-author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment-form-status {
  font-size: 13px;
  color: var(--text-muted);
}

.comment-form__input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s;
}

.comment-form__input:focus {
  border-color: var(--accent);
}

.reply-to-badge {
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.js-cancel-reply-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  line-height: 1;
}

.js-cancel-reply-btn:hover {
  color: var(--danger);
}

.comment-item {
  transition: background-color var(--ease);
}

.comment-depth-2 {
  margin-left: 20px;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.comment-depth-3 {
  margin-left: 36px;
  border-left: 2px solid rgba(108, 92, 231, 0.5);
  padding-left: 12px;
}

.comment-avatar-img {
  border-radius: 50%;
  object-fit: cover;
}

.comment-reply-btn:hover {
  text-decoration: underline;
  color: var(--accent-light) !important;
}

.comments-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Bildirim Dropdown Paneli ───────────────────────────────────────────── */
.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-height: 420px;
  background: var(--card-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notif-dropdown__header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.notif-dropdown__body {
  overflow-y: auto;
  max-height: 360px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text);
  transition: background-color var(--ease);
}

.notif-item:hover {
  background: var(--card);
}

.notif-item.is-unread {
  background: rgba(108, 92, 231, 0.12);
}

.notif-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-message {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.notif-time {
  font-size: 11px;
  color: var(--text-muted);
}

.notif-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}


