/* ==========================================================================
   Smart Remote TV Universal - Components & Interactive Simulator CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Interactive Virtual Remote Simulator Container
   -------------------------------------------------------------------------- */
.simulator-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.simulator-glow {
  position: absolute;
  width: 380px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, rgba(121, 40, 202, 0.2) 50%, transparent 80%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
  animation: glowFloat 6s ease-in-out infinite alternate;
}

@keyframes glowFloat {
  0% { transform: scale(0.95) translateY(-10px); }
  100% { transform: scale(1.08) translateY(15px); }
}

/* Simulated TV Frame Behind / Beside */
.tv-simulator-wrapper {
  position: absolute;
  top: -80px;
  right: -140px;
  width: 440px;
  background: #020307;
  border-radius: 18px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.15);
  z-index: 1;
  transition: var(--transition-normal);
}

.tv-simulator-wrapper:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.35);
}

.tv-screen {
  width: 100%;
  height: 250px;
  background: #090d20;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  transition: all 0.4s ease;
}

.tv-screen.powered-off {
  background: #010206 !important;
}

.tv-screen.powered-off * {
  opacity: 0 !important;
}

.tv-screen-standby-light {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.tv-screen.powered-on .tv-screen-standby-light {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.tv-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tv-brand-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.tv-main-content {
  text-align: center;
  margin: auto 0;
  position: relative;
  z-index: 2;
}

.tv-channel-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.tv-channel-desc {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.tv-osd-volume {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.tv-osd-volume.show {
  opacity: 1;
  transform: translateY(0);
}

.tv-osd-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.tv-osd-bar-fill {
  width: 45%;
  height: 100%;
  background: var(--gradient-brand);
  transition: width 0.15s ease;
}

.tv-osd-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  min-width: 28px;
}

/* --------------------------------------------------------------------------
   iPhone Mockup Frame
   -------------------------------------------------------------------------- */
.phone-mockup {
  position: relative;
  z-index: 2;
  width: 320px;
  background: #080a18;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.15),
              inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  transition: var(--transition-normal);
}

.phone-mockup:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.9),
              0 0 30px rgba(0, 242, 254, 0.2),
              0 0 0 1px rgba(0, 242, 254, 0.4);
}

.phone-screen {
  background: #070919;
  border-radius: 36px;
  padding: 18px 16px 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Dynamic Island */
.dynamic-island {
  width: 100px;
  height: 26px;
  background: #000000;
  border-radius: var(--radius-full);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 0.65rem;
  color: var(--accent-emerald);
}

.island-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0a1128;
  border: 1px solid #1e293b;
}

/* Remote Screen Header */
.remote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tv-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tv-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.tv-connected-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

.tv-signal-icon {
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

/* Remote Control Keypad */
.remote-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.remote-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.remote-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.remote-btn:active, .remote-btn.pressed {
  transform: scale(0.92);
  background: var(--accent-cyan);
  color: #000000;
  box-shadow: 0 0 16px var(--accent-cyan);
}

.power-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.power-btn:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.power-btn.active-off {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
}

/* Nav Tab Pill (D-Pad vs Touchpad) */
.mode-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mode-tab {
  flex: 1;
  padding: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-align: center;
  transition: var(--transition-fast);
}

.mode-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Tactile D-Pad Controller */
.dpad-container {
  width: 170px;
  height: 170px;
  margin: 0 auto 20px;
  background: linear-gradient(145deg, #11152c, #090c1e);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.dpad-arrow {
  position: absolute;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.dpad-arrow:hover {
  color: var(--accent-cyan);
  transform: scale(1.15);
}

.dpad-arrow.up { top: 6px; }
.dpad-arrow.down { bottom: 6px; }
.dpad-arrow.left { left: 6px; }
.dpad-arrow.right { right: 6px; }

.dpad-center {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(121, 40, 202, 0.2));
  border: 1px solid rgba(0, 242, 254, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
}

.dpad-center:active {
  transform: scale(0.92);
  background: var(--gradient-brand);
}

/* Touchpad Panel (Alternative Mode) */
.touchpad-surface {
  display: none;
  width: 100%;
  height: 170px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: grab;
  position: relative;
  overflow: hidden;
}

.touchpad-surface.active {
  display: flex;
}

.touch-trail {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.5);
  pointer-events: none;
  filter: blur(4px);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Rockers & Middle Controls */
.controls-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.rocker-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rocker-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.rocker-btn {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* App Launcher Quick Buttons */
.app-launcher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.app-btn {
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.app-btn.youtube { background: #b91c1c; color: #ffffff; }
.app-btn.netflix { background: #000000; color: #e50914; border-color: #e50914; }
.app-btn.disney { background: #0c1a40; color: #3b82f6; border-color: #3b82f6; }
.app-btn.prime { background: #00a8e1; color: #000000; }

.app-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* --------------------------------------------------------------------------
   Comparison Table / Brand Compatibility Matrix
   -------------------------------------------------------------------------- */
.compat-matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.compat-matrix-table th,
.compat-matrix-table td {
  padding: 18px 24px;
  text-align: left;
}

.compat-matrix-table th {
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-white);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.compat-matrix-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.compat-matrix-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.compat-matrix-table tr:last-child {
  border-bottom: none;
}

.compat-check {
  color: var(--accent-emerald);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   Support Page Components
   -------------------------------------------------------------------------- */
.support-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.search-box-wrapper {
  max-width: 580px;
  margin: 32px auto 0;
  position: relative;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 16px 24px 16px 52px;
  color: #ffffff;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.guide-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: var(--shadow-glow);
}

.guide-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.guide-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.guide-snippet {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.guide-link {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Contact Form */
.support-form-card {
  max-width: 680px;
  margin: 60px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

.form-select option {
  background: #0c1024;
  color: #ffffff;
}

/* Toast Alert */
.toast-alert {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(8, 11, 28, 0.95);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 242, 254, 0.3);
  backdrop-filter: blur(20px);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  color: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --------------------------------------------------------------------------
   Privacy Policy Styling
   -------------------------------------------------------------------------- */
.policy-container {
  max-width: 860px;
  margin: 130px auto 80px;
  padding: 0 24px;
}

.policy-header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 32px;
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.policy-section-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.policy-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: #ffffff;
}

.policy-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.policy-card ul {
  padding-left: 24px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.policy-callout {
  background: rgba(0, 242, 254, 0.05);
  border-left: 3px solid var(--accent-cyan);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  color: var(--text-primary);
  font-size: 0.92rem;
}

/* Media Queries for Simulator */
@media (max-width: 1080px) {
  .tv-simulator-wrapper {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    margin-bottom: 24px;
  }
  .simulator-container {
    flex-direction: column;
  }
  .guide-cards-grid {
    grid-template-columns: 1fr;
  }
}
