/* ==================================================================
   BurnUP — Design System (shared base)
   Apple Style + Gym Luxury · Dark theme · Accent portocaliu
   ================================================================== */

:root {
    /* Culori */
    --black:      #0b0b0d;
    --bg:         #0e0f12;
    --surface:    #16181d;
    --surface-2:  #1d2027;
    --surface-3:  #24272f;
    --line:       #2b2f38;
    --line-soft:  #23262e;

    --white:      #ffffff;
    --text:       #f4f5f7;
    --text-soft:  #b9bec9;
    --text-mute:  #7c828f;

    --orange:     #ff6a00;
    --orange-2:   #ff8a33;
    --orange-3:   #ff5a00;
    --orange-glow: rgba(255,106,0,0.35);

    --green:      #35c47a;
    --red:        #ff4d4f;
    --amber:      #ffb020;

    /* Forme */
    --radius:     16px;
    --radius-sm:  11px;
    --radius-lg:  24px;

    /* Umbre */
    --shadow:     0 10px 40px rgba(0,0,0,0.45);
    --shadow-sm:  0 4px 18px rgba(0,0,0,0.35);
    --ring:       0 0 0 3px rgba(255,106,0,0.28);

    /* Font */
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
            Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

    --maxw: 900px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background:
        radial-gradient(1200px 700px at 15% -10%, rgba(255,106,0,0.10), transparent 55%),
        radial-gradient(900px 600px at 100% 0%, rgba(255,106,0,0.06), transparent 50%),
        var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--orange-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

::selection { background: var(--orange); color: #fff; }

/* Scrollbar discret */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #33373f; }

/* -------------------------------------------------- Tipografie */
h1,h2,h3,h4 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }

.text-mute { color: var(--text-mute); }
.text-soft { color: var(--text-soft); }
.accent { color: var(--orange-2); }

/* -------------------------------------------------- Brand */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.brand__name b { color: var(--orange-2); }
.brand__sub { font-size: .72rem; color: var(--text-mute); font-weight: 500; letter-spacing: .02em; }

/* -------------------------------------------------- Butoane */
.btn {
    -webkit-appearance: none; appearance: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: inherit; font-size: .96rem; font-weight: 600;
    padding: 13px 22px; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, opacity .2s;
    color: #fff; background: var(--surface-2); border-color: var(--line);
    user-select: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn--primary {
    background: linear-gradient(135deg, var(--orange-2), var(--orange-3));
    border-color: transparent;
    box-shadow: 0 8px 26px var(--orange-glow);
}
.btn--primary:hover { box-shadow: 0 12px 34px var(--orange-glow); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--text-soft); }
.btn--ghost:hover { color: #fff; border-color: var(--surface-3); background: var(--surface); }

.btn--sm { padding: 8px 14px; font-size: .85rem; border-radius: 9px; }
.btn--block { width: 100%; }
.btn__ico { width: 18px; height: 18px; }

/* -------------------------------------------------- Card */
.card {
    background: linear-gradient(180deg, var(--surface), var(--surface));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card--pad { padding: clamp(18px, 4vw, 32px); }

/* -------------------------------------------------- Formulare */
.field { margin-bottom: 18px; }
.field__label { display: block; font-size: .9rem; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; }
.field__label .req { color: var(--orange-2); margin-left: 3px; }
.field__help { font-size: .8rem; color: var(--text-mute); margin-top: 6px; }

.input, .select, .textarea {
    width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 13px 15px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.input::placeholder, .textarea::placeholder { color: #626878; }
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--orange); box-shadow: var(--ring); background: var(--surface-3);
}
.textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.textarea--big { min-height: 240px; font-size: .98rem; }

.select {
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237c828f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}

.input-wrap { position: relative; }
.input-wrap .unit {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    font-size: .85rem; color: var(--text-mute); pointer-events: none; font-weight: 600;
}
.input-wrap .input { padding-right: 52px; }

/* Grid de câmpuri */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 18px; }
.col-full  { grid-column: span 6; }
.col-half  { grid-column: span 3; }
.col-third { grid-column: span 2; }
@media (max-width: 720px) {
    .col-half, .col-third { grid-column: span 6; }
}

/* Radio & checkbox „chips" */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
    position: relative; display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface-2); cursor: pointer; font-size: .92rem; color: var(--text-soft);
    transition: all .16s ease; user-select: none;
}
.choice:hover { border-color: var(--surface-3); color: #fff; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice .dot {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line);
    flex: none; transition: all .16s; position: relative;
}
.choice .box {
    width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line);
    flex: none; transition: all .16s; position: relative;
}
.choice input:checked ~ .dot,
.choice input:checked ~ .box { border-color: var(--orange); background: var(--orange); }
.choice input:checked ~ .dot::after {
    content: ""; position: absolute; inset: 3px; background: #fff; border-radius: 50%;
}
.choice input:checked ~ .box::after {
    content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.choice:has(input:checked) {
    border-color: var(--orange); background: rgba(255,106,0,0.10); color: #fff;
    box-shadow: 0 0 0 1px rgba(255,106,0,0.3);
}
.choice--consent { align-items: flex-start; padding: 14px 16px; }
.choice--consent .box { margin-top: 2px; }

/* Scala 1–10 */
.scale { display: flex; gap: 7px; flex-wrap: wrap; }
.scale__btn {
    width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line);
    background: var(--surface-2); color: var(--text-soft); font-weight: 700; font-size: .95rem;
    cursor: pointer; transition: all .14s;
}
.scale__btn:hover { border-color: var(--surface-3); color: #fff; }
.scale__btn.is-active {
    background: linear-gradient(135deg, var(--orange-2), var(--orange-3));
    border-color: transparent; color: #fff; box-shadow: 0 6px 16px var(--orange-glow);
}

/* -------------------------------------------------- Utilitare */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.stack > * + * { margin-top: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}
.hidden { display: none !important; }
.text-center { text-align: center; }

.badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700;
    padding: 4px 10px; border-radius: 20px; letter-spacing: .02em;
}
.badge--draft { background: rgba(255,176,32,.15); color: var(--amber); }
.badge--submitted { background: rgba(53,196,122,.15); color: var(--green); }

/* Fade in */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .4s ease both; }

/* Toast */
.toast {
    position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--surface-3); border: 1px solid var(--line); color: #fff;
    padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow);
    font-size: .9rem; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 999;
    display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--ok { border-color: rgba(53,196,122,.5); }
.toast--err { border-color: rgba(255,77,79,.5); }
