/* === RAYCAST TARZI MODERN TASARIM === */

/* Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Ana renk paleti güncelle */
:root {
  --bg: #0c0c0e;
  --bg-elevated: #121214;
  --bg-card: #141416;
  --bg-hover: #1a1a1c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #f0f0f0;
  --text-dim: #a8a8a8;
  --text-mute: #6b6b6b;
  --accent: #22c55e;
  --accent-bright: #34d97a;
  --accent-dim: rgba(34, 197, 94, 0.15);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Body */
body {
  background: #0c0c0e !important;
  color: #f0f0f0 !important;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header,
header {
  background: rgba(12, 12, 14, 0.75) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid var(--border) !important;
  height: 56px !important;
}

.brand-text {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  font-size: 1.05rem !important;
}

.header-search input,
#layoutSearch,
#headerSearch {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 8px 14px 8px 38px !important;
  font-size: 0.875rem !important;
  transition: all 0.15s ease !important;
}

.header-search input:focus,
#layoutSearch:focus,
#headerSearch:focus {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

/* Sidebar */
.site-sidebar,
aside.sidebar {
  background: #0c0c0e !important;
  border-right: 1px solid var(--border) !important;
  padding: 16px 12px 40px 16px !important;
}

.side-section { margin-bottom: 24px !important; }

.side-label {
  font-size: 0.66rem !important;
  color: #4a4a4a !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 0 10px !important;
  margin-bottom: 8px !important;
}

.side-link {
  padding: 8px 10px !important;
  border-radius: var(--radius-sm) !important;
  color: #a8a8a8 !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  transition: all 0.12s ease !important;
  letter-spacing: -0.005em !important;
  position: relative !important;
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #f0f0f0 !important;
}

.side-link.active {
  background: rgba(34, 197, 94, 0.1) !important;
  color: #34d97a !important;
  font-weight: 600 !important;
}

.side-link.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #22c55e;
  border-radius: 0 2px 2px 0;
}

.side-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}

.side-icon svg { width: 16px !important; height: 16px !important; }

.side-count {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #6b6b6b !important;
  font-size: 0.68rem !important;
  padding: 1px 7px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

/* Main content */
.layout-main, main {
  padding: 28px 32px 60px !important;
}

.page-title {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #fff !important;
}

.page-sub {
  color: #6b6b6b !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
}

/* Konu kartları */
.thread-card,
.thread-row,
.thread-item {
  background: rgba(20, 20, 22, 0.6) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 14px 16px !important;
  transition: all 0.15s ease !important;
  box-shadow: var(--shadow-sm) !important;
}

.thread-card:hover,
.thread-row:hover,
.thread-item:hover {
  background: rgba(26, 26, 28, 0.8) !important;
  border-color: var(--border-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

.thread-card-title,
.thread-title {
  font-weight: 600 !important;
  color: #f0f0f0 !important;
  letter-spacing: -0.015em !important;
  font-size: 0.95rem !important;
}

.thread-meta {
  font-size: 0.78rem !important;
  color: #6b6b6b !important;
  gap: 8px !important;
}

.thread-meta strong { color: #a8a8a8 !important; font-weight: 600 !important; }

/* Tag pill */
.tag-pill,
.tag,
.thread-badge {
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
}

/* Hero */
.hero-block {
  padding: 32px 0 28px !important;
  border-bottom: 1px solid var(--border) !important;
}

.hero-block .page-title {
  font-size: 2.25rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.05 !important;
}

.hero-badge {
  background: rgba(34, 197, 94, 0.08) !important;
  border: 1px solid rgba(34, 197, 94, 0.15) !important;
  color: #34d97a !important;
  font-size: 0.68rem !important;
  padding: 5px 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

.hero-stat {
  background: rgba(20, 20, 22, 0.6) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 14px 16px !important;
}

.hero-stat:hover {
  border-color: var(--border-hover) !important;
  background: rgba(26, 26, 28, 0.8) !important;
}

.hero-stat-num {
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  font-feature-settings: 'tnum';
}

.hero-stat-label {
  font-size: 0.7rem !important;
  color: #6b6b6b !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
}

/* Butonlar */
.btn-primary, .hero-btn-primary, .auth-submit, .verify-btn {
  background: linear-gradient(180deg, #2dd675 0%, #22c55e 100%) !important;
  color: #000 !important;
  font-weight: 700 !important;
  border-radius: var(--radius) !important;
  padding: 9px 16px !important;
  font-size: 0.85rem !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  border: none !important;
  transition: all 0.15s ease !important;
}

.btn-primary:hover, .hero-btn-primary:hover, .auth-submit:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35), 0 1px 0 rgba(255, 255, 255, 0.15) inset !important;
  filter: brightness(1.05) !important;
}

.btn-ghost, .hero-btn-ghost {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border) !important;
  color: #d4d4d4 !important;
  font-weight: 600 !important;
  border-radius: var(--radius) !important;
  padding: 9px 16px !important;
  font-size: 0.85rem !important;
  transition: all 0.15s ease !important;
}

.btn-ghost:hover, .hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: var(--border-hover) !important;
  color: #fff !important;
}

/* Kategoriler */
.cat-card {
  background: rgba(20, 20, 22, 0.6) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 12px 14px !important;
  transition: all 0.15s ease !important;
}

.cat-card:hover {
  background: rgba(26, 26, 28, 0.8) !important;
  border-color: var(--border-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

.cat-card-icon { font-size: 1.1rem !important; }
.cat-card-title {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}
.cat-card-count { font-size: 0.72rem !important; color: #6b6b6b !important; }

/* Yorumlar */
.comment {
  background: rgba(20, 20, 22, 0.6) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 16px 18px !important;
}

.comment.solution {
  border-color: rgba(34, 197, 94, 0.35) !important;
  background: rgba(34, 197, 94, 0.04) !important;
}

.rich-content {
  line-height: 1.7 !important;
  color: #d4d4d4 !important;
  font-size: 0.925rem !important;
}

.rich-content h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin: 22px 0 10px !important;
  color: #fff !important;
}

.rich-content code {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--border) !important;
  color: #34d97a !important;
  font-size: 0.85em !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace !important;
}

.rich-content pre {
  background: #0a0a0b !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 16px !important;
}

.rich-content blockquote {
  border-left: 2px solid #22c55e !important;
  background: rgba(34, 197, 94, 0.05) !important;
  padding: 10px 16px !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}

/* Form inputları */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: #f0f0f0 !important;
  font-family: inherit !important;
  transition: all 0.15s ease !important;
  font-size: 0.9rem !important;
}

input:focus, textarea:focus, select:focus {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
  outline: none !important;
}

input::placeholder, textarea::placeholder { color: #5a5a5a !important; }

/* Section title */
.section-title, .sec-head h2 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: #f0f0f0 !important;
}

/* Section head */
.sec-head {
  margin: 28px 0 14px !important;
}

/* Kartlar genel */
.card, .thread-main, .profile-card, .auth-card, .admin-panel {
  background: rgba(20, 20, 22, 0.6) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0c0c0e; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border: 2px solid #0c0c0e;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

/* Selection */
::selection {
  background: rgba(34, 197, 94, 0.3);
  color: #fff;
}

/* Action buttons */
.action-btn, .icon-btn {
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  transition: all 0.12s ease !important;
}

/* Bildirim dropdown */
.notif-dropdown {
  background: #141416 !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
}

.notif-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* Smooth transitions */
a, button {
  transition: color 0.12s ease, background-color 0.12s ease, border-color 0.12s ease, transform 0.12s ease !important;
}

/* Focus ring */
*:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}
