/* ==========================================================================
   PromptTube - YouTube Temalı Video & Prompt Paylaşım Platformu
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Outfit:wght@400;500;600;700;800&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  /* YouTube Dark Mode (Varsayılan) */
  --yt-bg-main: #0f0f0f;
  --yt-bg-surface: #181818;
  --yt-bg-surface-elevated: #222222;
  --yt-bg-hover: #272727;
  --yt-bg-active: #383838;
  
  --yt-border: #303030;
  --yt-border-light: #262626;
  
  --yt-text-main: #f1f1f1;
  --yt-text-secondary: #aaaaaa;
  --yt-text-muted: #717171;
  
  --yt-red: #ff0000;
  --yt-red-hover: #cc0000;
  --yt-red-glow: rgba(255, 0, 0, 0.25);
  
  --yt-chip-bg: #272727;
  --yt-chip-text: #f1f1f1;
  --yt-chip-active-bg: #f1f1f1;
  --yt-chip-active-text: #0f0f0f;

  --yt-code-bg: #121212;
  --yt-code-border: #2c2c2c;

  --yt-header-height: 56px;
  --yt-sidebar-width: 240px;
  --yt-sidebar-collapsed-width: 72px;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --yt-bg-main: #f9f9f9;
  --yt-bg-surface: #ffffff;
  --yt-bg-surface-elevated: #ffffff;
  --yt-bg-hover: #f2f2f2;
  --yt-bg-active: #e5e5e5;
  
  --yt-border: #e0e0e0;
  --yt-border-light: #eaeaea;
  
  --yt-text-main: #0f0f0f;
  --yt-text-secondary: #606060;
  --yt-text-muted: #909090;
  
  --yt-chip-bg: #f2f2f2;
  --yt-chip-text: #0f0f0f;
  --yt-chip-active-bg: #0f0f0f;
  --yt-chip-active-text: #ffffff;

  --yt-code-bg: #f5f5f5;
  --yt-code-border: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* Temel Sıfırlamalar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--yt-bg-main);
  color: var(--yt-text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

/* ==========================================================================
   Header (Üst Bar)
   ========================================================================== */
.yt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--yt-header-height);
  background-color: var(--yt-bg-main);
  border-bottom: 1px solid var(--yt-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

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

.yt-icon-btn {
  background: transparent;
  border: none;
  color: var(--yt-text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.yt-icon-btn:hover {
  background-color: var(--yt-bg-hover);
}

.yt-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.yt-brand-icon {
  color: var(--yt-red);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 8px var(--yt-red-glow));
}

.yt-brand-badge {
  font-size: 0.65rem;
  background: var(--yt-chip-bg);
  color: var(--yt-text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 2px;
  vertical-align: super;
}

/* Arama Alanı */
.yt-header-center {
  flex: 0 1 640px;
  display: flex;
  align-items: center;
  margin: 0 16px;
}

.yt-search-form {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.yt-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: var(--yt-bg-main);
  border: 1px solid var(--yt-border);
  border-right: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  padding: 0 16px;
  height: 40px;
  transition: var(--transition);
}

.yt-search-box:focus-within {
  border-color: #1c62b9;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.yt-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--yt-text-main);
  font-size: 0.95rem;
}

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

.yt-search-btn {
  width: 64px;
  height: 40px;
  background-color: var(--yt-chip-bg);
  border: 1px solid var(--yt-border);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  color: var(--yt-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.yt-search-btn:hover {
  background-color: var(--yt-bg-active);
}

/* Header Sağ Eylemler */
.yt-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yt-btn-add {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--yt-chip-bg);
  color: var(--yt-text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--yt-border);
  transition: var(--transition);
}

.yt-btn-add:hover {
  background-color: var(--yt-bg-active);
  border-color: var(--yt-text-secondary);
}

.yt-btn-add i {
  color: var(--yt-red);
}

.theme-toggle-btn {
  position: relative;
}

/* User Profile Pill in Header */
.yt-user-menu-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--yt-chip-bg);
  border: 1px solid var(--yt-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yt-text-main);
  transition: var(--transition);
}

.yt-user-menu-pill:hover {
  background: var(--yt-bg-active);
}

.yt-user-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yt-red), #ff7700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ==========================================================================
   Sidebar & Layout (Düzen)
   ========================================================================== */
.yt-app-layout {
  display: flex;
  margin-top: var(--yt-header-height);
  min-height: calc(100vh - var(--yt-header-height));
}

.yt-sidebar {
  width: var(--yt-sidebar-width);
  background-color: var(--yt-bg-main);
  height: calc(100vh - var(--yt-header-height));
  position: fixed;
  top: var(--yt-header-height);
  left: 0;
  overflow-y: auto;
  padding: 12px;
  border-right: 1px solid var(--yt-border-light);
  transition: width var(--transition), transform var(--transition);
  z-index: 990;
}

.yt-sidebar::-webkit-scrollbar {
  width: 6px;
}
.yt-sidebar::-webkit-scrollbar-thumb {
  background: var(--yt-border);
  border-radius: 4px;
}

.yt-nav-section {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--yt-border-light);
}

.yt-nav-section:last-child {
  border-bottom: none;
}

.yt-nav-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--yt-text-muted);
  padding: 8px 12px;
  letter-spacing: 0.5px;
}

.yt-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--yt-text-main);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}

.yt-nav-item i {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  color: var(--yt-text-secondary);
  transition: var(--transition);
}

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

.yt-nav-item:hover i {
  color: var(--yt-text-main);
}

.yt-nav-item.active {
  background-color: var(--yt-bg-hover);
  font-weight: 700;
}

.yt-nav-item.active i {
  color: var(--yt-red);
}

/* Ana İçerik Alanı */
.yt-main-content {
  flex: 1;
  margin-left: var(--yt-sidebar-width);
  padding: 20px 24px;
  width: calc(100% - var(--yt-sidebar-width));
  min-height: calc(100vh - var(--yt-header-height));
  transition: margin-left var(--transition), width var(--transition);
}

/* ==========================================================================
   Chips Filtreleme (YouTube Kategori Sekmeleri)
   ========================================================================== */
.yt-chips-container {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.yt-chips-container::-webkit-scrollbar {
  display: none;
}

.yt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background-color: var(--yt-chip-bg);
  color: var(--yt-chip-text);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  user-select: none;
}

.yt-chip:hover {
  background-color: var(--yt-bg-active);
}

.yt-chip.active {
  background-color: var(--yt-chip-active-bg);
  color: var(--yt-chip-active-text);
  font-weight: 600;
}

/* ==========================================================================
   Video Kartları & Izgara (Grid)
   ========================================================================== */
.yt-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px 18px;
}

.yt-video-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  background: var(--yt-bg-surface);
  border: 1px solid var(--yt-border-light);
}

.yt-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--yt-border);
}

.yt-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

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

.yt-video-card:hover .yt-thumbnail-img {
  transform: scale(1.05);
}

.yt-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.yt-play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yt-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 16px var(--yt-red-glow);
}

.yt-video-card:hover .yt-play-overlay {
  opacity: 1;
}

.yt-tool-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 5px;
}

.yt-prompt-count-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.yt-video-info {
  padding: 14px;
  display: flex;
  gap: 12px;
}

.yt-creator-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yt-red), #ff7700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.yt-video-details {
  flex: 1;
  min-width: 0;
}

.yt-video-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--yt-text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.yt-video-category {
  font-size: 0.8rem;
  color: var(--yt-text-secondary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-video-metadata {
  font-size: 0.78rem;
  color: var(--yt-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-video-metadata span::before {
  content: "•";
  margin-right: 6px;
}
.yt-video-metadata span:first-child::before {
  content: "";
  margin-right: 0;
}

.yt-card-action-bar {
  border-top: 1px solid var(--yt-border-light);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--yt-bg-surface-elevated);
}

.yt-btn-quick-prompt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yt-red);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.yt-btn-quick-prompt:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Watch Page (Video İzleme & Prompt Detay Sayfası)
   ========================================================================== */
.yt-watch-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  max-width: 1720px;
  margin: 0 auto;
}

.yt-player-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yt-embed-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.yt-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.yt-watch-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--yt-text-main);
}

.yt-watch-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--yt-border);
}

.yt-watch-channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-watch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: var(--yt-chip-bg);
  border: 1px solid var(--yt-border);
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--yt-text-main);
  cursor: pointer;
  transition: var(--transition);
}

.yt-action-pill:hover {
  background-color: var(--yt-bg-active);
}

/* Prompts Kutusu (Nasıl Yapılır Promptları) */
.yt-prompts-box {
  background-color: var(--yt-bg-surface);
  border: 1px solid var(--yt-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
}

.yt-prompts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--yt-border);
}

.yt-prompts-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--yt-text-main);
}

.yt-prompts-title i {
  color: var(--yt-red);
}

.yt-prompt-item {
  background-color: var(--yt-code-bg);
  border: 1px solid var(--yt-code-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
  transition: var(--transition);
}

.yt-prompt-item:hover {
  border-color: rgba(255, 0, 0, 0.4);
}

.yt-prompt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.yt-step-badge {
  background: var(--yt-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.yt-prompt-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--yt-text-main);
}

.yt-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yt-red);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px var(--yt-red-glow);
}

.yt-btn-copy:hover {
  background: var(--yt-red-hover);
  transform: translateY(-1px);
}

.yt-btn-copy.copied {
  background: #00ba7c;
  box-shadow: 0 2px 8px rgba(0, 186, 124, 0.4);
}

.yt-code-content {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  background-color: var(--yt-bg-main);
  color: #5af78e;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--yt-border);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  margin-bottom: 12px;
}

.yt-negative-prompt-box {
  background: rgba(255, 68, 68, 0.08);
  border: 1px solid rgba(255, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.yt-negative-prompt-title {
  color: #ff6b6b;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.yt-param-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yt-param-chip {
  background-color: var(--yt-bg-surface-elevated);
  border: 1px solid var(--yt-border);
  color: var(--yt-text-secondary);
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Video Açıklama Kutusu */
.yt-description-box {
  background-color: var(--yt-bg-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--yt-text-main);
  border: 1px solid var(--yt-border-light);
}

/* ==========================================================================
   Prompt Tekrarlayıcı & Form Bileşenleri (Form Inputs & Repeaters)
   ========================================================================== */
.prompt-repeater-item {
  background: var(--yt-code-bg);
  border: 1px solid var(--yt-code-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 18px;
  position: relative;
  transition: var(--transition);
}

.prompt-repeater-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--yt-border);
}

.prompt-repeater-remove {
  background: #ff3333;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.prompt-repeater-remove:hover {
  background: #cc0000;
}

.studio-form-group {
  margin-bottom: 16px;
}

.studio-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yt-text-main);
  margin-bottom: 6px;
}

.studio-input, .studio-select, .studio-textarea {
  width: 100%;
  background-color: var(--yt-bg-main);
  border: 1px solid var(--yt-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--yt-text-main);
  font-size: 0.92rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

.studio-input:focus, .studio-select:focus, .studio-textarea:focus {
  border-color: #3ea6ff;
  box-shadow: 0 0 0 2px rgba(62, 166, 255, 0.2);
}

.studio-textarea {
  min-height: 110px;
  font-family: 'Fira Code', monospace;
  color: #5af78e;
  resize: vertical;
}

/* ==========================================================================
   YouTube Canlı Chat (Live Chat) Bileşeni
   ========================================================================== */
.yt-chat-container {
  background: var(--yt-bg-surface);
  border: 1px solid var(--yt-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 600px;
}

.yt-chat-header {
  padding: 14px 18px;
  background: var(--yt-bg-surface-elevated);
  border-bottom: 1px solid var(--yt-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yt-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--yt-bg-main);
}

.yt-chat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  animation: fadeInMsg 0.2s ease;
}

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

.yt-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #444, #666);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yt-chat-body {
  flex: 1;
}

.yt-chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.yt-chat-author {
  font-weight: 700;
  color: var(--yt-text-main);
  font-size: 0.82rem;
}

.yt-chat-author:hover {
  text-decoration: underline;
}

.yt-chat-role {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.yt-chat-time {
  font-size: 0.7rem;
  color: var(--yt-text-muted);
  margin-left: auto;
}

.yt-chat-text {
  color: var(--yt-text-main);
  word-break: break-word;
}

.yt-chat-footer {
  padding: 12px 16px;
  background: var(--yt-bg-surface);
  border-top: 1px solid var(--yt-border);
}

.yt-chat-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yt-chat-input {
  flex: 1;
  background: var(--yt-bg-main);
  border: 1px solid var(--yt-border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: var(--yt-text-main);
  outline: none;
  font-size: 0.9rem;
}

.yt-chat-input:focus {
  border-color: #3ea6ff;
}

.yt-chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yt-red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.yt-chat-send-btn:hover {
  background: var(--yt-red-hover);
  transform: scale(1.05);
}

/* İlgili Videolar (Sağ Kolon) */
.yt-related-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yt-related-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--yt-text-main);
  margin-bottom: 4px;
}

.yt-related-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  border-radius: var(--radius-sm);
  padding: 6px;
  transition: var(--transition);
}

.yt-related-card:hover {
  background-color: var(--yt-bg-hover);
}

.yt-related-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.yt-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-related-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.yt-related-video-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--yt-text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.yt-related-meta {
  font-size: 0.72rem;
  color: var(--yt-text-muted);
}

/* ==========================================================================
   Blog Sayfaları (Makale & Rehberler)
   ========================================================================== */
.yt-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.yt-blog-card {
  background: var(--yt-bg-surface);
  border: 1px solid var(--yt-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.yt-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 0, 0, 0.4);
}

.yt-blog-cover {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.yt-blog-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.yt-blog-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yt-text-main);
  line-height: 1.35;
  margin: 10px 0;
}

.yt-blog-summary {
  font-size: 0.88rem;
  color: var(--yt-text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-blog-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--yt-border-light);
  padding-top: 12px;
  font-size: 0.8rem;
  color: var(--yt-text-muted);
}

/* Blog Detay / Okuma Sayfası */
.yt-article-wrapper {
  max-width: 860px;
  margin: 0 auto;
  background: var(--yt-bg-surface);
  border: 1px solid var(--yt-border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
}

.yt-article-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--yt-text-main);
  margin-bottom: 16px;
}

.yt-article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--yt-text-main);
  margin-top: 24px;
}

.yt-article-content h2, 
.yt-article-content h3, 
.yt-article-content h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--yt-text-main);
  margin: 28px 0 12px;
}

.yt-article-content p {
  margin-bottom: 18px;
}

.yt-article-content pre {
  background: var(--yt-code-bg);
  border: 1px solid var(--yt-code-border);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #5af78e;
  margin: 18px 0;
}

.yt-article-content ul, .yt-article-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.yt-article-content li {
  margin-bottom: 6px;
}

/* ==========================================================================
   Toast Bildirim Sistemi
   ========================================================================== */
.yt-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f1f1f;
  color: #fff;
  border-left: 4px solid var(--yt-red);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.yt-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.yt-toast i {
  font-size: 1.2rem;
  color: var(--yt-red);
}

/* ==========================================================================
   Responsive Tasarım
   ========================================================================== */
@media (max-width: 1100px) {
  .yt-watch-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --yt-sidebar-width: 0px;
  }
  
  .yt-sidebar {
    transform: translateX(-100%);
    width: 240px;
  }
  
  .yt-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  
  .yt-main-content {
    margin-left: 0;
    width: 100%;
    padding: 16px 12px;
  }
  
  .yt-header-center {
    display: none;
  }
  
  .yt-header-center.mobile-active {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--yt-header-height);
    background: var(--yt-bg-main);
    z-index: 1010;
    margin: 0;
    padding: 0 16px;
  }
  
  .yt-article-wrapper {
    padding: 20px 16px;
  }
}
