/* =========================================================
   Habesha AI Media App — PRO STUDIO UI (Light + Dark Mix)
   File: assets/front.css
   ========================================================= */

:root{
  /* Base */
  --bg1:#0b1220;
  --bg2:#0f1b2d;

  /* Cards / surfaces (not pure black) */
  --panel: rgba(255,255,255,.10);
  --card: rgba(255,255,255,.12);
  --stroke: rgba(255,255,255,.18);

  /* Text */
  --txt:#f3f6ff;
  --mut: rgba(243,246,255,.72);

  /* Accent (modern purple/blue + optional emerald) */
  --a1:#6f7cff;
  --a2:#7d4bff;
  --a3:#2bd4a8;

  /* Effects */
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --shadow2: 0 12px 30px rgba(0,0,0,.22);
  --r:18px;

  /* Input */
  --input: rgba(255,255,255,.10);
  --inputFocus: rgba(111,124,255,.30);
}

/* Page wrapper */
.hama-shell{
  max-width: 980px;
  margin: 18px auto;
  padding: 18px;
  border-radius: 24px;
  color: var(--txt);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;

  /* Pro background: rich color, not only black */
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(111,124,255,.35), transparent 55%),
    radial-gradient(900px 520px at 90% 10%, rgba(43,212,168,.22), transparent 58%),
    radial-gradient(900px 520px at 60% 100%, rgba(125,75,255,.22), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}

/* Top Bar */
.hama-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 14px;
}

.hama-top-left{
  display:flex;
  gap:12px;
  align-items:center;
}

.hama-logo{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-weight: 900;
  letter-spacing:.3px;
  color:#fff;
  background:
    radial-gradient(22px 22px at 30% 25%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 14px 35px rgba(125,75,255,.25);
}

.hama-title{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
}
.hama-subtitle{
  font-size: 13px;
  color: var(--mut);
  margin-top: 2px;
}

/* Test Button */
.hama-iconbtn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  color: var(--txt);
  padding: 10px 12px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  box-shadow: var(--shadow2);
}

.hama-dot{
  width:10px;
  height:10px;
  border-radius: 999px;
  background: var(--a3);
  box-shadow: 0 0 0 6px rgba(43,212,168,.18);
}

/* Tabs */
.hama-tabs{
  display:flex;
  gap:10px;
  overflow:auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.hama-tab{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(243,246,255,.75);
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.hama-tab:active{ transform: scale(.98); }

.hama-tab.is-active{
  background: linear-gradient(135deg, rgba(111,124,255,.95), rgba(125,75,255,.95));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 44px rgba(125,75,255,.28);
}

/* Status Bar */
.hama-status{
  margin: 10px 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(243,246,255,.85);
}
.hama-status[data-type="busy"]{
  border-color: rgba(255,220,140,.35);
  background: rgba(255,220,140,.12);
}
.hama-status[data-type="err"]{
  border-color: rgba(255,110,140,.45);
  background: rgba(255,110,140,.12);
  color: #ffd6df;
}

/* Panels */
.hama-panel{ display:none; }
.hama-panel.is-active{ display:block; }

/* Card */
.hama-card{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
}

.hama-card-title{
  font-weight: 950;
  font-size: 16px;
  margin-bottom: 8px;
}

.hama-help{
  color: rgba(243,246,255,.72);
  font-size: 13px;
  margin: 6px 0 12px;
}

/* Grid */
.hama-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hama-field label{
  display:block;
  font-size: 12px;
  color: rgba(243,246,255,.78);
  margin-bottom: 6px;
  font-weight: 900;
}

/* Inputs */
.hama-field input,
.hama-field select,
textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: var(--input);
  color: var(--txt);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.hama-field input:focus,
.hama-field select:focus,
textarea:focus{
  border-color: rgba(111,124,255,.55);
  box-shadow: 0 0 0 4px var(--inputFocus);
  background: rgba(255,255,255,.13);
}

textarea{ resize: vertical; }

/* Buttons */
.hama-row{
  display:flex;
  gap:10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.hama-btn{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: var(--txt);
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 950;
  transition: transform .12s ease, filter .12s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.hama-btn:active{ transform: scale(.98); }

.hama-btn.hama-primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 18px 40px rgba(125,75,255,.25);
}

.hama-btn:disabled{
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.2);
}

/* Ideas list */
.hama-ideas-list{
  display:grid;
  gap: 10px;
  margin-top: 12px;
}

.hama-idea{
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(500px 200px at 30% 0%, rgba(111,124,255,.16), transparent 60%),
    rgba(255,255,255,.07);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

.hama-idea-title{
  font-weight: 950;
  margin-bottom: 6px;
}
.hama-idea-hook{
  color: rgba(243,246,255,.75);
  font-size: 13px;
  margin-bottom: 10px;
}

/* Scenes */
.hama-scenes{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}

.hama-scene{
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  padding: 12px;
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
}

.hama-scene-top{
  display:flex;
  justify-content:space-between;
  color: rgba(243,246,255,.75);
}
.hama-scene-txt{
  margin-top: 6px;
  font-weight: 950;
}
.hama-scene-prompt{
  margin-top: 6px;
  color: rgba(243,246,255,.70);
  font-size: 13px;
}

/* Divider */
.hama-divider{
  height: 1px;
  background: rgba(255,255,255,.16);
  margin: 14px 0;
}

/* Images */
.hama-imglist{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.hama-thumb{
  width:100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  aspect-ratio: 9/16;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

/* File input */
.hama-file{
  width: 100%;
  padding: 10px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.28);
  background: rgba(255,255,255,.07);
  color: rgba(243,246,255,.80);
}

/* Video */
.hama-result video{
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  margin-top: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

/* Mobile */
@media (max-width:760px){
  .hama-shell{ padding: 14px; border-radius: 20px; }
  .hama-grid{ grid-template-columns: 1fr; }
  .hama-imglist{ grid-template-columns: repeat(2, 1fr); }
}