/* Eladyne Broadcaster / Moodle Player - Studio Web Interface Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&family=Cinzel:wght@600;700;900&display=swap');

:root {
  --bg-darkest: #090909;
  --bg-dark: #121212;
  --bg-sidebar: #191919;
  --bg-panel: #181818;
  --bg-panel-dark: #0e0e0e;
  --bg-header: #141414;
  --bg-mahogany: #5c1d0e;
  --bg-mahogany-hover: #6e2311;
  --border-mahogany: #732412;
  --orange-bright: #ff6600;
  --blue-hotkey: #389bfa;
  --green-active: #009922;
  --olive-muted: #5e5c00;
  --text-main: #ffffff;
  --text-muted: #888888;
  --text-dim: #cccccc;
  --border-color: #242424;
  --border-light: #333333;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif: 'Cinzel', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.3;
}

/* APP SHELL: HORIZONTAL LAYOUT */
#broadcaster-app {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-darkest);
}

/* 1. FAR LEFT SIDEBAR NAV (Genişletilmiş 88px ve En Üste Kadar Çıkan Sol Bar) */
.sidebar-nav {
  width: 88px;
  height: 100vh;
  background-color: var(--bg-sidebar);
  border-right: 1px solid #282828;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 5px;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 200;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 78px;
  height: 60px;
  border-radius: 6px;
  background-color: var(--bg-mahogany);
  border: 1px solid var(--border-mahogany);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.nav-item:hover {
  background-color: var(--bg-mahogany-hover);
  border-color: #8c2e17;
}

.nav-item.active {
  background-color: var(--bg-mahogany);
  border-color: var(--orange-bright);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.4);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  width: 26px;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  color: #ffffff;
  letter-spacing: -0.1px;
}

/* MAIN WORKSPACE WRAPPER */
.main-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* TOP HEADER BAR (Player / Zone Tree kısmının en üstünden başlar) */
.top-header {
  height: 54px;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 6px 14px;
  z-index: 100;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.breadcrumb-area {
  font-weight: 700;
  font-size: 11.5px;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.header-lower-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-action-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-icon-btn {
  background: #222222;
  border: 1px solid #333333;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  border-radius: 3px;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.header-top-right-clock {
  display: flex;
  align-items: center;
}

.digital-clock {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

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

.mood-selector select {
  background: #ffffff;
  color: #000000;
  border: 1px solid #cccccc;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.status-badge {
  background: var(--bg-mahogany);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 9.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-mahogany);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 4px #ffffff;
}

/* CONTENT BODY */
.content-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ZONE TREE PANEL (Sol Oyuncular Listesi) */
.zone-tree-panel {
  width: 240px;
  height: 100%;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background-color: #0e0e0e;
  flex-shrink: 0;
  z-index: 150;
}

.search-box {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-color);
  background-color: #0e0e0e;
}

.search-box input {
  width: 100%;
  background-color: var(--bg-mahogany);
  border: 1px solid var(--border-mahogany);
  border-radius: 4px;
  padding: 5px 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.zone-tree {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}

.tree-category {
  margin-bottom: 4px;
}

.category-header {
  padding: 4px 8px;
  font-weight: 700;
  font-size: 11px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.loc-pin {
  font-size: 12px;
}

.category-items {
  display: flex;
  flex-direction: column;
}

.zone-item {
  padding: 4px 8px 4px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.zone-item:hover {
  background-color: #222222;
}

.zone-item.active {
  background-color: var(--bg-mahogany);
  color: #ffffff;
  font-weight: 700;
  border-radius: 3px;
}

.status-badge-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.status-badge-icon.off {
  background-color: var(--olive-muted);
}

.status-badge-icon.on {
  background-color: var(--green-active);
}

/* STAGE WORKSPACE WRAPPER */
.stage-workspace-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.main-stage-workspace {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* PLAYLIST QUEUE PANEL (Genişletilmiş 480px Şarkı Listesi Paneli) */
.playlist-panel {
  width: 480px;
  display: flex;
  flex-direction: column;
  background-color: #1a1a1a;
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
}

.playlist-header {
  background: linear-gradient(180deg, #444444 0%, #2b2b2b 100%);
  padding: 6px 12px;
  font-weight: 700;
  font-size: 11px;
  color: #ffffff;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.playlist-queue {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.playlist-row {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 10px;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.playlist-row:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.playlist-row:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.playlist-row.playing {
  background-color: rgba(92, 29, 14, 0.5);
  border-left: 3px solid var(--orange-bright);
}

.track-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
  width: 20px;
}

.track-title {
  flex: 1;
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-duration {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 9px;
}

.track-remove {
  background: #b82222;
  border: none;
  color: #ffffff;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  cursor: pointer;
}

/* RIGHT PANEL: REAL STAGE PHOTOGRAPH BACKGROUND */
.right-stage-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #000000 url('/images/broadcaster-stage.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.stage-top-controls {
  padding: 14px;
  position: relative;
  z-index: 10;
}

.btn-add-hotkey {
  background: var(--blue-hotkey);
  color: #ffffff;
  border: 1px solid #5aaeff;
  border-radius: 6px;
  width: 72px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(56, 155, 250, 0.4);
}

.btn-add-hotkey span {
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
}

.plus-icon {
  font-size: 18px !important;
  font-weight: bold;
}

.hotkeys-grid {
  padding: 0 14px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  position: relative;
  z-index: 10;
}

.hotkey-card {
  background: rgba(24, 24, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hotkey-title {
  font-weight: 700;
  font-size: 11px;
  color: #ffffff;
}

.hotkey-desc {
  font-size: 9px;
  color: var(--text-muted);
}

/* BOTTOM AUDIO PLAYER CONTROLS (Starts to the right of Zone Tree Panel) */
.bottom-player-bar {
  height: 78px;
  background-color: #121212;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 18px 6px;
  position: relative;
  z-index: 100;
}

.progress-area {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.time-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  min-width: 36px;
}

.progress-track-wrapper {
  flex: 1;
  height: 12px;
  background-color: #222222;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.progress-fill-striped {
  height: 100%;
  width: 85%;
  background: repeating-linear-gradient(
    45deg,
    #ff8c00,
    #ff8c00 10px,
    #ff5500 10px,
    #ff5500 20px
  );
  background-size: 200% 100%;
  animation: stripe-move 2s linear infinite;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
}

@keyframes stripe-move {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

.player-lower-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.playback-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ctrl {
  background: #2a2a2a;
  border: none;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.1s ease;
}

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

.btn-play-pause {
  background: #ff6600;
  color: #ffffff;
  width: 38px;
  height: 38px;
  font-size: 14px;
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.7);
}

.player-right-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.volume-control-area {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 11px;
  color: #ffffff;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 200px;
  height: 8px;
  background: var(--orange-bright);
  border-radius: 4px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
  text-align: right;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #1c1c1c;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  width: 400px;
  padding: 18px;
}

.modal-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dim);
}

.form-group input {
  background: #242424;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  padding: 6px 8px;
  color: #ffffff;
  outline: none;
}

.btn-primary {
  background: var(--orange-bright);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
}

/* HASAN UĞUR DALIÇ EASTER EGG TRIBUTE MODAL (Stunning Gold & Amber Motion Design) */
.tribute-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tribute-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tribute-card-box {
  width: 520px;
  background: linear-gradient(145deg, #181410 0%, #0d0a08 100%);
  border: 1px solid rgba(255, 200, 80, 0.4);
  border-radius: 16px;
  padding: 36px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(255, 170, 0, 0.25),
    inset 0 1px 0 rgba(255, 235, 180, 0.3);
  transform: scale(0.7) translateY(40px) rotateX(10deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.tribute-modal-overlay.active .tribute-card-box {
  transform: scale(1) translateY(0) rotateX(0deg);
}

.tribute-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e0d0b0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 20;
}

.tribute-close-btn:hover {
  background: rgba(255, 180, 0, 0.3);
  border-color: #ffd700;
  color: #ffffff;
  transform: rotate(90deg);
}

.tribute-amber-aura {
  position: absolute;
  top: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 170, 0, 0.3) 0%, rgba(255, 100, 0, 0.1) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: aura-pulse 4s ease-in-out infinite alternate;
}

@keyframes aura-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 1; }
}

.tribute-crown-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.golden-ring-spinner {
  position: absolute;
  inset: 0;
  border: 2px dashed #ffd700;
  border-radius: 50%;
  animation: golden-spin 12s linear infinite;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

@keyframes golden-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tribute-crown-badge {
  font-size: 42px;
  filter: drop-shadow(0 4px 12px rgba(255, 200, 0, 0.8));
  animation: crown-bounce 2s ease-in-out infinite alternate;
}

@keyframes crown-bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.tribute-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #ffaa00;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tribute-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #ffe6a0 50%, #ffaa00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.tribute-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #d4af37;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.tribute-separator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffaa00;
  font-size: 10px;
  margin-bottom: 18px;
}

.tribute-quote {
  font-size: 14.5px;
  line-height: 1.65;
  color: #f0e6d2;
  font-weight: 400;
  padding: 0 12px;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.tribute-quote strong {
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tribute-banner {
  background: linear-gradient(90deg, rgba(255, 170, 0, 0.15), rgba(255, 215, 0, 0.25), rgba(255, 170, 0, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 30px;
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #ffe680;
  letter-spacing: 1px;
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.2);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: #333333;
}
