/*! © 2026 Loombytle (https://loombytle.online) — platforma Unlimit Scripts (magazin, conturi, licențe, plăți, forum, admin) a fost proiectată și dezvoltată de Loombytle. Toate drepturile rezervate. Mențiunea de autor nu se elimină și nu se ascunde; vezi LICENSE.txt. */
/* Unlimit Scripts — forum (listă, postare, formular, raportări). Folosește tokenii din site.css. */

.fx { max-width: 1400px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 48px) 90px; animation: rise .35s both; }
.fx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 26px; }
.fx-head > div { flex: 1 1 560px; }
.fx-head h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 900; margin: 6px 0 12px; }
.fx-back { display: inline-block; margin-bottom: 18px; }

.fx-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.fx-bar .search { margin-left: auto; min-width: 260px; }
.fx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.fx-side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 20px); }
.fx-list { display: grid; gap: 12px; min-width: 0; }

/* card în listă */
.fx-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 14px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--card); transition: border-color .2s, transform .2s, background .2s; }
.fx-card:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-1px); }
.fx-card.pinned { border-color: rgba(255, 181, 71, .35); }
.fx-th { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 30% 20%, rgba(31, 107, 255, .35), transparent 65%), #081230; }
.fx-th.update { background: radial-gradient(ellipse at 50% 20%, rgba(255, 181, 71, .2), transparent 65%), #14100a; }
.fx-kind.update { background: linear-gradient(180deg, #ffc86b, #f09a1a); color: #1a1004; }
.cfx-av { display: inline-grid; place-items: center; border-radius: 50%; background: #16110a; border: 1px solid rgba(255, 181, 71, .45); color: #ffc86b; flex: none; }
.cfx-av svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fx-th.server { background: radial-gradient(ellipse at 70% 20%, rgba(52, 211, 153, .22), transparent 65%), #07162a; }
.fx-th img { width: 100%; height: 100%; object-fit: cover; }
.fx-th svg, .fx-kindseg svg { width: 38px; height: 38px; fill: none; stroke: var(--blue-l); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.fx-card-b { display: grid; gap: 8px; align-content: start; min-width: 0; }
.fx-card h3 { font-size: 20px; font-weight: 800; line-height: 1.25; }
.fx-card p { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.fx-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-kind { font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; color: #fff;
  background: linear-gradient(180deg, var(--blue-2), var(--blue)); }
.fx-kind.server { background: linear-gradient(180deg, #3bd9a4, #13a877); color: #03140d; }

.fx-meta { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 2px; }
.fx-meta .spacer, .fx-acts .spacer { flex: 1; }
.fx-meta.big { margin: 4px 0 20px; }
.fx-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.fx-who b { font-weight: 700; font-size: 14.5px; }
.fx-who .pill { font-size: 10.5px; padding: 5px 8px; }
.fx-n { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font: 600 13px var(--mono); }
.fx-n svg, .fx-like svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* coloana din dreapta */
.fx-stats { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.fx-stats div { display: grid; gap: 2px; }
.fx-stats b { font-size: 30px; font-weight: 900; line-height: 1; }
.fx-stats span { color: var(--muted); font-size: 13px; }
.fx-rules { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.fx-rules li::marker { color: var(--blue-2); font-weight: 800; }
.fx-admin { transition: border-color .2s; }
.fx-admin:hover { border-color: var(--blue-2); }
.fx-login { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--line-2); background: var(--card); }

/* pagina postării */
.fx-main { min-width: 0; }
.fx-main h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; line-height: 1.1; margin: 12px 0 14px; text-wrap: balance; }
.fx-img { display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: #050b1c; cursor: zoom-in; margin-bottom: 22px; }
.fx-img img { width: 100%; max-height: 560px; object-fit: cover; }
.fx-body { font-size: 16.5px; line-height: 1.65; color: #d3dcf3; overflow-wrap: anywhere; }
.fx-body a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.fx-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.fx-like { gap: 7px; }
.fx-mod { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px dashed rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .05); }
.fx-mod .mono { margin-right: 4px; }
.fx-report { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 93, 108, .35); background: rgba(255, 93, 108, .06); }
.fx-report select { height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #050b1c; color: var(--text); font: 600 14px var(--font); }

.fx-replies { margin-top: 44px; display: grid; gap: 12px; }
.fx-replies h2 { font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.fx-reply { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: grid; gap: 10px; }
.fx-reply.hid { opacity: .55; border-style: dashed; }
.fx-reply .fx-body { font-size: 15.5px; }
.fx-reply-form { display: grid; gap: 10px; justify-items: end; }
.fx-reply-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #050b1c; color: var(--text); font: 500 15px var(--font); resize: vertical; }
.fx-reply-form textarea:focus, .fx-form input:focus, .fx-form textarea:focus, .fx-form select:focus { outline: 0; border-color: var(--blue-2); }
.fx-locked { padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line-2); }

.fx-info dl { margin: 0; display: grid; gap: 0; }
.fx-info dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.fx-info dt { color: var(--muted); }
.fx-info dd { margin: 0; font-weight: 700; text-align: right; }
.fx-connect { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
.fx-connect span { grid-column: 1 / -1; }
.fx-connect code { padding: 10px 12px; border-radius: 10px; background: #050b1c; border: 1px solid var(--line-2); color: var(--blue-l); font-size: 13px; overflow-wrap: anywhere; }
.fx-info .side-btns .btn { flex: 1 1 auto; justify-content: center; }

/* formular */
.up-form.fx-form { position: static; gap: 16px; }
.fx-form h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 900; }
.fx-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fx-form label .small { font-weight: 500; }
.fx-kindseg { width: 100%; }
.fx-kindseg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; font-size: 15px; }
.fx-kindseg svg { width: 22px; height: 22px; }
.fx-upload { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: center; }
.fx-upload > div:last-child { display: grid; gap: 8px; justify-items: start; }
.fx-prev { aspect-ratio: 16 / 10; border-radius: 12px; border: 1px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; background: #050b1c; }
.fx-prev img { width: 100%; height: 100%; object-fit: cover; }
.fx-file { position: relative; overflow: hidden; cursor: pointer; }
.fx-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fx-form .chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--text); }
.fx-form .chk input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--blue); }

.adm-row.fx-rep { grid-template-columns: 56px minmax(0, 1.6fr) auto auto; }
.fx-rep a:hover { color: var(--blue-2); }

/* link-ul de forum din bara de sus, pe ecrane unde meniul e ascuns */
.forum-mini { display: none; width: 38px; height: 38px; border-radius: 999px; place-items: center; background: var(--card); border: 1px solid var(--line-2); color: var(--muted); }
.forum-mini svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.forum-mini.on, .forum-mini:hover { color: var(--text); border-color: var(--blue-2); }

@media (max-width: 1180px) {
  .fx-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .fx-card { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .forum-mini { display: grid; }
  .fx-grid { grid-template-columns: minmax(0, 1fr); }
  .fx-side { position: static; }
  .fx-bar .search { margin-left: 0; flex: 1 1 100%; order: 3; }
}
@media (max-width: 640px) {
  .fx-card { grid-template-columns: minmax(0, 1fr); }
  .fx-th { aspect-ratio: 16 / 7; }
  .fx-upload { grid-template-columns: minmax(0, 1fr); }
  .fx-form .two { grid-template-columns: minmax(0, 1fr); }
}

/* secțiunile mari: Global / FiveM Update */
.fx-secs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.fx-sec { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); transition: border-color .2s, background .2s; }
.fx-sec:hover { border-color: var(--line-2); background: var(--card-2); }
.fx-sec svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fx-sec span { display: grid; gap: 2px; min-width: 0; }
.fx-sec b { font-size: 19px; font-weight: 900; }
.fx-sec small { color: var(--muted); font-size: 13.5px; }
.fx-sec em { margin-left: auto; font-style: normal; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(61, 155, 255, .12); color: var(--blue-l); }
.fx-sec.on { border-color: var(--blue-2); background: radial-gradient(ellipse at 0% 0%, rgba(31, 107, 255, .28), transparent 65%), var(--card); box-shadow: 0 16px 40px -22px rgba(31, 107, 255, .9); }
.fx-sec.on svg { stroke: var(--blue-l); }
.fx-sec[href$="/update"].on { border-color: rgba(255, 181, 71, .55); background: radial-gradient(ellipse at 0% 0%, rgba(255, 181, 71, .2), transparent 65%), var(--card); box-shadow: 0 16px 40px -22px rgba(255, 181, 71, .7); }
.fx-sec[href$="/update"].on svg { stroke: #ffc86b; }
.fx-sec[href$="/update"] em { background: rgba(255, 181, 71, .14); color: #ffc86b; }
.fx-note { margin: 0; }
.fx-stats .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .fx-secs { grid-template-columns: 1fr; } }

/* Global → Toate: blocurile de categorie (1. Resurse FiveM, 2. Servere FiveM) */
.fx-cat { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.fx-cat + .fx-cat { margin-top: 8px; }
.fx-cat-h { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 0% 0%, rgba(31, 107, 255, .2), transparent 60%), var(--card-2); }
.fx-cat.server .fx-cat-h { background: radial-gradient(ellipse at 0% 0%, rgba(52, 211, 153, .14), transparent 60%), var(--card-2); }
.fx-cat-h > div { flex: 1; min-width: 0; }
.fx-cat-h .kicker { margin-bottom: 2px; font-size: 11px; }
.fx-cat-h h2 { font-size: 22px; font-weight: 900; line-height: 1.15; }
.fx-cat-h p.small { margin-top: 3px; }
.fx-cat-h em { font-style: normal; font-size: 13px; padding: 5px 11px; border-radius: 999px; background: rgba(61, 155, 255, .12); color: var(--blue-l); }
.fx-cat.server .fx-cat-h em { background: rgba(52, 211, 153, .12); color: var(--ok); }
.fx-cat-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; border: 1px solid var(--line-2); background: #081230; }
.fx-cat.server .fx-cat-ic { background: #07162a; border-color: rgba(52, 211, 153, .3); }
.fx-cat-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-l); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fx-cat.server .fx-cat-ic svg { stroke: var(--ok); }
.fx-cat-b { display: grid; gap: 10px; padding: 12px; }
.fx-cat-b .fx-card { background: var(--bg-2); }
.fx-cat-empty { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 26px 16px; border-radius: 12px; border: 1px dashed var(--line-2); }
.fx-cat-all { display: block; width: 100%; padding: 12px 20px 16px; text-align: right; }
@media (max-width: 640px) {
  .fx-cat-h { flex-wrap: wrap; }
  .fx-cat-h > div { flex-basis: calc(100% - 60px); }
  .fx-cat-h .btn { margin-left: auto; }
}
@media (max-width: 980px) { .adm-row.fx-rep { grid-template-columns: auto minmax(0, 1fr); } }
