/* =====================================================
   OKARA R — Design Tokens
   Visual language: dùng từ KaraRemoteHD app gốc
   Gradient tím→hồng→xanh + tab gold + bottom control bar
   ===================================================== */
:root {
  /* App background gradient (the main vibrant backdrop) */
  --bg-gradient: linear-gradient(155deg,
    #1d0d3e 0%,
    #3a0e54 15%,
    #6e1576 30%,
    #b62085 48%,
    #c5318c 60%,
    #a02894 72%,
    #5536aa 86%,
    #2456c5 100%
  );

  /* Solid fallback (for areas non-gradient) */
  --bg-base: #1a0a35;

  /* Card / list item surfaces (semi-transparent over gradient) */
  --card-bg: linear-gradient(135deg, rgba(50, 20, 60, 0.72), rgba(20, 10, 32, 0.78));
  --card-border: rgba(255, 255, 255, 0.06);
  --card-bg-active: linear-gradient(135deg, rgba(70, 30, 80, 0.85), rgba(30, 14, 42, 0.85));

  /* Tab — active is GOLD gradient, inactive is dark */
  --tab-active-bg: linear-gradient(180deg, #ffd83d 0%, #f0a823 50%, #d97c0a 100%);
  --tab-active-text: #3a1a00;
  --tab-inactive-bg: linear-gradient(180deg, #2a0a40 0%, #150525 100%);
  --tab-inactive-text: rgba(255, 255, 255, 0.78);
  --tab-border: rgba(255, 255, 255, 0.04);

  /* Bottom control bar */
  --bar-bg: #06030a;
  --bar-border: rgba(255, 255, 255, 0.04);

  /* Circular control buttons */
  --btn-ring: #b88f3e;            /* default gold ring */
  --btn-icon: #ffd83d;             /* gold icon */
  --btn-active-bg: linear-gradient(135deg, #ffd83d, #d97c0a);
  --btn-green: #4caf50;            /* wifi connected */
  --btn-red: #e63946;              /* disconnect / error */

  /* Search bar */
  --search-bg: #ffffff;
  --search-text: #2a0a3a;
  --search-icon: #f0a823;           /* gold magnifier */

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-tertiary: rgba(255, 255, 255, 0.55);
  --text-singer: rgba(255, 255, 255, 0.82);
  --text-disabled: rgba(255, 255, 255, 0.32);

  /* Status / brand accents */
  --okara-red: #e63946;
  --okara-gold: #ffd83d;
  --okara-orange: #f0a823;
  --okara-green: #4caf50;
  --okara-cyan: #56ccf2;
  --okara-magenta: #d836a0;

  /* Status (semantic) */
  --status-ok: #4caf50;
  --status-warn: #ffd83d;
  --status-error: #e63946;
  --status-info: #56ccf2;
  --status-recording: #e63946;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: -apple-system, "SF Pro Display", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-tab: 14px 14px 0 0;
  --radius-pill: 9999px;

  /* Motion */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-top-bar: 20;
  --z-bottom-bar: 30;
  --z-modal: 50;
}

/* Anchors styled như buttons (mockup nav) */
a.tab, a.menu-btn, a.search-icon-btn, a.tv-tab, a.song-item, a.song-item-action, a.nav-item, a.mockup-card {
  text-decoration: none;
  color: inherit;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

ul, ol { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* Mockup viewport — phone-sized với gradient backdrop */
.mockup-frame {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 96px;  /* room for fixed bottom bar */
}

/* Mockup viewport — TV landscape 16:9 (rAgent main screens) */
.mockup-frame-tv {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16/9;
  margin: 0 auto;
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.tv {
  background: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
