/* ==========================================================================
 * Panda Yandex Cloner theme
 * Yandex Disk — warm white with signature yellow buttons and black text. Light by default.
 * Loaded after cloner.css; it only overrides design tokens and a few accents.
 * ========================================================================== */

/* Dark mode */
:root {
  --red: #ffcc00;
  --red-hover: #ffd633;
  --red-deep: #e0ad00;
  --red-soft: rgba(255, 204, 0, 0.16);
  --red-ring: rgba(255, 204, 0, 0.3);
  --on-red: #1a1a1a;
  --bg: #121214;
  --canvas: #17171a;
  --surface: #1e1e22;
  --surface-2: #26262b;
  --rail: #151518;
  --line: #2e2e34;
  --line-strong: #3b3b42;
  --text: #f2f2f2;
  --text-2: #c9c9cd;
  --muted: #8d8d94;
  --radius: 14px;
  --boot-bg: #17171a;
  --boot-text: #f2f2f2;
  --boot-text-2: #c9c9cd;
  --boot-text-3: #8d8d94;
  --boot-track: #121214;
  --boot-bar: #ffcc00;
}

/* Light mode */
html.light {
  --red: #ffcc00;
  --red-hover: #f5c000;
  --red-deep: #e0ad00;
  --red-soft: #fff6cc;
  --red-ring: rgba(255, 204, 0, 0.22);
  --on-red: #1a1a1a;
  --bg: #f5f4f2;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f1ee;
  --rail: #ffffff;
  --line: #e7e5e0;
  --line-strong: #d2cfc8;
  --text: #1a1a1a;
  --text-2: #4a4844;
  --muted: #8a8781;
  --green: #12a150;
  --green-soft: #e6f6ed;
  --amber: #b45309;
  --amber-soft: #fff6e8;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.05), 0 6px 20px rgba(26, 26, 26, 0.06);
  --boot-bg: #ffffff;
  --boot-text: #1a1a1a;
  --boot-text-2: #4a4844;
  --boot-text-3: #8a8781;
  --boot-track: #f2f1ee;
  --boot-bar: #ffcc00;
}

/* Loader spinners in the brand colour (light + dark) */
.spinner { background: rgba(255, 204, 0, 0.12); }
.spinner::before { border-color: #ffcc00; border-right-color: transparent; }
.spinner span { background: #1e1e22; box-shadow: 0 0 0 4px #17171a; }
html.light .spinner { background: #fff6cc; }
html.light .spinner::before { border-color: #ffcc00; border-right-color: transparent; }
html.light .spinner span { background: #fff6cc; box-shadow: 0 0 0 4px #ffffff; }
.spinner.xs, .spinner.xs span, html.light .spinner.xs, html.light .spinner.xs span { background: transparent; box-shadow: none; }
.spinner.xs::before, html.light .spinner.xs::before { border-color: var(--red); border-right-color: transparent; }

/* Phase loader strip */
.phase-loader { background: linear-gradient(90deg, rgba(255, 204, 0, 0.1), rgba(255, 204, 0, 0.02)); }
html.light .phase-loader { background: linear-gradient(90deg, #fff6cc, #ffffff); }

/* Brand, rails and cards */
.brand-name b { color: var(--red); }
html.light .brand-name b { color: #b38600; }
html.light .topbar { background: rgba(255, 255, 255, 0.96); }
html.light .side { background: #ffffff; }
.side-item.active { background: var(--red-soft); color: var(--text); }
.side-item.active i { color: var(--text); }
html.light a, html.light .link-btn, html.light .red { color: #b38600; }
:root:not(.light) a, :root:not(.light) .red { color: #ffd633; }
.tw-tab.active i { opacity: .7; }

/* Buttons */
.btn-red, .new-btn { border-radius: 14px; }
.new-btn { box-shadow: 0 8px 20px var(--red-ring); }
.hero-orbit::before { border-color: var(--red); border-right-color: transparent; border-bottom-color: transparent; }
.hero h1 .red { background: linear-gradient(90deg, #e0ad00, #ffcc00, #ffe066); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Progress bar */
.fill { background: linear-gradient(90deg, #e0ad00, #ffcc00, #ffe066); }
.mini-bar span, .quota-track span { background: var(--red); }

/* Console stays dark for readability */
html.light .console { background: #17171a; }

/* Menu items are not text links: keep them neutral like the rest of the sidebar */
html.light .side-item, html.light .bn-item, html.light .pill-btn:not(.bot), html.light .btn:not(.btn-red), html.light .account-menu a { color: var(--text-2); }
html.light .side-item.active, html.light .bn-item.active { color: var(--text); }
html.light .btn-red, html.light .new-btn { color: var(--on-red); }
html.light .side-item.tour-item, html.light .side-item.tour-item i { color: #b38600 !important; }
:root:not(.light) .side-item, :root:not(.light) .bn-item, :root:not(.light) .pill-btn:not(.bot), :root:not(.light) .btn:not(.btn-red) { color: var(--text-2); }
:root:not(.light) .btn-red, :root:not(.light) .new-btn { color: var(--on-red); }
