/* Fájl: style.css | Date: 2026-12-06 | Version: 1.10 | Model: Gemini 4 Hydrogen */

:root {
  --bg: #000000;
  --surface: #121212;
  --border: #2c2c2c;
  --text-main: #ffffff;
  --text-accent: #ffea00;
  --text-muted: #9e9e9e;
  --danger: #ff3b30;
  --success: #34c759;
  --btn-bg: #1e1e1e;
  --btn-hover: #2d2d2d;
  --font-scale: 1;
}

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

html, body {
  height: 100dvh;
  background: var(--bg);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Felső sáv */
.topbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #1f1f1f;
  color: var(--text-muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.dot.live {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.dot.recording {
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Gombok */
button, select, a.btn {
  background: var(--btn-bg);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

button:hover, select:hover, a.btn:hover {
  background: var(--btn-hover);
}

button.primary {
  background: var(--success);
  color: #000000;
  border-color: var(--success);
  font-size: 1.05rem;
  padding: 0.65rem 1.25rem;
}

button.primary.stop {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

/* Figyelmeztető sáv */
.warning-banner {
  background: #3a1c00;
  color: #ffd166;
  border-bottom: 1px solid #8a4b00;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  line-height: 1.4;
  display: none;
}

/* Telefonos / laptopos élő felirat nézet (középre igazított, mozis elrendezés) */
.live-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.subtitle-history {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(92vw, 1100px);
  gap: 0.75rem;
}

.subtitle-item {
  width: 100%;
  max-width: min(92vw, 1100px);
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.subtitle-item.current {
  opacity: 1;
}

.subtitle-translated {
  font-size: calc(clamp(1.75rem, 6vw, 3.5rem) * var(--font-scale));
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-accent);
  word-wrap: break-word;
  max-height: 3.75em;
  overflow: hidden;
}

.subtitle-item:not(.current) .subtitle-translated {
  color: var(--text-main);
  font-size: calc(clamp(1.3rem, 4.5vw, 2.4rem) * var(--font-scale));
  font-weight: 700;
  max-height: 2.5em;
}

.subtitle-original {
  margin-top: 0.35rem;
  font-size: calc(clamp(0.95rem, 2.8vw, 1.35rem) * var(--font-scale));
  color: var(--text-muted);
  line-height: 1.35;
  max-height: 2.7em;
  overflow: hidden;
}

.hide-original .subtitle-original {
  display: none;
}

.placeholder {
  color: var(--text-muted);
  font-size: 1.25rem;
  text-align: center;
  margin: auto 0;
}

/* Speaker (Adó) elrendezés */
.speaker-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.panel-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.preview-original {
  font-size: 1.35rem;
  line-height: 1.4;
  min-height: 2.2rem;
  color: var(--text-main);
}

.preview-translated {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  min-height: 3rem;
  color: var(--text-accent);
}

/* Teljes képernyős /live nézet + lebegő fogaskerék menü */
.live-fullscreen {
  position: relative;
  width: 100%;
  height: 100dvh;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  gap: 0.75rem;
}

.floating-controls {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gear-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(30, 30, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.gear-btn:hover {
  background: rgba(50, 50, 50, 0.9);
  color: #ffffff;
}

.settings-panel {
  position: fixed;
  top: 3.75rem;
  right: 0.75rem;
  z-index: 30;
  width: 260px;
  background: #141414;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
}

.settings-panel.open {
  display: flex;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #dddddd;
}

.color-swatches {
  display: flex;
  gap: 0.5rem;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid transparent;
}

.color-swatch.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #000000 inset;
}
