/* File: zubrilka.club/audiobook-recorder/css/theme.css */

:root{
  --bg0:#070a12;
  --bg1:#0b1a22;

  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.09);

  --stroke: rgba(255,255,255,.14);
  --stroke2: rgba(255,255,255,.20);

  --text:#e9f3f6;
  --muted: rgba(233,243,246,.72);

  --brand:#00a6d6;
  --brand2:#31d2ff;

  --ok:#2bd28c;
  --warn:#f6c94c;
  --danger:#ff5b5b;
  --record:#ff7a7a;

  --shadow: 0 22px 70px rgba(0,0,0,.45);
  --shadow2: 0 12px 34px rgba(0,0,0,.35);

  --r16:16px;
  --r20:20px;
  --r24:24px;

  --max:1240px;
  --pad:18px;
}

*{ box-sizing:border-box; }

html,
body{
  height:100%;
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(49,210,255,.16), transparent 55%),
    radial-gradient(900px 600px at 90% 15%, rgba(0,166,214,.14), transparent 60%),
    radial-gradient(1000px 700px at 50% 95%, rgba(43,210,140,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
textarea,
select{
  font:inherit;
}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--pad);
}

.pageMain{
  padding:26px 0 34px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(7,10,18,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:220px;
}

.brand__logo{
  width:38px;
  height:38px;
  border-radius:12px;
  background:
    radial-gradient(16px 16px at 30% 30%, rgba(49,210,255,.85), transparent 60%),
    radial-gradient(18px 18px at 70% 70%, rgba(43,210,140,.75), transparent 60%),
    linear-gradient(135deg, rgba(0,166,214,.85), rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  position:relative;
  flex:0 0 auto;
}

.brand__logo::after{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:10px;
  border:1px dashed rgba(255,255,255,.22);
  opacity:.65;
}

.brand__name{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand__name b{
  font-size:14px;
  letter-spacing:.3px;
}

.brand__name span{
  font-size:12px;
  color:var(--muted);
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav a{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  color: rgba(233,243,246,.92);
  background:transparent;
  transition:background .2s, border-color .2s, transform .08s;
  font-size:14px;
  white-space:nowrap;
}

.nav a:hover{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.10);
}

.nav a:active{
  transform:scale(.98);
}

.nav a.active{
  background: rgba(0,166,214,.22);
  border-color: rgba(0,166,214,.35);
}

.hero{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:var(--r24);
  box-shadow:var(--shadow);
  padding:22px;
  position:relative;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto auto;
  width:320px;
  height:320px;
  border-radius:50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(49,210,255,.35), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(0,166,214,.24), transparent 60%);
  pointer-events:none;
  transform:rotate(18deg);
  opacity:.95;
}

.hero__content{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:start;
}

.hero h1{
  margin:0 0 10px;
  font-size:32px;
  line-height:1.08;
  letter-spacing:-.5px;
}

.hero p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:15px;
  max-width:72ch;
}

.heroSide{
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:14px;
}

.heroSide h2{
  margin:0 0 8px;
  font-size:15px;
}

.heroSide p{
  font-size:13px;
  line-height:1.5;
}

.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:20px;
  box-shadow:var(--shadow2);
  overflow:hidden;
}

.card__head{
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.card__head h2{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
}

.card__head p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.card__body{
  padding:18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  transition:transform .08s, background .2s, border-color .2s, opacity .2s;
  user-select:none;
}

.btn:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}

.btn:active{
  transform:scale(.98);
}

.btn--brand{
  background: rgba(0,166,214,.28);
  border-color: rgba(0,166,214,.45);
}

.btn--brand:hover{
  background: rgba(0,166,214,.36);
  border-color: rgba(0,166,214,.58);
}

.btn--ok{
  background: rgba(43,210,140,.14);
  border-color: rgba(43,210,140,.28);
  color: rgba(43,210,140,.96);
}

.btn--warn{
  background: rgba(246,201,76,.14);
  border-color: rgba(246,201,76,.28);
  color: rgba(246,201,76,.96);
}

.btn--danger{
  background: rgba(255,91,91,.14);
  border-color: rgba(255,91,91,.28);
  color: rgba(255,170,170,.96);
}

.btn--ghost{
  background:transparent;
}

.metaRow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color: rgba(233,243,246,.88);
  font-size:13px;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background: rgba(255,255,255,.28);
  border:1px solid rgba(255,255,255,.20);
  flex:0 0 auto;
}

.dot.ok{
  background: rgba(43,210,140,.85);
  border-color: rgba(43,210,140,.55);
}

.dot.warn{
  background: rgba(246,201,76,.88);
  border-color: rgba(246,201,76,.55);
}

.emptyState{
  padding:20px;
  border-radius:16px;
  background: rgba(255,255,255,.04);
  border:1px dashed rgba(255,255,255,.16);
  color:var(--muted);
  line-height:1.6;
}

.footerNote{
  margin-top:18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  background: rgba(7,10,18,.92);
  border:1px solid rgba(255,255,255,.14);
  color: rgba(233,243,246,.95);
  padding:10px 12px;
  border-radius:14px;
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  z-index:9999;
  font-size:13px;
  backdrop-filter: blur(10px);
  max-width:min(520px, 92vw);
  text-align:center;
  opacity:0;
  transition:opacity .18s ease, transform .18s ease;
  pointer-events:none;
}

.toast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(-2px);
}

@media (max-width: 980px){
  .hero__content{
    grid-template-columns:1fr;
  }
}

@media (max-width: 760px){
  .topbar__inner{
    align-items:flex-start;
  }

  .nav{
    width:100%;
    justify-content:flex-start;
  }

  .hero h1{
    font-size:28px;
  }
}

@media (prefers-reduced-motion: reduce){
  *{
    transition:none !important;
  }
}