/*
Theme Name: Krabel Submit
Theme URI: https://krabelmusicrecords.com
Author: Krabel Music Records
Description: Internal release submission portal (custom, no third-party plugins).
Version: 1.0
*/

/* =========================
   Tokens
   ========================= */
:root{
  --bg:#0b0c0f;
  --bg2:#10121a;
  --panel: rgba(255,255,255,.03);
  --line: rgba(255,255,255,.12);

  --text:#e9e9ee;
  --muted:#b6b8c4;

  --radius: 18px;
  --radiusSm: 14px;
  --shadow: 0 20px 60px rgba(0,0,0,.35);

  --focus: 0 0 0 4px rgba(255,255,255,.12);

  --successBg: rgba(22,163,74,.12);
  --successLine: rgba(22,163,74,.35);

  --dangerBg: rgba(220,38,38,.10);
  --dangerLine: rgba(220,38,38,.35);

  /* Stepper colors */
  --stepDone: rgba(34,197,94,.95);
  --stepDoneBg: rgba(34,197,94,.12);
  --stepCurrent: rgba(239,68,68,.95);
  --stepCurrentBg: rgba(239,68,68,.12);

  /* Form surfaces (dark) */
  --cardBg: #10121a;
  --cardLine: rgba(255,255,255,.10);
  --fieldBg: #0b0c0f;
  --fieldLine: rgba(255,255,255,.14);
}

*{ box-sizing:border-box; }
img{ max-width:100%; height:auto; }

html, body{
  width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(900px 600px at 85% 20%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* =========================
   Layout
   ========================= */
.mk-page{ padding: 46px 0; }
.mk-shell{
  width: min(980px, 100% - 32px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 18px;
}

/* Prevent weird overflow on mobile */
.mk-page, .mk-shell, .mk-form, .mk-card{ max-width:100%; }
.mk-grid, .mk-field, .mk-card, .mk-card__head{ min-width:0; }

@media (max-width: 520px){
  .mk-page{ padding: 40px 0; }
  .mk-shell{
    width: 100%;
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* =========================
   Header / Brand
   ========================= */
.mk-head{ padding: 10px 0 12px; }

.mk-brand{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.mk-title{ margin: 0 0 8px; letter-spacing: -0.03em; line-height: 1.1; }

.mk-title--brand{
  font-size: 22px;
  letter-spacing: .22em;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
}

.mk-brand__by{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.60);
  margin: 0;
}

.mk-title--system{
  font-size: 20px;
  font-weight: 500;
  margin: 18px 0 8px;
  opacity: .95;
}

.mk-subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 780px){
  .mk-title--brand{ font-size: 18px; }
  .mk-title--system{ font-size: 18px; }
}

/* subtle intro animation */
.mk-title--brand,
.mk-brand__by{
  opacity: 0;
  transform: translateY(-4px);
  animation: mkBrandIn .4s ease-out forwards;
}
.mk-brand__by{ animation-delay:.08s; }

@keyframes mkBrandIn{
  to{ opacity: 1; transform: translateY(0); }
}

/* =========================
   Alerts
   ========================= */
.mk-alert{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 14px 0;
}

.mk-alert h2{
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.mk-alert ul{
  margin: 0;
  padding-left: 18px;
}

.mk-alert--success{
  border-color: var(--successLine);
  background: var(--successBg);
}
.mk-alert--error{
  border-color: var(--dangerLine);
  background: var(--dangerBg);
}
.mk-alert--debug{
  border-color: rgba(59,130,246,.35);
  background: rgba(59,130,246,.10);
}

.mk-summary{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 0;
}
@media (max-width: 700px){
  .mk-summary{ grid-template-columns:1fr; }
}

.mk-muted{ color: var(--muted); }

/* =========================
   Stepper
   ========================= */
.mk-stepper{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 0 18px;
  flex-wrap: wrap;
}

.mk-step{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 13px;
}

.mk-step__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.20);
}

.mk-stepper__line{
  height: 1px;
  width: 24px;
  background: rgba(255,255,255,.14);
}

@media (max-width: 520px){
  .mk-stepper__line{ display:none; }
  .mk-stepper{ gap: 8px; }
}

/* CURRENT = RED */
.mk-step.is-active{
  border-color: rgba(239,68,68,.55);
  background: var(--stepCurrentBg);
}
.mk-step.is-active .mk-step__dot{
  background: var(--stepCurrent);
  border-color: rgba(239,68,68,.65);
}
.mk-step.is-active .mk-step__label{ font-weight: 600; }

/* DONE = GREEN */
.mk-step.is-done{
  border-color: rgba(34,197,94,.50);
  background: var(--stepDoneBg);
}
.mk-step.is-done .mk-step__dot{
  background: var(--stepDone);
  border-color: rgba(34,197,94,.65);
}
.mk-step.is-done + .mk-stepper__line{
  background: rgba(34,197,94,.55);
}

/* =========================
   Cards (dark, consistent)
   ========================= */
.mk-card{
  background: var(--cardBg);
  color: var(--text);
  border-radius: var(--radius);
  border: 1px solid var(--cardLine);
  padding: 16px;
  margin-top: 14px;
}

.mk-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.mk-card__head h3{
  margin:0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.mk-card__head .mk-muted{
  color: rgba(255,255,255,.62);
  margin: 6px 0 0;
  font-size: 12px;
}

/* =========================
   Form controls
   ========================= */
.mk-form{ margin-top: 6px; }

.mk-field{
  display:block;
  margin-top: 12px;
  min-width: 0;
}

.mk-field label{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 12px;
  color: rgba(255,255,255,.86);
}

.mk-req, .mk-opt{
  font-size: 11px;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}

.mk-field input,
.mk-field select,
.mk-field textarea{
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--fieldLine);
  background: var(--fieldBg);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline:none;
  color: var(--text);
  box-sizing: border-box;
  min-height: 44px;
}

.mk-field input:focus,
.mk-field select:focus,
.mk-field textarea:focus{
  box-shadow: var(--focus);
  border-color: rgba(255,255,255,.22);
}

.mk-field select{
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}

/* date input iOS */
.mk-field input[type="date"]{
  -webkit-appearance: none;
  appearance: none;
}
.mk-field input[type="date"]:invalid{
  color: rgba(255,255,255,.55);
}
.mk-field input[type="date"]::-webkit-date-and-time-value{ text-align:left; }
.mk-field input[type="date"]::-webkit-calendar-picker-indicator{ opacity:.7; cursor:pointer; }

/* =========================
   Grids
   ========================= */
.mk-grid{ display:grid; gap: 12px; align-items: start; }
.mk-grid--2{ grid-template-columns: 1fr 1fr; }
@media (max-width: 780px){
  .mk-grid--2{ grid-template-columns: 1fr; }
}

/* =========================
   File input
   ========================= */
.mk-file{
  display:flex;
  align-items:center;
  gap: 12px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.03);
  overflow:hidden;
  flex-wrap: wrap;
}

.mk-file__input{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
}

.mk-file__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 14px;
  cursor:pointer;
  white-space: nowrap;
}

.mk-file__btn:hover{ filter: brightness(.98); }

.mk-file__name{
  font-size: 13px;
  color: rgba(255,255,255,.62);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* =========================
   Tracks blocks
   ========================= */
.mk-track{
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}

.mk-track__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mk-track__head strong{
  font-size: 13px;
  letter-spacing: -0.01em;
}

/* =========================
   Buttons / Actions
   ========================= */
.mk-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  align-items:center;
  justify-content:flex-start;
}

.mk-actions--end{
  justify-content:flex-end;
}

.mk-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor:pointer;
  text-decoration:none;
}

.mk-btn:hover{ filter: brightness(.98); }

.mk-btn--ghost{ background: transparent; }

.mk-btn--tiny{
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 12px;
}

.mk-btn--danger{
  border-color: rgba(220,38,38,.28);
  background: rgba(220,38,38,.10);
  color: #fecaca;
}

.mk-btn[disabled]{ opacity: .55; cursor:not-allowed; }

/* =========================
   Legal box
   ========================= */
.mk-legal{
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}
.mk-legal h4{ margin:0 0 8px; font-size: 14px; }
.mk-legal p{ margin: 0 0 10px; color: rgba(255,255,255,.75); }
.mk-legal ul{ margin: 0; padding-left: 18px; color: rgba(255,255,255,.80); }
.mk-legal li{ margin: 6px 0; }
