/* ==========================================================
   sözyollasana — Modern, Şık ve Şiirsel Tasarım
   ========================================================== */

:root {
  --bg-main: #0a0d14;
  --bg-card: rgba(18, 24, 38, 0.72);
  --bg-card-hover: rgba(26, 34, 52, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);

  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --accent-cyan: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-rose: #f43f5e;
  --accent-emerald: #10b981;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Temel Ayarlar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Arka Plan Ambient Işıkları */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.glow-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -80px;
  left: -80px;
}

.glow-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  bottom: 10%;
  right: -100px;
  animation-duration: 22s;
  animation-delay: -5s;
}

.glow-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  top: 45%;
  left: 30%;
  animation-duration: 26s;
  animation-delay: -10s;
  opacity: 0.25;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -40px) scale(0.95); }
}

.stars-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 70px 120px, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 150px 80px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 240px 190px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 320px 140px, rgba(255, 255, 255, 0.45), transparent);
  background-size: 380px 380px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Konteyner */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Cam Efektli Kart Stili */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* ==========================================================
   Header / Üst Menü
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-gold-glow);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 40%, #e2e8f0 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tagline {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buton Stilleri */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: var(--bg-glass);
}

.btn-glass {
  background: var(--bg-glass);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition-fast);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.admin-badge-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-badge-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.3);
  color: #fff;
}

/* ==========================================================
   Hero & Söz Gönder Alanı
   ========================================================== */
.hero-section {
  padding: 48px 0 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-intro {
  max-width: 680px;
  margin-bottom: 30px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  background: linear-gradient(135deg, #ffffff 45%, #cbd5e1 75%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Söz Gönderme Form Kartı */
.quote-card-creator {
  width: 100%;
  max-width: 760px;
  padding: 32px 36px;
  position: relative;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-quote-mark {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 7rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  user-select: none;
}

.card-quote-mark.left {
  top: 10px;
  left: 20px;
}

.card-quote-mark.right {
  bottom: 0px;
  right: 20px;
}

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

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

textarea#quoteTextInput {
  width: 100%;
  background: rgba(10, 13, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.65;
  resize: vertical;
  min-height: 110px;
  transition: all var(--transition-fast);
}

textarea#quoteTextInput:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(10, 13, 20, 0.85);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.form-meta .input-tip {
  color: #7dd3fc;
  font-style: italic;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 18px;
  align-items: start;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  background: rgba(10, 13, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 40px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(10, 13, 20, 0.85);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Kategori Butonları */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.chip:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
}

.chip.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
  color: #fbbf24;
  font-weight: 600;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

/* ==========================================================
   Paylaşılan Sözler / Keşfet Akışı
   ========================================================== */
.quotes-feed-section {
  padding: 40px 0 80px 0;
}

.feed-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.feed-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.quote-counter-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.feed-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
}

.search-box svg {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-box input {
  padding-left: 36px;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  height: 38px;
}

.sort-select-wrapper {
  position: relative;
}

.sort-select {
  appearance: none;
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 34px 8px 16px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color var(--transition-fast);
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Kategori Filtre Butonları */
.category-filters-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.category-filters-scroll::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.filter-btn.active {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
  font-weight: 600;
}

/* ==========================================================
   Söz Kartları Izgarası (Grid)
   ========================================================== */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 26px 20px 26px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.6);
}

.quote-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.quote-category-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Kategori Renkleri */
.cat-Hayat { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.cat-Aşk { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.cat-Felsefe { background: rgba(129, 140, 248, 0.15); color: #a5b4fc; border: 1px solid rgba(129, 140, 248, 0.3); }
.cat-Umut { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.cat-Motivasyon { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.cat-Hüzün { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.cat-Genel { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }

/* Tarih ve Saat Gösterimi */
.quote-timestamp {
  font-size: 0.76rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

.quote-body {
  margin-bottom: 20px;
  position: relative;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: #f8fafc;
  word-break: break-word;
}

.quote-author {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--accent-gold);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-author::before {
  content: "—";
  opacity: 0.7;
}

/* Kart Aksiyonları (Beğen, Kopyala, Admin Sil) */
.quote-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.quote-actions-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.action-btn:hover {
  color: var(--text-main);
  background: var(--bg-glass);
}

.action-btn.like-btn:hover {
  color: #fb7185;
}

.action-btn.like-btn.liked {
  color: #f43f5e;
}

.action-btn.like-btn.liked svg {
  fill: #f43f5e;
  animation: heartPop 0.3s ease;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.action-btn.admin-delete-btn {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.action-btn.admin-delete-btn:hover {
  background: #f43f5e;
  color: #fff;
}

/* Yükleme ve Boş Durumlar */
.quotes-loading-state,
.quotes-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(245, 158, 11, 0.15);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px auto;
}

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

/* ==========================================================
   FLOATING BUBBLE BUTON ("İlham Al")
   ========================================================== */
.floating-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  cursor: grab;
  user-select: none;
  touch-action: none; /* Pointer drag on mobile */
  transition: transform 0.1s ease, filter 0.2s ease;
}

.floating-bubble:active {
  cursor: grabbing;
}

.bubble-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 14px rgba(245, 158, 11, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.bubble-pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  animation: bubblePulse 2.4s infinite;
  pointer-events: none;
}

@keyframes bubblePulse {
  0% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.2; }
  100% { transform: scale(0.96); opacity: 0.8; }
}

.bubble-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.bubble-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ==========================================================
   İlham Kutusu & Müzik Çalar Paneli
   ========================================================== */
.music-popup-panel {
  position: fixed;
  bottom: 84px;
  right: 28px;
  width: 320px;
  max-width: calc(100vw - 36px);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
  z-index: 998;
  padding: 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.music-popup-panel.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.95);
}

.music-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.popup-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fbbf24;
}

.sparkle-icon {
  animation: spin 6s linear infinite;
  display: inline-block;
}

.close-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.close-btn:hover {
  color: #fff;
}

/* Şimdi Çalan */
.now-playing-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 10px 0;
}

.album-art-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #312e81, #1e1b4b);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.equalizer-bars .bar {
  width: 3px;
  height: 6px;
  background: #fbbf24;
  border-radius: 2px;
  transition: height 0.2s ease;
}

.equalizer-bars.playing .bar:nth-child(1) { animation: eqBar 0.8s ease-in-out infinite alternate; }
.equalizer-bars.playing .bar:nth-child(2) { animation: eqBar 1.2s ease-in-out infinite 0.2s alternate; }
.equalizer-bars.playing .bar:nth-child(3) { animation: eqBar 0.9s ease-in-out infinite 0.4s alternate; }
.equalizer-bars.playing .bar:nth-child(4) { animation: eqBar 1.1s ease-in-out infinite 0.1s alternate; }

@keyframes eqBar {
  from { height: 4px; }
  to { height: 18px; }
}

.now-playing-info {
  overflow: hidden;
}

.track-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.05em;
  display: block;
}

.track-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
}

/* İlerleme Çubuğu ve Süre Göstergesi */
.track-progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px 0;
  user-select: none;
}

.track-time {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  width: 32px;
  text-align: center;
}

.progress-bar-wrap {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: height 0.15s ease;
}

.progress-bar-wrap:hover {
  height: 7px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 999px;
  transition: width 0.1s linear;
}

/* Oynatıcı Kontrolleri */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0;
}

.btn-ctrl {
  background: transparent;
  color: var(--text-muted);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.btn-ctrl:hover {
  color: #fff;
  transform: scale(1.1);
}

.btn-play-pause {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-play-pause:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
}

/* Ses Seviyesi */
.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  margin-bottom: 14px;
  padding: 0 4px;
}

.volume-container input[type="range"] {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  appearance: none;
  cursor: pointer;
  outline: none;
}

.volume-container input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f59e0b;
  cursor: pointer;
}

/* Şarkı Listesi */
.playlist-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.playlist-note {
  color: #fbbf24;
}

.track-list {
  list-style: none;
  max-height: 130px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.track-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.track-item.active {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-weight: 600;
}

.music-note-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.music-note-footer code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 4px;
  border-radius: 4px;
  color: #f1f5f9;
}

/* ==========================================================
   Modallar (Admin Giriş & Panel)
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease forwards;
}

.modal-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 440px;
  padding: 28px;
  position: relative;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-card.modal-large {
  max-width: 780px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-icon-badge {
  font-size: 1.4rem;
}

.modal-title-wrap h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
}

.admin-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.password-hint {
  display: block;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 5px;
}

.password-hint code {
  color: #fbbf24;
}

.error-msg {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions.space-between {
  justify-content: space-between;
}

/* Admin Panel İstatistikleri */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fbbf24;
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.admin-table-controls {
  margin-bottom: 12px;
}

.admin-quotes-table-wrap {
  flex: 1;
  overflow-y: auto;
  max-height: 340px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 10px 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}

.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.td-quote-text {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================
   Toast / Bildirimler
   ========================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(18, 24, 38, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #fff;
  font-size: 0.88rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-error {
  border-color: rgba(244, 63, 94, 0.5);
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutToast {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  margin-top: 40px;
  background: rgba(10, 13, 20, 0.6);
}

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

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.footer-brand p,
.footer-info p {
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* Yardımcı Sınıflar */
.hidden {
  display: none !important;
}

/* ==========================================================
   Responsive / Mobil Uyumluluk Medya Sorguları
   ========================================================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 30px 0 20px 0;
  }

  .quote-card-creator {
    padding: 22px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feed-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .feed-controls {
    width: 100%;
    justify-content: space-between;
  }

  .search-box {
    width: 100%;
  }

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

  .floating-bubble {
    bottom: 20px;
    right: 20px;
  }

  .music-popup-panel {
    bottom: 74px;
    right: 18px;
    width: calc(100vw - 36px);
  }

  .admin-stats-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .header-actions .btn-text {
    display: none;
  }

  .btn-ghost {
    padding: 8px 10px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  textarea#quoteTextInput {
    font-size: 1.02rem;
  }

  .quote-card {
    padding: 20px 18px;
  }
}
