/* =============================================
   ASKWAVE MAIN CSS — Canlı & Modern Tasarım
   ============================================= */

/* ─── RESET & BASE ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--aw-font-sans);
  font-size: var(--aw-text-base);
  line-height: var(--aw-leading-relaxed);
  color: var(--aw-gray-800);
  background-color: var(--aw-gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--aw-primary); text-decoration: none; transition: color var(--aw-transition-fast); }
a:hover { color: var(--aw-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ─── LAYOUT ────────────────────────────────── */
.aw-container {
  max-width: var(--aw-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--aw-space-5);
  padding-right: var(--aw-space-5);
}

.aw-layout {
  display: grid;
  grid-template-columns: 1fr var(--aw-sidebar-width);
  gap: var(--aw-space-8);
  align-items: start;
  padding-top: var(--aw-space-8);
  padding-bottom: var(--aw-space-12);
}

.aw-layout--full { grid-template-columns: 1fr; }
.aw-layout--wide { grid-template-columns: 1fr 280px; }

.aw-main { min-width: 0; }
.aw-sidebar { position: sticky; top: calc(var(--aw-header-height) + 1.5rem); }

/* ─── HEADER ────────────────────────────────── */
.aw-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--aw-white);
  border-bottom: 2px solid var(--aw-primary);
  height: var(--aw-header-height);
  box-shadow: var(--aw-shadow);
}

.aw-header__inner {
  display: flex;
  align-items: center;
  gap: var(--aw-space-6);
  height: 100%;
}

.aw-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--aw-space-3);
  text-decoration: none;
}

.aw-header__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--aw-primary) 0%, var(--aw-accent) 100%);
  border-radius: var(--aw-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: var(--aw-font-bold);
  letter-spacing: -1px;
}

.aw-header__logo-text {
  font-size: var(--aw-text-xl);
  font-weight: var(--aw-font-extrabold);
  color: var(--aw-secondary);
  letter-spacing: -0.5px;
}

.aw-header__logo-text span { color: var(--aw-primary); }

.aw-header__search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.aw-header__search input {
  width: 100%;
  height: 42px;
  padding: 0 var(--aw-space-4) 0 var(--aw-space-10);
  border: 2px solid var(--aw-gray-200);
  border-radius: var(--aw-radius-full);
  background: var(--aw-gray-50);
  font-size: var(--aw-text-sm);
  transition: all var(--aw-transition-fast);
  outline: none;
}

.aw-header__search input:focus {
  border-color: var(--aw-primary);
  background: var(--aw-white);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}

.aw-header__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--aw-gray-400);
  pointer-events: none;
  font-size: 14px;
}

.aw-header__nav { display: flex; align-items: center; gap: var(--aw-space-2); margin-left: auto; }

.aw-header__nav a {
  font-size: var(--aw-text-sm);
  font-weight: var(--aw-font-medium);
  color: var(--aw-gray-700);
  padding: var(--aw-space-2) var(--aw-space-3);
  border-radius: var(--aw-radius);
  transition: all var(--aw-transition-fast);
  white-space: nowrap;
}

.aw-header__nav a:hover,
.aw-header__nav a.current {
  color: var(--aw-primary);
  background: var(--aw-primary-bg);
}

/* ─── NOTIFICATION BELL ─────────────────────── */
.aw-notif-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--aw-radius-full);
  background: var(--aw-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aw-gray-600);
  transition: all var(--aw-transition-fast);
  cursor: pointer;
}

.aw-notif-bell:hover {
  background: var(--aw-primary-bg);
  color: var(--aw-primary);
}

.aw-notif-bell__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  background: var(--aw-primary);
  color: white;
  font-size: 10px;
  font-weight: var(--aw-font-bold);
  border-radius: var(--aw-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid white;
  animation: aw-pulse 2s infinite;
}

@keyframes aw-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

.aw-notif-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  background: var(--aw-white);
  border-radius: var(--aw-radius-md);
  box-shadow: var(--aw-shadow-xl);
  border: 1px solid var(--aw-gray-200);
  overflow: hidden;
  display: none;
  z-index: 500;
}

.aw-notif-dropdown.is-open { display: block; animation: aw-dropdown-in 150ms ease; }

@keyframes aw-dropdown-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.aw-notif-header {
  padding: var(--aw-space-4) var(--aw-space-5);
  border-bottom: 1px solid var(--aw-gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aw-notif-header h3 {
  font-size: var(--aw-text-sm);
  font-weight: var(--aw-font-semibold);
  color: var(--aw-gray-800);
}

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

.aw-notif-item {
  display: flex;
  align-items: flex-start;
  gap: var(--aw-space-3);
  padding: var(--aw-space-3) var(--aw-space-5);
  border-bottom: 1px solid var(--aw-gray-50);
  position: relative;
  transition: background var(--aw-transition-fast);
}

.aw-notif-item:hover { background: var(--aw-gray-50); }
.aw-notif-item--unread { background: var(--aw-primary-bg); }
.aw-notif-item--unread:hover { background: #fde8ea; }

.aw-notif-item__message { font-size: var(--aw-text-sm); color: var(--aw-gray-700); line-height: 1.4; margin-bottom: 2px; }
.aw-notif-item__time { font-size: var(--aw-text-xs); color: var(--aw-gray-400); }
.aw-notif-item__link { position: absolute; inset: 0; }
.aw-notif-empty { padding: var(--aw-space-6); text-align: center; color: var(--aw-gray-500); font-size: var(--aw-text-sm); }

/* ─── USER MENU ─────────────────────────────── */
.aw-user-menu {
  position: relative;
}

.aw-user-menu__trigger {
  display: flex;
  align-items: center;
  gap: var(--aw-space-2);
  padding: 4px 8px 4px 4px;
  border-radius: var(--aw-radius-full);
  border: 2px solid var(--aw-gray-200);
  background: var(--aw-white);
  cursor: pointer;
  transition: all var(--aw-transition-fast);
}

.aw-user-menu__trigger:hover {
  border-color: var(--aw-primary);
  background: var(--aw-primary-bg);
}

.aw-user-menu__name {
  font-size: var(--aw-text-sm);
  font-weight: var(--aw-font-medium);
  color: var(--aw-gray-700);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aw-user-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--aw-white);
  border-radius: var(--aw-radius-md);
  box-shadow: var(--aw-shadow-xl);
  border: 1px solid var(--aw-gray-200);
  overflow: hidden;
  display: none;
  z-index: 500;
}

.aw-user-menu__dropdown.is-open { display: block; animation: aw-dropdown-in 150ms ease; }

.aw-user-menu__dropdown a,
.aw-user-menu__dropdown button {
  display: flex;
  align-items: center;
  gap: var(--aw-space-3);
  padding: var(--aw-space-3) var(--aw-space-4);
  font-size: var(--aw-text-sm);
  color: var(--aw-gray-700);
  width: 100%;
  text-align: left;
  transition: background var(--aw-transition-fast);
}

.aw-user-menu__dropdown a:hover,
.aw-user-menu__dropdown button:hover {
  background: var(--aw-gray-50);
  color: var(--aw-primary);
}

.aw-user-menu__dropdown hr {
  border: none;
  border-top: 1px solid var(--aw-gray-100);
  margin: var(--aw-space-1) 0;
}

/* ─── ASK BUTTON ────────────────────────────── */
.aw-btn-ask {
  display: inline-flex;
  align-items: center;
  gap: var(--aw-space-2);
  padding: 0 var(--aw-space-5);
  height: 42px;
  background: linear-gradient(135deg, var(--aw-primary) 0%, var(--aw-accent) 100%);
  color: white;
  font-weight: var(--aw-font-semibold);
  font-size: var(--aw-text-sm);
  border-radius: var(--aw-radius-full);
  white-space: nowrap;
  transition: all var(--aw-transition-fast);
  box-shadow: 0 4px 15px rgba(230,57,70,0.3);
}

.aw-btn-ask:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230,57,70,0.4);
}

.aw-btn-ask:active { transform: translateY(0); }

/* ─── HERO / PAGE HEADER ────────────────────── */
.aw-page-hero {
  background: linear-gradient(135deg, var(--aw-secondary) 0%, var(--aw-secondary-light) 100%);
  padding: var(--aw-space-12) 0 var(--aw-space-8);
  position: relative;
  overflow: hidden;
}

.aw-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.aw-page-hero__content { position: relative; z-index: 1; }

.aw-page-hero__title {
  font-size: var(--aw-text-4xl);
  font-weight: var(--aw-font-extrabold);
  color: var(--aw-white);
  line-height: var(--aw-leading-tight);
  margin-bottom: var(--aw-space-3);
}

.aw-page-hero__title span {
  background: linear-gradient(90deg, var(--aw-primary-light), var(--aw-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aw-page-hero__sub {
  font-size: var(--aw-text-lg);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--aw-space-6);
}

/* ─── STATS BAR ─────────────────────────────── */
.aw-stats-bar {
  display: flex;
  gap: var(--aw-space-6);
  padding: var(--aw-space-4) 0;
}

.aw-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aw-stat-item__number {
  font-size: var(--aw-text-2xl);
  font-weight: var(--aw-font-extrabold);
  color: var(--aw-white);
  line-height: 1;
}

.aw-stat-item__label {
  font-size: var(--aw-text-xs);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ─── CATEGORY BAR ──────────────────────────── */
.aw-category-bar {
  background: var(--aw-white);
  border-bottom: 1px solid var(--aw-gray-200);
  position: sticky;
  top: var(--aw-header-height);
  z-index: 900;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.aw-category-bar::-webkit-scrollbar { display: none; }

.aw-category-bar__list {
  display: flex;
  gap: var(--aw-space-1);
  padding: var(--aw-space-2) var(--aw-space-5);
  white-space: nowrap;
}

.aw-category-bar__item a {
  display: inline-flex;
  align-items: center;
  gap: var(--aw-space-2);
  padding: var(--aw-space-2) var(--aw-space-4);
  font-size: var(--aw-text-sm);
  font-weight: var(--aw-font-medium);
  color: var(--aw-gray-600);
  border-radius: var(--aw-radius-full);
  transition: all var(--aw-transition-fast);
  border: 1px solid transparent;
}

.aw-category-bar__item a:hover,
.aw-category-bar__item a.active {
  background: var(--aw-primary-bg);
  color: var(--aw-primary);
  border-color: var(--aw-primary-light);
}

.aw-category-bar__item a .cat-count {
  display: inline-block;
  padding: 1px 6px;
  background: var(--aw-gray-100);
  border-radius: var(--aw-radius-full);
  font-size: 11px;
  color: var(--aw-gray-500);
}

.aw-category-bar__item a.active .cat-count {
  background: var(--aw-primary);
  color: white;
}

/* ─── FILTER BAR ────────────────────────────── */
.aw-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--aw-space-5);
  flex-wrap: wrap;
  gap: var(--aw-space-3);
}

.aw-filter-bar__title {
  font-size: var(--aw-text-xl);
  font-weight: var(--aw-font-bold);
  color: var(--aw-gray-900);
}

.aw-filter-tabs {
  display: flex;
  background: var(--aw-gray-100);
  border-radius: var(--aw-radius-full);
  padding: 3px;
}

.aw-filter-tab {
  padding: var(--aw-space-2) var(--aw-space-4);
  font-size: var(--aw-text-sm);
  font-weight: var(--aw-font-medium);
  color: var(--aw-gray-600);
  border-radius: var(--aw-radius-full);
  transition: all var(--aw-transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.aw-filter-tab.active,
.aw-filter-tab:hover {
  background: var(--aw-white);
  color: var(--aw-primary);
  box-shadow: var(--aw-shadow-xs);
}

/* ─── QUESTION CARD ─────────────────────────── */
.aw-question-card {
  background: var(--aw-white);
  border-radius: var(--aw-radius-md);
  border: 1px solid var(--aw-gray-200);
  padding: var(--aw-space-5);
  margin-bottom: var(--aw-space-3);
  transition: all var(--aw-transition);
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--aw-space-4);
}

.aw-question-card:hover {
  border-color: var(--aw-primary-light);
  box-shadow: var(--aw-shadow-md);
  transform: translateY(-1px);
}

.aw-question-card--solved {
  border-left: 4px solid var(--aw-success);
}

.aw-question-card--featured {
  border-left: 4px solid var(--aw-accent);
  background: linear-gradient(to right, var(--aw-accent-bg), var(--aw-white) 30%);
}

.aw-question-card--sticky::before {
  content: '\f08d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--aw-accent);
  font-size: 14px;
}

/* Stats kolon */
.aw-question-card__stats {
  display: flex;
  flex-direction: column;
  gap: var(--aw-space-2);
  align-items: center;
}

.aw-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 56px;
  padding: var(--aw-space-2);
  border-radius: var(--aw-radius);
  border: 1px solid var(--aw-gray-200);
  background: var(--aw-gray-50);
}

.aw-stat-box--solved {
  background: var(--aw-success-bg);
  border-color: var(--aw-success);
}

.aw-stat-box__num {
  font-size: var(--aw-text-base);
  font-weight: var(--aw-font-bold);
  color: var(--aw-gray-800);
  line-height: 1;
}

.aw-stat-box--solved .aw-stat-box__num { color: var(--aw-success-dark); }

.aw-stat-box__label {
  font-size: 10px;
  color: var(--aw-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* İçerik kolon */
.aw-question-card__body {}

.aw-question-card__title {
  font-size: var(--aw-text-base);
  font-weight: var(--aw-font-semibold);
  color: var(--aw-gray-900);
  line-height: var(--aw-leading-snug);
  margin-bottom: var(--aw-space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aw-question-card__title a:hover { color: var(--aw-primary); }

.aw-question-card__excerpt {
  font-size: var(--aw-text-sm);
  color: var(--aw-gray-500);
  margin-bottom: var(--aw-space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: var(--aw-leading-relaxed);
}

.aw-question-card__footer {
  display: flex;
  align-items: center;
  gap: var(--aw-space-3);
  flex-wrap: wrap;
}

/* Etiketler */
.aw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--aw-space-1);
  align-items: center;
}

.aw-tag {
  display: inline-block;
  padding: 2px var(--aw-space-2);
  background: var(--aw-gray-100);
  color: var(--aw-gray-600);
  font-size: 11px;
  font-weight: var(--aw-font-medium);
  border-radius: var(--aw-radius-sm);
  transition: all var(--aw-transition-fast);
}

.aw-tag:hover {
  background: var(--aw-primary-bg);
  color: var(--aw-primary);
}

/* Yazar meta */
.aw-question-card__meta {
  display: flex;
  align-items: center;
  gap: var(--aw-space-2);
  margin-left: auto;
  font-size: var(--aw-text-xs);
  color: var(--aw-gray-500);
  white-space: nowrap;
}

.aw-question-card__meta a { color: var(--aw-gray-600); font-weight: var(--aw-font-medium); }
.aw-question-card__meta a:hover { color: var(--aw-primary); }

/* ─── SINGLE QUESTION ───────────────────────── */
.aw-question-detail {
  background: var(--aw-white);
  border-radius: var(--aw-radius-md);
  border: 1px solid var(--aw-gray-200);
  overflow: hidden;
}

.aw-question-detail__header {
  padding: var(--aw-space-6);
  border-bottom: 1px solid var(--aw-gray-100);
}

.aw-question-detail__title {
  font-size: var(--aw-text-2xl);
  font-weight: var(--aw-font-bold);
  color: var(--aw-gray-900);
  line-height: var(--aw-leading-tight);
  margin-bottom: var(--aw-space-4);
}

.aw-question-detail__meta {
  display: flex;
  align-items: center;
  gap: var(--aw-space-4);
  flex-wrap: wrap;
  font-size: var(--aw-text-sm);
  color: var(--aw-gray-500);
}

.aw-question-detail__body {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0;
}

/* Oy paneli */
.aw-vote-panel {
  padding: var(--aw-space-5) var(--aw-space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--aw-space-2);
  border-right: 1px solid var(--aw-gray-100);
}

.aw-vote-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--aw-radius);
  border: 2px solid var(--aw-gray-200);
  background: var(--aw-white);
  color: var(--aw-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--aw-transition-fast);
  cursor: pointer;
}

.aw-vote-btn:hover,
.aw-vote-btn.voted-up {
  border-color: var(--aw-success);
  background: var(--aw-success-bg);
  color: var(--aw-success-dark);
}

.aw-vote-btn.voted-down {
  border-color: var(--aw-danger);
  background: var(--aw-danger-bg);
  color: var(--aw-danger);
}

.aw-vote-count {
  font-size: var(--aw-text-xl);
  font-weight: var(--aw-font-bold);
  color: var(--aw-gray-800);
  line-height: 1;
}

.aw-vote-count.positive { color: var(--aw-success-dark); }
.aw-vote-count.negative { color: var(--aw-danger); }

.aw-favorite-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--aw-radius);
  background: none;
  border: none;
  color: var(--aw-gray-400);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--aw-transition-fast);
  cursor: pointer;
}

.aw-favorite-btn:hover,
.aw-favorite-btn.favorited { color: var(--aw-accent); }

.aw-question-detail__content {
  padding: var(--aw-space-6);
}

/* ─── ANSWER ────────────────────────────────── */
.aw-answers-section {
  background: var(--aw-white);
  border-radius: var(--aw-radius-md);
  border: 1px solid var(--aw-gray-200);
  margin-top: var(--aw-space-5);
  overflow: hidden;
}

.aw-answers-header {
  padding: var(--aw-space-4) var(--aw-space-6);
  border-bottom: 1px solid var(--aw-gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--aw-gray-50);
}

.aw-answers-header h2 {
  font-size: var(--aw-text-lg);
  font-weight: var(--aw-font-bold);
  color: var(--aw-gray-900);
}

.aw-answer {
  display: grid;
  grid-template-columns: 60px 1fr;
  border-bottom: 1px solid var(--aw-gray-100);
  transition: background var(--aw-transition-fast);
}

.aw-answer:last-child { border-bottom: none; }

.aw-answer--best {
  background: linear-gradient(to right, var(--aw-success-bg) 0%, var(--aw-white) 8%);
  border-left: 4px solid var(--aw-success);
}

.aw-answer__content { padding: var(--aw-space-5); }

.aw-answer__best-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--aw-space-1);
  padding: 2px 10px;
  background: var(--aw-success-bg);
  color: var(--aw-success-dark);
  border-radius: var(--aw-radius-full);
  font-size: var(--aw-text-xs);
  font-weight: var(--aw-font-semibold);
  margin-bottom: var(--aw-space-3);
  border: 1px solid var(--aw-success);
}

.aw-answer__body { margin-bottom: var(--aw-space-4); }

.aw-answer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--aw-space-3);
}

.aw-best-answer-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--aw-space-2);
  padding: var(--aw-space-2) var(--aw-space-4);
  border: 2px solid var(--aw-gray-200);
  border-radius: var(--aw-radius-full);
  font-size: var(--aw-text-sm);
  font-weight: var(--aw-font-medium);
  color: var(--aw-gray-600);
  cursor: pointer;
  transition: all var(--aw-transition-fast);
  background: var(--aw-white);
}

.aw-best-answer-btn:hover {
  border-color: var(--aw-success);
  color: var(--aw-success-dark);
  background: var(--aw-success-bg);
}

/* ─── CONTENT TYPOGRAPHY ────────────────────── */
.aw-content h1,
.aw-content h2,
.aw-content h3,
.aw-content h4 {
  color: var(--aw-gray-900);
  font-weight: var(--aw-font-semibold);
  line-height: var(--aw-leading-snug);
  margin: 1.5em 0 0.5em;
}

.aw-content h1 { font-size: var(--aw-text-2xl); }
.aw-content h2 { font-size: var(--aw-text-xl); }
.aw-content h3 { font-size: var(--aw-text-lg); }

.aw-content p { margin-bottom: 1em; }

.aw-content ul, .aw-content ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.aw-content ul { list-style: disc; }
.aw-content ol { list-style: decimal; }

.aw-content li { margin-bottom: 0.25em; }

.aw-content code {
  background: var(--aw-gray-100);
  color: var(--aw-primary);
  padding: 2px 6px;
  border-radius: var(--aw-radius-sm);
  font-family: var(--aw-font-mono);
  font-size: 0.875em;
}

.aw-content pre {
  background: var(--aw-secondary);
  color: #e2e8f0;
  padding: var(--aw-space-4);
  border-radius: var(--aw-radius);
  overflow-x: auto;
  margin-bottom: 1em;
  line-height: 1.6;
}

.aw-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: var(--aw-text-sm);
}

.aw-content blockquote {
  border-left: 4px solid var(--aw-primary);
  padding: var(--aw-space-3) var(--aw-space-5);
  background: var(--aw-primary-bg);
  border-radius: 0 var(--aw-radius) var(--aw-radius) 0;
  margin-bottom: 1em;
  color: var(--aw-gray-700);
  font-style: italic;
}

.aw-content a {
  color: var(--aw-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aw-content img {
  border-radius: var(--aw-radius);
  margin: var(--aw-space-4) 0;
}

.aw-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  font-size: var(--aw-text-sm);
}

.aw-content th,
.aw-content td {
  padding: var(--aw-space-3) var(--aw-space-4);
  border: 1px solid var(--aw-gray-200);
  text-align: left;
}

.aw-content th {
  background: var(--aw-gray-50);
  font-weight: var(--aw-font-semibold);
}

/* ─── AVATAR ────────────────────────────────── */
.aw-avatar {
  border-radius: var(--aw-radius-full);
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.aw-avatar-sm { width: 40px; height: 40px; }
.aw-avatar-md { width: 80px; height: 80px; }
.aw-avatar-lg { width: 120px; height: 120px; }

/* ─── AUTHOR BOX ────────────────────────────── */
.aw-author-box {
  display: flex;
  align-items: center;
  gap: var(--aw-space-3);
}

.aw-author-box__info {}
.aw-author-box__name {
  font-size: var(--aw-text-sm);
  font-weight: var(--aw-font-semibold);
  color: var(--aw-gray-800);
}
.aw-author-box__name a:hover { color: var(--aw-primary); }
.aw-author-box__meta {
  font-size: var(--aw-text-xs);
  color: var(--aw-gray-500);
}

/* ─── ROLE BADGE ────────────────────────────── */
.aw-role-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--aw-radius-full);
  font-size: 10px;
  font-weight: var(--aw-font-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-admin      .aw-role-badge { background: #fef3c7; color: #92400e; }
.role-moderator  .aw-role-badge { background: #ede9fe; color: #5b21b6; }
.role-trusted    .aw-role-badge { background: #dcfce7; color: #166534; }
.role-member     .aw-role-badge { background: var(--aw-gray-100); color: var(--aw-gray-600); }

/* ─── SIDEBAR ───────────────────────────────── */
.aw-widget {
  background: var(--aw-white);
  border-radius: var(--aw-radius-md);
  border: 1px solid var(--aw-gray-200);
  padding: var(--aw-space-5);
  margin-bottom: var(--aw-space-4);
}

.aw-widget-title {
  font-size: var(--aw-text-sm);
  font-weight: var(--aw-font-bold);
  color: var(--aw-gray-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--aw-space-4);
  padding-bottom: var(--aw-space-3);
  border-bottom: 2px solid var(--aw-gray-100);
  display: flex;
  align-items: center;
  gap: var(--aw-space-2);
}

.aw-widget-title i { color: var(--aw-primary); }

/* ─── FOOTER ────────────────────────────────── */
.aw-footer {
  background: var(--aw-secondary);
  color: rgba(255,255,255,0.7);
  padding: var(--aw-space-12) 0 var(--aw-space-6);
  margin-top: var(--aw-space-16);
}

.aw-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--aw-space-8);
  margin-bottom: var(--aw-space-8);
}

.aw-footer__brand {}
.aw-footer__brand .aw-header__logo { margin-bottom: var(--aw-space-4); }
.aw-footer__brand p { font-size: var(--aw-text-sm); line-height: var(--aw-leading-relaxed); }

.aw-footer__col h4 {
  color: white;
  font-size: var(--aw-text-sm);
  font-weight: var(--aw-font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--aw-space-4);
}

.aw-footer__col ul { display: flex; flex-direction: column; gap: var(--aw-space-2); }
.aw-footer__col li a { font-size: var(--aw-text-sm); transition: color var(--aw-transition-fast); }
.aw-footer__col li a:hover { color: white; }

.aw-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--aw-space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--aw-text-sm);
}

/* ─── EMPTY STATE ───────────────────────────── */
.aw-empty-state {
  text-align: center;
  padding: var(--aw-space-16) var(--aw-space-8);
}

.aw-empty-state__icon {
  font-size: 48px;
  margin-bottom: var(--aw-space-4);
  opacity: 0.4;
}

.aw-empty-state__title {
  font-size: var(--aw-text-xl);
  font-weight: var(--aw-font-bold);
  color: var(--aw-gray-700);
  margin-bottom: var(--aw-space-2);
}

.aw-empty-state__desc {
  font-size: var(--aw-text-sm);
  color: var(--aw-gray-500);
  margin-bottom: var(--aw-space-6);
}

/* ─── ALERT / NOTICE ────────────────────────── */
.aw-alert {
  padding: var(--aw-space-4) var(--aw-space-5);
  border-radius: var(--aw-radius);
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: var(--aw-space-3);
  font-size: var(--aw-text-sm);
  margin-bottom: var(--aw-space-4);
}

.aw-alert--success { background: var(--aw-success-bg); border-color: var(--aw-success); color: var(--aw-success-dark); }
.aw-alert--warning { background: var(--aw-warning-bg); border-color: var(--aw-warning); color: #92400e; }
.aw-alert--danger  { background: var(--aw-danger-bg);  border-color: var(--aw-danger);  color: #9b1c1c; }
.aw-alert--info    { background: var(--aw-info-bg);    border-color: var(--aw-info);    color: #0c4a6e; }

/* ─── BREADCRUMB ────────────────────────────── */
.aw-breadcrumb {
  padding: var(--aw-space-3) 0;
}

.aw-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--aw-space-1);
  font-size: var(--aw-text-sm);
}

.aw-breadcrumb__item a { color: var(--aw-gray-500); }
.aw-breadcrumb__item a:hover { color: var(--aw-primary); }
.aw-breadcrumb__item--active { color: var(--aw-gray-700); font-weight: var(--aw-font-medium); }
.aw-breadcrumb__sep { color: var(--aw-gray-300); margin: 0 2px; }

/* ─── LOAD MORE ─────────────────────────────── */
.aw-load-more-wrap { text-align: center; padding: var(--aw-space-6) 0; }

/* ─── TOAST NOTIFICATION ────────────────────── */
.aw-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--aw-space-3);
  pointer-events: none;
}

.aw-toast {
  display: flex;
  align-items: center;
  gap: var(--aw-space-3);
  padding: var(--aw-space-3) var(--aw-space-5);
  background: var(--aw-white);
  border-radius: var(--aw-radius-md);
  box-shadow: var(--aw-shadow-xl);
  font-size: var(--aw-text-sm);
  font-weight: var(--aw-font-medium);
  min-width: 280px;
  pointer-events: all;
  animation: aw-toast-in 300ms ease;
  border-left: 4px solid var(--aw-primary);
}

.aw-toast--success { border-color: var(--aw-success); }
.aw-toast--error   { border-color: var(--aw-danger); }
.aw-toast--warning { border-color: var(--aw-warning); }

@keyframes aw-toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes aw-toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}

.aw-toast.removing { animation: aw-toast-out 300ms ease forwards; }

/* ─── SOLVED BADGE ──────────────────────────── */
.aw-solved-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  background: var(--aw-success-bg);
  color: var(--aw-success-dark);
  border-radius: var(--aw-radius-full);
  font-size: var(--aw-text-xs);
  font-weight: var(--aw-font-semibold);
  border: 1px solid var(--aw-success);
}

/* ─── LOADING SPINNER ───────────────────────── */
.aw-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--aw-gray-200);
  border-top-color: var(--aw-primary);
  border-radius: 50%;
  animation: aw-spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes aw-spin {
  to { transform: rotate(360deg); }
}

/* ─── ANSWER COUNT ──────────────────────────── */
.aw-view-count {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--aw-gray-400);
  font-size: var(--aw-text-xs);
}
