/* =============================================
   LETSREADNEWS.COM – TELEPROMPTER STYLE SYSTEM
   ============================================= */

:root {
  --brand-red: #e63946;
  --brand-dark: #0a0a0f;
  --brand-surface: #13131f;
  --brand-card: #1a1a2e;
  --brand-border: rgba(255,255,255,0.08);
  --brand-text: #f0f0f5;
  --brand-muted: #8888aa;
  --brand-accent: #00d4ff;
  --brand-accent2: #7c3aed;
  --brand-gold: #f59e0b;
  --tp-bg: #0a0a0f;
  --tp-text: #ffffff;
  --header-h: 110px;
  --radius: 14px;
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Teleprompter themes */
body[data-tp-theme="light"] {
  --tp-bg: #f8f8f8;
  --tp-text: #111111;
}
body[data-tp-theme="green"] {
  --tp-bg: #001a00;
  --tp-text: #00ff41;
}
body[data-tp-theme="amber"] {
  --tp-bg: #0f0800;
  --tp-text: #ffb300;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--brand-dark);
  color: var(--brand-text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== SITE HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
  border-bottom: 1px solid rgba(230,57,70,0.3);
  box-shadow: 0 2px 30px rgba(0,0,0,0.8);
}

.header-top-bar {
  background: var(--brand-red);
  padding: 6px 0;
}
.header-top-bar .container {
  display: flex;
  justify-content: flex-end;
}
.header-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.header-social a {
  color: #fff;
  font-size: 14px;
  transition: opacity var(--transition);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.header-social a:hover { opacity: 0.7; background: rgba(255,255,255,0.3); }

.header-main {
  padding: 14px 0;
}
.header-main .container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 900;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo-lets { color: #fff; }
.logo-read { color: var(--brand-red); }
.logo-news { color: #fff; }
.logo-dot { color: var(--brand-accent); }
.logo-com { color: var(--brand-muted); font-size: 0.7em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-muted);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-link.active { color: var(--brand-accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

/* ===== HERO ===== */
.tp-hero {
  background: linear-gradient(135deg, #000 0%, #0d0d1a 50%, #0a0018 100%);
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}
.tp-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.tp-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(124,58,237,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.tp-hero-content { position: relative; text-align: center; }
.tp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.tp-hero-title {
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--brand-accent) 50%, var(--brand-accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.tp-hero-subtitle {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--brand-muted);
  max-width: 680px;
  margin: 0 auto 28px;
}
.tp-hero-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tp-hero-features span {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--brand-border);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
}
.tp-hero-features span i { color: var(--brand-accent); }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher-section {
  background: var(--brand-surface);
  padding: 40px 0;
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
}
.lang-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  color: #fff;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.lang-card:hover, .lang-card.active {
  border-color: var(--brand-accent);
  background: rgba(0,212,255,0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,212,255,0.15);
}
.lang-flag { font-size: 32px; }
.lang-name { font-size: 15px; font-weight: 700; color: #fff; }
.lang-region { font-size: 11px; color: var(--brand-muted); text-align: center; }

/* ===== APP SECTION ===== */
.tp-app-section {
  padding: 40px 0 60px;
}
.tp-app-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* Controls Panel */
.tp-controls-panel {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.ctrl-group { display: flex; flex-direction: column; gap: 10px; }
.ctrl-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ctrl-label i { color: var(--brand-accent); }
.ctrl-row { display: flex; align-items: center; gap: 12px; }
.ctrl-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  outline: none;
}
.ctrl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-accent);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
  transition: all var(--transition);
}
.ctrl-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.ctrl-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-accent);
  min-width: 40px;
  text-align: right;
}

/* Theme Buttons */
.theme-btns, .align-btns {
  display: flex;
  gap: 8px;
}
.theme-btn, .align-btn {
  flex: 1;
  padding: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  color: var(--brand-muted);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition);
}
.theme-btn:hover, .align-btn:hover,
.theme-btn.active, .align-btn.active {
  background: rgba(0,212,255,0.1);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

/* Toggle Switch */
.toggle-row { display: flex; align-items: center; gap: 12px; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: all var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--brand-accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-label { font-size: 13px; color: var(--brand-muted); }

/* ===== MAIN AREA ===== */
.tp-main-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Editor */
.tp-editor-area {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--brand-border);
}
.editor-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.editor-title i { color: var(--brand-accent); }
.editor-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-icon:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}
.script-textarea {
  width: 100%;
  min-height: 240px;
  padding: 20px;
  background: transparent;
  border: none;
  resize: vertical;
  color: var(--brand-text);
  font-size: 15px;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.script-textarea::placeholder { color: var(--brand-muted); }

/* ===== TELEPROMPTER DISPLAY ===== */
.tp-display {
  background: var(--tp-bg);
  border: 2px solid rgba(0,212,255,0.3);
  border-radius: var(--radius);
  min-height: 420px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), color var(--transition);
}
.tp-display-inner {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.tp-focus-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
  z-index: 5;
  opacity: 0.6;
  transform: translateY(-50%);
}
.tp-text-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 0;
}
.tp-text {
  padding: 220px 7.5%;
  font-size: 32px;
  line-height: 1.5;
  color: var(--tp-text);
  font-weight: 500;
  will-change: transform;
  transition: font-size var(--transition);
}
.tp-text.mirror { transform: scaleX(-1); }
body[data-tp-theme="dark"] .tp-text { color: #ffffff; }
body[data-tp-theme="light"] .tp-text { color: #111111; }
body[data-tp-theme="green"] .tp-text { color: #00ff41; text-shadow: 0 0 8px rgba(0,255,65,0.3); }
body[data-tp-theme="amber"] .tp-text { color: #ffb300; text-shadow: 0 0 8px rgba(255,179,0,0.3); }

.tp-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.1);
}
.tp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent2));
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== ACTION BAR ===== */
.tp-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-start, .btn-pause, .btn-stop, .btn-voice, .btn-fullscreen {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}
.btn-start {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}
.btn-start:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,255,0.4); }
.btn-pause {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.btn-pause:hover { transform: translateY(-2px); }
.btn-stop {
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #fff;
  box-shadow: 0 4px 20px rgba(230,57,70,0.3);
}
.btn-stop:hover { transform: translateY(-2px); }
.btn-voice {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--brand-border);
  color: var(--brand-muted);
}
.btn-voice:hover, .btn-voice.active {
  background: rgba(230,57,70,0.1);
  border-color: var(--brand-red);
  color: var(--brand-red);
}
.btn-voice.active { animation: pulse-red 1.5s infinite; }
.btn-fullscreen {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--brand-border);
  color: var(--brand-muted);
  padding: 13px 16px;
  margin-left: auto;
}
.btn-fullscreen:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Voice Status */
.voice-status {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(230,57,70,0.08);
  border: 1px solid rgba(230,57,70,0.3);
  border-radius: 10px;
  padding: 12px 18px;
  flex-wrap: wrap;
}
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}
.voice-wave span {
  display: block;
  width: 4px;
  background: var(--brand-red);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}
.voice-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 8px; animation-delay: 0.4s; }
#voiceStatusText { font-size: 13px; color: var(--brand-muted); flex: 1; }
.btn-voice-stop {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(230,57,70,0.2);
  border: 1px solid rgba(230,57,70,0.4);
  border-radius: 8px;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-voice-stop:hover { background: rgba(230,57,70,0.3); }

/* ===== SEO CONTENT ===== */
.seo-content-section {
  background: var(--brand-surface);
  padding: 60px 0;
  border-top: 1px solid var(--brand-border);
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.seo-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.seo-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.seo-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.seo-card h2 i { color: var(--brand-accent); }
.seo-card p { color: var(--brand-muted); font-size: 14px; line-height: 1.7; }
.seo-card ul, .seo-card ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.seo-card li { color: var(--brand-muted); font-size: 14px; line-height: 1.6; }
.seo-card li strong { color: #fff; }
.seo-lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.seo-lang-links a {
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-muted);
  transition: all var(--transition);
}
.seo-lang-links a:hover {
  background: rgba(0,212,255,0.08);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

/* ===== FOOTER ===== */
.site-footer-bar {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 28px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
}
.footer-nav a {
  font-size: 13px;
  color: var(--brand-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--brand-accent); }
.footer-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(230,57,70,0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FULLSCREEN ===== */
.tp-display:fullscreen,
.tp-display:-webkit-full-screen {
  min-height: 100vh;
  border-radius: 0;
  border: none;
}
.tp-display:fullscreen .tp-display-inner,
.tp-display:-webkit-full-screen .tp-display-inner {
  height: 100vh;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tp-app-wrapper {
    grid-template-columns: 1fr;
  }
  .tp-controls-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border-top: 1px solid var(--brand-border);
    padding: 16px 24px;
  }
  .tp-hero { padding: 40px 0 30px; }
  .lang-grid { grid-template-columns: repeat(4, 1fr); }
  .tp-controls-panel { grid-template-columns: 1fr 1fr; }
  .tp-action-bar { flex-direction: column; }
  .btn-start, .btn-pause, .btn-stop, .btn-voice { width: 100%; justify-content: center; }
  .btn-fullscreen { margin-left: 0; width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-controls-panel { grid-template-columns: 1fr; }
  .header-main .container { gap: 16px; }
  .site-logo { font-size: 16px; }
}
