/* Ember Studio layer for the dashboard (hand-tuned; loads after
   ember-dashboard-colors.css). Visual only — no markup or script changes.
   Brand colours, light, depth and motion; every feature hook is untouched. */

:root{
  --grad1:linear-gradient(135deg,#6fb6ff 0%,#4a95f5 52%,#2f7beb 100%);
  --purple:#99caff;
}
html[data-theme="light"]{
  --grad1:linear-gradient(135deg,#6fb6ff 0%,#4a95f5 52%,#2f7beb 100%);
  --purple:#4a95f5;
}

/* ── Atmosphere: warm film-black with two slow-drifting ember glows ── */
html:not([data-theme="light"]) body{background:#050607}
body::before{
  background:
    radial-gradient(ellipse 55% 60% at 0% 92%, rgba(74,149,245,.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 45% at 100% 8%, rgba(47,123,235,.07) 0%, transparent 55%);
  animation:ember-drift 22s ease-in-out infinite alternate;
}
html[data-theme="light"] body::before{
  background:
    radial-gradient(ellipse 55% 60% at 0% 92%, rgba(140,196,255,.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 45% at 100% 8%, rgba(74,149,245,.08) 0%, transparent 55%);
}
@keyframes ember-drift{
  from{transform:translate3d(0,0,0) scale(1)}
  to{transform:translate3d(2.5%,-3%,0) scale(1.08)}
}

/* ── Logo: recolour the mark's green to ember (presentation attributes) ── */
.logo svg stop[stop-color="#0069e0"]{stop-color:#4a95f5}
.logo svg stop[stop-color="#489dff"]{stop-color:#99caff}
.logo svg stop[stop-color="#1d65b8"]{stop-color:#2f7beb}
.logo svg stop[stop-color="#4092f0"]{stop-color:#6fb6ff}
.logo svg [stroke="#0069e0"]{stroke:#4a95f5}
.logo svg [stroke="#5ab0ff"]{stroke:#8cc4ff}
.logo svg [fill="#5ab0ff"]{fill:#8cc4ff}
.logo svg [fill="#50a2ff"]{fill:#b5d9ff}
.logo svg [fill="#05070c"]{fill:#060a12}
.logo-grad{background:linear-gradient(135deg,#99caff 0%,#6fb6ff 45%,#4a95f5 100%);-webkit-background-clip:text;background-clip:text}

/* ── Sidebar: active item carries a glowing ember rail ── */
.sidebar-link{position:relative}
.sidebar-link.active::before{
  content:''; position:absolute; left:-12px; top:8px; bottom:8px; width:3px; border-radius:0 3px 3px 0;
  background:var(--grad1); box-shadow:0 0 10px rgba(74,149,245,.45);
}
.sidebar-link .sidebar-icon{transition:transform .3s var(--ember-ease)}
.sidebar-link:hover .sidebar-icon{transform:translateX(2px) scale(1.06)}
.sidebar-plan .sp-upgrade,.smc-upgrade{background:var(--grad1);color:#fff}

/* ── Composer: the filament on its top edge travels like light on film ── */
.composer::before{
  background:linear-gradient(90deg,transparent,rgba(140,196,255,.55) 30%,rgba(207,230,255,.85) 50%,rgba(140,196,255,.55) 70%,transparent);
  background-size:220% 100%;
  animation:ember-filament 7s ease-in-out infinite;
}
@keyframes ember-filament{0%,100%{background-position:100% 0} 50%{background-position:0% 0}}
.gen-card-title{
  font-family:'Plus Jakarta Sans','Inter',sans-serif; font-weight:700; letter-spacing:-.02em;
  background:linear-gradient(180deg,#fff 35%,#dbecff 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
html[data-theme="light"] .gen-card-title{background:linear-gradient(180deg,#08101a 35%,#124a8a 100%);-webkit-background-clip:text;background-clip:text}

/* ── Generate button: filled ember with a light sweep ── */
.btn-send{
  position:relative; overflow:hidden; isolation:isolate;
  background:var(--grad1); border-color:transparent; color:#fff;
  box-shadow:0 6px 22px -10px rgba(74,149,245,.8);
  transition:transform .2s var(--ember-ease), box-shadow .3s, filter .2s;
}
.btn-send::after{
  content:''; position:absolute; top:0; bottom:0; left:0; width:40%; z-index:-1; pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);
  transform:translateX(-120%) skewX(-18deg);
}
.btn-send:hover{background:var(--grad1); border-color:transparent; box-shadow:0 10px 30px -8px rgba(74,149,245,.85); filter:brightness(1.06)}
.btn-send:hover::after{animation:ember-sweep .9s var(--ember-ease)}
html[data-theme="light"] .btn-send{background:var(--grad1) !important; color:#fff !important; border-color:transparent !important}

/* ── Status + progress: the bar glows and shimmers while a video renders ── */
.progress-fill{
  background:linear-gradient(90deg,#2f7beb,#6fb6ff,#99caff,#6fb6ff,#2f7beb);
  background-size:200% 100%; animation:ember-filament 2.4s linear infinite;
  box-shadow:0 0 12px rgba(74,149,245,.6);
}
.status-card.show{border-color:rgba(140,196,255,.25)}

/* ── My Videos: cards lift toward you and catch the light ── */
.video-card{transition:transform .35s var(--ember-ease), border-color .3s, box-shadow .35s}
.video-card:hover{transform:translateY(-4px); border-color:rgba(140,196,255,.4); box-shadow:0 14px 34px -14px rgba(74,149,245,.55)}
.play-btn{background:var(--grad1); color:#fff; box-shadow:0 0 18px rgba(74,149,245,.35)}

/* ── Green and purple written inline by the dashboard's own scripts ── */
[style*="127,255,58"]{background-color:rgba(140,196,255,.10) !important; border-color:rgba(140,196,255,.35) !important}
[style*="#5ab0ff"]{color:#8cc4ff !important}
html[data-theme="light"] [style*="#5ab0ff"]{color:#4a95f5 !important}
/* Purple credit counts and badges written inline by the scripts */
[style*="#7c5cfc"],[style*="#9d7cff"]{color:#8cc4ff !important; border-color:rgba(140,196,255,.55) !important}
[style*="background:#7c5cfc"],[style*="background: #7c5cfc"]{background:var(--grad1) !important; color:#fff !important}
html[data-theme="light"] [style*="#7c5cfc"],html[data-theme="light"] [style*="#9d7cff"]{color:#4a95f5 !important}
html[data-theme="light"] [style*="background:#7c5cfc"]{color:#fff !important}

/* Light theme: the composer bar gets a warm paper tint instead of flat grey */
html[data-theme="light"] .composer-bar{
  background:linear-gradient(180deg,#eef4fb 0%,#eef2f8 100%) !important;
  border-top-color:rgba(74,149,245,.16) !important;
}

/* Phones: the top bar pushed the theme switch, account menu and the menu
   button off-screen. Credits + Upgrade already sit in the quota line right
   below, so the bar drops its duplicate pills and keeps every control. */
@media (max-width:480px){
  body > nav{padding:0 12px}
  body > nav .nav-right{gap:8px}
  body > nav .logo{font-size:17px; gap:6px}
  body > nav .logo svg{width:28px; height:28px}
  #navPlanArea{display:none !important}
}

@media (prefers-reduced-motion:reduce){
  body::before,.composer::before,.progress-fill{animation:none}
  .video-card:hover,.sidebar-link:hover .sidebar-icon{transform:none}
  .btn-send:hover::after{animation:none}
}
