/* ============================================================
   OĞUZHAN REİSOĞLU — ANA TEMA
   Cinematic Blue Neon / Sahne-Ses-Sinema estetiği
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* --- Renk Token'ları --- */
  --bg-void:        #060912;
  --bg-elevated:    #0d1424;
  --bg-card:        #101a30;
  --neon-blue:      #00d4ff;
  --neon-blue-dim:  #0098b8;
  --neon-violet:    #7b2ff7;
  --text-primary:   #eaf2ff;
  --text-dim:       #6b7d99;
  --text-faint:     #3d4a63;
  --border-soft:    rgba(0, 212, 255, 0.14);
  --border-glow:    rgba(0, 212, 255, 0.45);
  --danger:         #ff4d6d;
  --success:        #2de8a0;
  --warning:        #ffb84d;

  /* --- Tipografi --- */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* --- Boşluk / Ölçek --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 24px rgba(0, 212, 255, 0.25);
  --shadow-glow-strong: 0 0 40px rgba(0, 212, 255, 0.4);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg-void);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(123, 47, 247, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(0, 212, 255, 0.10), transparent);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  margin: 0;
  line-height: 1.1;
}

p { margin: 0; }

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

::selection {
  background: var(--neon-blue);
  color: var(--bg-void);
}

/* Klavye erişilebilirliği - görünür focus halkası */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--neon-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVİGASYON
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 18, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.5);
}

.navbar-logo span {
  color: var(--neon-blue);
}

.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
  transition: width 0.25s ease;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  gap: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border-soft);
}

.lang-switcher a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 4px;
  color: var(--text-dim);
}

.lang-switcher a.active {
  background: var(--neon-blue);
  color: var(--bg-void);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ============================================================
   BUTONLAR
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--neon-blue);
  color: #00141a;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glow);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
}

.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

.btn-danger {
  background: var(--danger);
  color: #fff;
}

/* ============================================================
   HERO (Anasayfa) — imza öğe: ses dalgası çizgisi
   ============================================================ */

.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  color: var(--text-primary);
  text-shadow:
    0 0 20px rgba(0, 212, 255, 0.6),
    0 0 60px rgba(123, 47, 247, 0.3);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* Waveform SVG imza animasyonu */
.waveform {
  width: 100%;
  max-width: 720px;
  height: 90px;
  margin: 0 auto;
  display: block;
}

.waveform path {
  stroke: var(--neon-blue);
  stroke-width: 2.5;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.7));
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-wave 2.2s ease-out forwards;
}

@keyframes draw-wave {
  to { stroke-dashoffset: 0; }
}

.hero-glow-bg {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(123, 47, 247, 0.22), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   KARTLAR
   ============================================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--border-glow);
}

.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--text-primary);
}

.section-title .accent { color: var(--neon-blue); }

/* ============================================================
   MÜZİK / SONG GRID
   ============================================================ */

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.song-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.song-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.song-cover {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-void));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.song-cover img { width: 100%; height: 100%; object-fit: cover; }

.song-play-btn {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--neon-blue);
  color: var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
}

.song-card:hover .song-play-btn {
  opacity: 1;
  transform: scale(1);
}

.song-info { padding: 16px; }

.song-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.song-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
}

/* Mini audio player (sticky bottom) */
.player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(13, 20, 36, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glow);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.player-bar.active { transform: translateY(0); }

.player-bar .pb-cover {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.player-bar .pb-info { min-width: 140px; }
.player-bar .pb-title { font-weight: 600; font-size: 0.88rem; }
.player-bar .pb-controls { display: flex; align-items: center; gap: 12px; }
.player-bar .pb-progress {
  flex: 1;
  height: 4px;
  background: var(--border-soft);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.player-bar .pb-progress-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--neon-blue);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-blue);
  width: 0%;
}

/* ============================================================
   FORUM
   ============================================================ */

.forum-category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.forum-category-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}

.forum-category-row:hover { border-color: var(--border-glow); }

.forum-cat-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon-blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.forum-cat-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.forum-cat-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.forum-cat-stats {
  margin-left: auto;
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
}

.topic-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.topic-row:hover { background: rgba(0, 212, 255, 0.03); }

.topic-pin-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--neon-blue);
  border: 1px solid var(--border-glow);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.topic-lock-icon { color: var(--text-faint); }

.post-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.post-author {
  width: 130px;
  flex-shrink: 0;
  text-align: center;
}

.post-author img {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border-glow);
  margin: 0 auto 8px;
}

.post-author-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.role-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
}

.role-badge.admin { background: rgba(123, 47, 247, 0.2); color: var(--neon-violet); }
.role-badge.moderator { background: rgba(0, 212, 255, 0.15); color: var(--neon-blue); }
.role-badge.owner { background: rgba(255, 184, 77, 0.15); color: var(--warning); }

.post-content { flex: 1; }

.post-content-body {
  margin: 12px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

.post-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.post-actions button, .post-actions a {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-actions button:hover, .post-actions a:hover { color: var(--neon-blue); }

/* ============================================================
   ROZET / SEVİYE
   ============================================================ */

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--neon-blue);
  padding: 3px 10px;
  border-radius: 12px;
}

.xp-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-violet));
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 14px;
}

.badge-item {
  text-align: center;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.badge-icon {
  width: 40px; height: 40px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.badge-name { font-size: 0.7rem; color: var(--text-dim); }

/* ============================================================
   FORM ELEMANLARI
   ============================================================ */

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.form-textarea { min-height: 140px; resize: vertical; }

.form-error {
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.form-success {
  background: rgba(45, 232, 160, 0.1);
  border: 1px solid rgba(45, 232, 160, 0.3);
  color: var(--success);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.auth-box {
  max-width: 420px;
  margin: 80px auto;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 50px 0 30px;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--border-glow);
  color: var(--neon-blue);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
  .navbar-links { display: none; }
  .mobile-toggle { display: block; }
  .post-card { flex-direction: column; }
  .post-author { width: auto; text-align: left; display: flex; align-items: center; gap: 12px; }
  .post-author img { margin: 0; }
  .forum-cat-stats { display: none; }
  .section-title { font-size: 1.7rem; }
  .player-bar { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .player-bar .pb-info { min-width: 0; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .player-bar .pb-progress { order: 5; flex-basis: 100%; }
}
