/* ===================================================
   KRAGA AI STUDIO — Google Flow Birebir Tasarım Dili
   Koyu Sinematik Tuval & Modern Ajan Arayüzü
   =================================================== */

:root {
  --bg-app: #0a0b0d;
  --bg-sidebar: #0e0f12;
  --bg-panel: #131417;
  --bg-card: #18191d;
  --bg-input: #1a1b1f;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-active: #23252a;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --accent-gold: #ffd043;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --danger: #ef4444;

  --font-sans: 'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

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

/* ==========================================
   1. ÜST GEZİNME BARI (TOPBAR)
   ========================================== */
.flow-header {
  height: 52px;
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: relative;
  z-index: 50;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-bird-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 30, 30, 0.5));
}

.brand-neon-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
}

.header-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
}

.project-pill-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  padding: 4px 8px;
  border-radius: 6px;
  color: #d1d5db;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.project-pill-dropdown:hover {
  background: var(--bg-hover);
}

.icon-btn-micro {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 2px;
}

.icon-btn-micro:hover {
  color: #fff;
  background: var(--bg-hover);
}

/* Orta Arama Çubuğu */
.header-center {
  flex: 1;
  max-width: 580px;
  margin: 0 20px;
}

.flow-search-pill {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  height: 38px;
  padding: 0 14px;
  gap: 10px;
  transition: border-color 0.2s;
}

.flow-search-pill:focus-within {
  border-color: var(--border-strong);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.flow-search-pill input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
}

.flow-search-pill input::placeholder {
  color: var(--text-muted);
}

.search-filter-divider {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

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

/* Sağ Üst Araçlar */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-top-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.flow-top-icon-btn:hover {
  background: var(--bg-hover);
  color: #fff;
}

.pro-badge {
  background: #1f2024;
  color: #fff;
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.credits-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.credits-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.credit-icon {
  font-size: 13px;
}

.user-avatar-gold {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s;
}

.user-avatar-gold:hover {
  transform: scale(1.05);
}

/* ==========================================
   2. ANA 3 SÜTUNLU YAPI
   ========================================== */
.flow-layout {
  display: flex;
  height: calc(100vh - 52px);
  width: 100vw;
  overflow: hidden;
}

/* SOL SİDEBAR */
.flow-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--bg-app);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 8px;
  user-select: none;
  transition: width 0.2s ease;
}

.flow-sidebar.collapsed {
  width: 60px;
}

.flow-sidebar.collapsed span,
.flow-sidebar.collapsed .sidebar-disclaimer {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: #fff;
}

.nav-item.active {
  background: #25262a;
  color: #ffffff;
  font-weight: 500;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.nav-item-sub:hover {
  color: #fff;
  background: var(--bg-hover);
}

.sidebar-disclaimer {
  font-size: 10.5px;
  color: #52525b;
  line-height: 1.35;
  padding: 10px 14px 4px;
}

/* ==========================================
   3. ORTA TUVAL (CANVAS / GRID / KARAKTERLER)
   ========================================== */
.flow-canvas-container {
  flex: 1;
  background: #000000;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 1. Tüm Medya Izgarası (Görsel 2) */
.media-canvas-view {
  padding: 24px 32px;
  height: 100%;
  overflow-y: auto;
}

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

.grid-tabs-pill {
  display: flex;
  background: var(--bg-card);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  gap: 2px;
}

.pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.pill-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 500;
}

.grid-stats {
  font-size: 12.5px;
  color: var(--text-muted);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
  gap: 20px;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.media-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  background: #111;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.media-card:hover .card-img {
  transform: scale(1.03);
}

.card-play-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
}

.play-circle-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}

.card-info {
  padding: 12px 14px;
}

.card-title {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==========================================
   4. YENİ KARAKTER EKRANI (GÖRSEL 5 BİREBİR)
   ========================================== */
.characters-canvas-view {
  padding: 28px 48px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.char-view-header {
  margin-bottom: 20px;
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

.btn-back-link:hover {
  background: var(--bg-hover);
}

.char-center-content {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.char-main-heading {
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  color: #f3f4f6;
  line-height: 1.5;
  margin-bottom: 36px;
}

.char-main-heading span {
  font-size: 14px;
  color: var(--text-secondary);
}

.char-templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 40px;
}

.char-card {
  background: #141518;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.char-card:hover {
  background: #1c1d22;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.char-img-wrap {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #222;
}

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

.char-card-body h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.char-card-body p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Karakter Prompt Çubuğu */
.char-prompt-bar-wrap {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.char-prompt-box {
  width: 100%;
  background: #18191d;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s;
}

.char-prompt-box:focus-within {
  border-color: var(--border-strong);
}

.char-prompt-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13.5px;
}

.char-prompt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-micro-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 50%;
}

.action-micro-btn:hover {
  color: #fff;
}

.action-text-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.action-text-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.model-select-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.btn-send-round {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.btn-send-round:hover {
  transform: scale(1.05);
}

.char-upload-buttons {
  display: flex;
  gap: 12px;
}

/* ==========================================
   5. SİNEMATİK VİDEO OYNATICI & TIMELINE OVERLAY
   ========================================== */
.video-editor-overlay {
  position: absolute;
  inset: 0;
  background: #08090b;
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.editor-header {
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.editor-video-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn-sm {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn-sm:hover {
  color: #fff;
  background: var(--bg-hover);
}

.editor-main-player {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 16px;
}

.editor-main-player video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.player-floating-prompt {
  position: absolute;
  bottom: 28px;
  right: 28px;
  background: rgba(14, 15, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  color: #e5e7eb;
  max-width: 380px;
}

/* Timeline & Edit Bar */
.editor-timeline-section {
  background: #0e0f12;
  border-top: 1px solid var(--border-subtle);
  padding: 12px 24px;
}

.timeline-ruler {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.timeline-clips-track {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.clip-item {
  width: 90px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 2px solid transparent;
  cursor: pointer;
}

.clip-item.active {
  border-color: #fff;
}

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

.clip-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 9.5px;
  font-family: var(--font-mono);
  padding: 1px 4px;
  border-radius: 3px;
  color: #fff;
}

.clip-extend-btn {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.clip-extend-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.timeline-edit-input-bar {
  display: flex;
  align-items: center;
  background: #18191d;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 14px;
  gap: 12px;
}

.timeline-edit-input-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
}

.timeline-input-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-model {
  font-size: 11.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

.btn-timeline-send {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.btn-timeline-send:hover {
  color: #fff;
}

/* ==========================================
   6. SAĞ AJAN SOHBET PANELİ (FLOW BİREBİR)
   ========================================== */
.flow-agent-panel {
  width: 360px;
  flex-shrink: 0;
  background: #0f1013;
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease;
}

.agent-panel-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.agent-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.agent-title-text {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.agent-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.agent-chat-flow {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-msg {
  display: flex;
  flex-direction: column;
}

.flow-msg.user {
  align-items: flex-end;
}

.msg-bubble-user {
  background: #2a2b2f;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 13.5px;
  max-width: 85%;
  line-height: 1.4;
  word-break: break-word;
}

.flow-msg.assistant .msg-text {
  color: #e5e7eb;
  font-size: 13.5px;
  line-height: 1.5;
}

.msg-reactions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  opacity: 0.6;
}

.msg-reactions:hover {
  opacity: 1;
}

.react-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--text-muted);
}

.react-btn:hover {
  background: var(--bg-hover);
}

/* Flow Kredi Onay Kutusu */
.flow-confirm-box {
  background: #18191d;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  margin-top: 6px;
}

.confirm-prompt-text {
  font-size: 13px;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.confirm-options-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.option-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.option-row.reject {
  color: #f87171;
}

/* Üretilen Video Gömme Kartı */
.flow-video-embed-card {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #000;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}

.flow-video-embed-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.embed-play-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ajan Giriş Kutusu */
.agent-input-container {
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  background: #0f1013;
}

.agent-input-pill {
  background: #18191d;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 10px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}

.agent-input-pill:focus-within {
  border-color: var(--border-strong);
}

.agent-input-pill textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13.5px;
  resize: none;
  line-height: 1.4;
  max-height: 120px;
}

.agent-input-pill textarea::placeholder {
  color: var(--text-muted);
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tool-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.tool-btn:hover {
  color: #fff;
  background: var(--bg-hover);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-badge-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.send-arrow-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.send-arrow-btn:hover {
  transform: scale(1.06);
}

/* ==========================================
   7. GÖRÜNÜM MODU POPOVER (GÖRSEL 4 BİREBİR)
   ========================================== */
.flow-popover {
  position: absolute;
  top: 56px;
  right: 140px;
  width: 280px;
  background: #18191d;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  padding: 16px;
  z-index: 100;
}

.popover-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

.segmented-control {
  background: #25262b;
  border-radius: 999px;
  padding: 3px;
  display: flex;
  gap: 2px;
}

.seg-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.seg-btn.active {
  background: #373940;
  color: #fff;
  font-weight: 500;
}

.size-control .seg-btn {
  font-weight: 600;
}

.popover-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 14px 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #d1d5db;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #373940;
  transition: .2s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #ffffff;
}

input:checked + .slider:before {
  transform: translateX(16px);
  background-color: #000000;
}

/* ==========================================
   8. AJAN AYARLARI MODAL (GÖRSEL 3 BİREBİR)
   ========================================== */
.flow-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-drawer-card {
  width: 440px;
  max-width: 95vw;
  background: #141518;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.drawer-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-header h2 {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.setting-heading {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.radio-option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #1c1d22;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.radio-option-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.radio-option-card input {
  display: none;
}

.radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
}

.radio-option-card input:checked + .radio-dot {
  border-color: #fff;
}

.radio-option-card input:checked + .radio-dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #fff;
  border-radius: 50%;
}

.opt-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
}

.opt-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.aspect-ratio-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ratio-btn {
  flex: 1;
  background: #1c1d22;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
}

.ratio-btn.active {
  background: #282930;
  border-color: #fff;
  color: #fff;
}

.ratio-box {
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.r-16-9 { width: 18px; height: 10px; }
.r-4-3 { width: 16px; height: 12px; }
.r-1-1 { width: 14px; height: 14px; }
.r-3-4 { width: 12px; height: 16px; }
.r-9-16 { width: 10px; height: 18px; }

.multiplier-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mult-btn {
  flex: 1;
  background: #1c1d22;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.mult-btn.active {
  background: #282930;
  border-color: #fff;
  color: #fff;
}

.custom-select-box select {
  width: 100%;
  background: #1c1d22;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  outline: none;
  font-size: 13px;
  cursor: pointer;
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

.btn-save-white {
  background: #ffffff;
  color: #000000;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s;
}

.btn-save-white:hover {
  transform: scale(1.02);
}

.btn-secondary-pill {
  background: #222328;
  color: #fff;
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary-pill:hover {
  background: #2c2e35;
}

/* ==========================================
   9. DİYALOGLAR (REDEEM & AUTH)
   ========================================== */
.flow-dialog-card {
  width: 420px;
  max-width: 95vw;
  background: #141518;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

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

.dialog-header h3 {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.dialog-body {
  margin-bottom: 20px;
}

.redeem-input-wrap input,
.dialog-input {
  width: 100%;
  background: #1c1d22;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  font-family: var(--font-mono);
}

.alert-box {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.google-auth-btn {
  width: 100%;
  background: #ffffff;
  color: #000;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 16px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  margin: 14px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
  padding: 0 10px;
}

.auth-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* =========================================================================
   10. GOOGLE FLOW ANA SAYFA (SHOWCASE HERO & PROJELER DASHBOARD)
   ========================================================================= */
.flow-home-container {
  height: calc(100vh - 52px);
  overflow-y: auto;
  padding: 24px 48px 60px;
  background-color: #000000;
  display: flex;
  flex-direction: column;
}

/* Üst Showcase Hero Banner */
.showcase-hero-banner {
  width: 100%;
  min-height: 340px;
  border-radius: 18px;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 44px 56px;
  margin-bottom: 36px;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 65% 50%, rgba(240, 180, 160, 0.25) 0%, rgba(10, 10, 12, 0.85) 60%, #09090b 100%),
              url('https://images.unsplash.com/photo-1518834107812-67b0b7c58434?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  filter: contrast(1.1) brightness(0.75);
}

.hero-video-placeholder {
  width: 100%;
  height: 100%;
}

.hero-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.hero-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-player-controls {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 3px 6px;
}

.hero-ctrl-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.hero-ctrl-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.hero-content-overlay {
  position: relative;
  z-index: 5;
  max-width: 480px;
}

.hero-title {
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 13.5px;
  color: #d1d5db;
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-hero-start {
  background: #ffffff;
  color: #000000;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
}

.btn-hero-start:hover {
  transform: scale(1.03);
  background-color: #f3f4f6;
}

.hero-pagination-bars {
  display: flex;
  gap: 6px;
  margin-top: 28px;
}

.p-bar {
  width: 32px;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  cursor: pointer;
}

.p-bar.active {
  background: #ffffff;
}

/* Projeler Galerisi */
.home-projects-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 380px);
  gap: 28px;
  justify-content: center;
  margin-bottom: 40px;
}

.project-home-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proj-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  background: #18191d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, border-color 0.2s;
}

.project-home-card:hover .proj-thumb-wrap {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

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

.empty-card {
  background: #25262a;
}

.proj-card-title {
  font-size: 13px;
  font-weight: 500;
  color: #d1d5db;
}

/* + New Project Butonu */
.new-project-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.btn-new-project-pill {
  background: #23252a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-new-project-pill:hover {
  background: #2e3037;
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

/* Home Navbar Araçları */
.home-only-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.pill-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.social-icons-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 4px;
}

.social-icon {
  color: #9ca3af;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.social-icon:hover {
  color: #fff;
}


.auth-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
