/* ============================================================
   FOOTBALLADMIN — GLOBAL DESIGN SYSTEM (Dark Mode Only)
   Location: /assets/css/style.css
   ============================================================ */

/* ---------------------- ROOT VARIABLES ---------------------- */
:root {
  --bg: #0b0f14;
  --bg-soft: #0e141b;
  --bg-elevated: #141a22;
  --bg-hover: rgba(255,255,255,0.04);

  --ink: #e6f5ee;
  --muted: #9fb1a8;

  --fx: #00e676;
  --fx-2: #1affb3;
  --fx-soft: rgba(0,230,118,0.12);
  --fx-glow: 0 0 22px rgba(0,230,118,0.35);

  --danger: #ff4d4d;
  --warning: #ffb020;
  --info: #46a8ff;

  --border-soft: rgba(255,255,255,0.06);
  --border-medium: rgba(255,255,255,0.12);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 14px 30px rgba(0,0,0,0.8);
  --shadow-strong: 0 22px 50px rgba(0,0,0,0.9);

  --font-main: "Plus Jakarta Sans", system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --transition-fast: 0.17s ease-out;
  --transition: 0.24s ease;
}

/* ================= NAV / TOPBAR GLASS (header.php) ================= */

.nav-blur {
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: linear-gradient(
    180deg,
    rgba(11,15,20,0.96),
    rgba(11,15,20,0.88)
  );
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ---------------------- GLOBAL RESETS ----------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(80% 120% at 10% 0%, rgba(0,230,118,0.12), transparent 60%),
    radial-gradient(80% 120% at 90% 100%, rgba(0,230,118,0.1), transparent 60%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

/* remove blue highlight on mobile */
body * {
  -webkit-tap-highlight-color: transparent;
}

/* custom scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
  background: rgba(0,230,118,0.3);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,230,118,0.5);
}

/* ============================================================
   GLOBAL HEADER (ACELAȘI PE MOBIL, TABLETĂ ȘI DESKTOP)
   ============================================================ */

.fa-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fa-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */

.fa-header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fa-header-logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* BUTOANE DIN DREAPTA (Create / Sign in sau Dashboard / Logout) */

.fa-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* variantă mică a butoanelor globale .btn / .btn-outline */
.btn-header-primary,
.btn-header-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

/* verde plin */
.btn-header-primary {
  background: linear-gradient(180deg, var(--fx), #15c97e);
  color: #051a11;
  box-shadow: 0 10px 24px -10px rgba(0, 230, 118, 0.7);
}

.btn-header-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 5px rgba(0, 230, 118, 0.18),
              0 16px 32px -12px rgba(0, 230, 118, 0.9);
}

/* contur */
.btn-header-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(0, 230, 118, 0.4);
}

.btn-header-outline:hover {
  background: rgba(0, 230, 118, 0.12);
}

/* icon în butoane */
.btn-header-primary i,
.btn-header-outline i {
  font-size: 1rem;
}

/* spațiu sub header ca să nu intre conținutul dedesubt */
.fa-header-spacer {
  height: 64px;
}

/* pe ecrane foarte mici doar puțin mai compact */
@media (max-width: 360px) {
  .fa-header-inner {
    padding: 0 0.75rem;
    gap: 0.4rem;
  }
  .btn-header-primary,
  .btn-header-outline {
    padding-inline: 0.9rem;
    font-size: 0.78rem;
  }
}
/* ---------------------- TYPOGRAPHY -------------------------- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
}

p {
  margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }
}

/* ---------------------- LAYOUT UTILITIES -------------------- */

.container-fa {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 1.5rem;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.section-title {
  margin-top: 0.3rem;
  font-size: 1.7rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.05rem;
  }
}

/* simple grids */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------------- CARDS ---------------------- */

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: rgba(255,255,255,0.035);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

/* imaginile din carduri — colțuri rotunjite mereu */
.card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* variantă card mic */
.card-sm {
  padding: 1rem;
}

/* header de card */
.card-header {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* ---------------------- BUTTONS ---------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--fx), #15c97e);
  color: #051a11;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow:
    0 0 0 rgba(0,230,118,0.45),
    0 12px 30px -10px rgba(0,230,118,0.6);
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 6px rgba(0,230,118,0.2),
    0 18px 40px -12px rgba(0,230,118,0.75);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(0,230,118,0.5);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(0,230,118,0.12);
  color: var(--fx-2);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

/* ---------------------- BADGES & TAGS ---------------------- */

.badge {
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-green {
  background: rgba(0,230,118,0.18);
  border: 1px solid rgba(0,230,118,0.45);
  color: var(--fx);
}

.badge-red {
  background: rgba(255,77,77,0.15);
  border: 1px solid rgba(255,77,77,0.5);
  color: var(--danger);
}

.badge-yellow {
  background: rgba(255,176,32,0.15);
  border: 1px solid rgba(255,176,32,0.5);
  color: var(--warning);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--muted);
}

/* ---------------------- FORMS ---------------------- */

.label-fa {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  display: inline-block;
}

.input-fa,
.select-fa {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--ink);
  font-size: 0.92rem;
  transition: var(--transition);
}

.input-fa::placeholder {
  color: var(--muted);
}

.input-fa:focus,
.select-fa:focus {
  border-color: var(--fx);
  box-shadow: 0 0 0 4px var(--fx-soft);
  outline: none;
}

.textarea-fa {
  width: 100%;
  min-height: 140px;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--ink);
  resize: vertical;
}

/* ---------------------- TABLES ---------------------- */

.table-shell {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
}

.table-fa {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.table-fa thead {
  background:
    radial-gradient(circle at 0 0, rgba(0,230,118,0.22), transparent 60%);
  font-weight: 600;
}

.table-fa th,
.table-fa td {
  padding: 0.7rem 0.9rem;
  white-space: nowrap;
}

.table-fa th {
  color: var(--muted);
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.table-fa tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}

.table-fa tbody tr:hover {
  background: rgba(0,230,118,0.12);
  transition: var(--transition-fast);
}

.table-scroll {
  overflow-x: auto;
}

/* ---------------------- MODALS ---------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 990;
}

.modal {
  width: 95%;
  max-width: 480px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  padding: 2rem;
  box-shadow: var(--shadow-strong);
}

/* ---------------------- ALERTS ---------------------- */

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.alert-success {
  background: rgba(0,230,118,0.14);
  border-left: 4px solid var(--fx);
}

.alert-danger {
  background: rgba(255,77,77,0.14);
  border-left: 4px solid var(--danger);
}

.alert-info {
  background: rgba(70,168,255,0.14);
  border-left: 4px solid var(--info);
}

/* ---------------------- IMAGE GALLERY ---------------------- */

.gallery-fa {
  display: grid;
  gap: 1rem;
}

.gallery-fa img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  transition: var(--transition-fast);
}

.gallery-fa img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-strong);
}

@media (min-width: 768px) {
  .gallery-fa {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------- STATS / WIDGETS ---------------------- */

.stat-box {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stat-title {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--fx);
}

/* ---------------------- ANIMATIONS / LOADER ---------------------- */

.gradient-anim {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.gradient-anim::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 0deg,
    rgba(0,230,118,0.14),
    rgba(26,255,179,0.06),
    rgba(0,230,118,0.14)
  );
  animation: spin 18s linear infinite;
  filter: blur(40px);
  z-index: -1;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

.loader-fa {
  border: 3px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--fx);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 0.65s linear infinite;
}

/* ---------------------- AVATARS ---------------------- */

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--fx);
}

.avatar-sm {
  width: 34px;
  height: 34px;
}

/* ---------------------- PAGINATION ---------------------- */

.pagination-fa {
  display: flex;
  gap: 0.4rem;
}

.page-btn {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.page-btn:hover {
  border-color: var(--fx);
  color: var(--fx);
}

.page-active {
  background: var(--fx-soft);
  border-color: var(--fx);
  color: var(--fx);
}

/* ============================================================
   HOME MODULE CARDS (Squad / Matches / Training / etc.)
   Aceeași înfățișare pe mobil, tabletă și desktop
   ============================================================ */

.fa-modules-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* card mare cu imagine + overlay text */
.fa-module-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(0,230,118,0.18), transparent 55%),
    rgba(11,15,20,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.75);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;          /* dacă e <a>, să nu apară underline */
  color: inherit;
}

.fa-module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,230,118,0.5);
  box-shadow: 0 26px 52px rgba(0,0,0,0.9);
}

/* imaginea de fundal */
.fa-module-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* overlay întunecat pentru text */
.fa-module-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem 1.4rem;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.95) 100%
  );
}

/* titlu modul */
.fa-module-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fx);
  margin-bottom: 0.5rem;
}

.fa-module-title i {
  font-size: 1.25rem;
}

/* lista cu bullet-uri */
.fa-module-list {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
  font-size: 0.86rem;
  color: var(--muted);
}

.fa-module-list li + li {
  margin-top: 0.2rem;
}

/* doar mici ajustări de înălțime la ecrane mai mari,
   dar layout-ul rămâne 1 coloană peste tot */
@media (min-width: 768px) {
  .fa-module-card img {
    height: 260px;
  }
  .fa-module-overlay {
    padding: 1.4rem 1.8rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .fa-module-card img {
    height: 280px;
  }
}

/* ============================================================
   HOME — HERO SLIDER
   .fa-hero-slide folosit în index.php (3 slide-uri)
   ============================================================ */

.fa-hero-slide {
  position: relative;
  min-height: 220px;
}

.fa-hero-slide .hero-text {
  padding: 1.4rem 1.6rem;
}

@media (min-width: 768px) {
  .fa-hero-slide {
    min-height: 260px;
  }
}

/* ============================================================
   HOME MODULE CARDS (Squad / Matches / Training / etc.)
   Aceeași structură pe mobile, tabletă și desktop
   ============================================================ */

.fa-modules-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* card mare cu imagine + text */
.fa-module-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(circle at 0 0, rgba(0,230,118,0.18), transparent 55%),
              rgba(11,15,20,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.75);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* imaginea din modul — colțuri rotunjite și fill */
.fa-module-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* overlay jos */
.fa-module-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem 1.4rem;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.96) 100%
  );
}

/* titlu modul */
.fa-module-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fx);
  margin-bottom: 0.5rem;
}

.fa-module-title i {
  font-size: 1.25rem;
}

/* listă bullet */
.fa-module-list {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
  font-size: 0.86rem;
  color: var(--muted);
}

.fa-module-list li + li {
  margin-top: 0.2rem;
}

/* hover efect */
.fa-module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,230,118,0.5);
  box-shadow: 0 26px 52px rgba(0,0,0,0.9);
}

/* pe ecrane mai mari doar mărim un pic înălțimea imaginii */
@media (min-width: 768px) {
  .fa-module-card img {
    height: 260px;
  }

  .fa-module-overlay {
    padding: 1.4rem 1.8rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .fa-module-card img {
    height: 280px;
  }
}
/* DASHBOARD NEON TILES */
.fa-tile {
    background: linear-gradient(180deg,
                rgba(0,230,118,0.22),
                rgba(0,230,118,0.10));
    border: 1px solid rgba(0,230,118,0.45);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 18px rgba(0,230,118,0.25);
    padding: 1.6rem 0.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: var(--transition);
}

.fa-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 24px rgba(0,230,118,0.55);
    border-color: var(--fx);
}

/* ============================================================
   FOOTER HELPER
   ============================================================ */

.fa-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(80% 140% at 0 0, rgba(0,230,118,0.12), transparent 55%),
              var(--bg-soft);
  padding-block: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}
/* ========================================================
   DASHBOARD – iPad Style Icon Grid
   ======================================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 30px;
}

/* App Button */
.fa-app-btn {
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

/* Icon Circle */
.fa-app-circle {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    background: radial-gradient(circle at 30% 20%,
                rgba(0,230,118,0.32),
                rgba(0,230,118,0.08));
    border: 1px solid rgba(0,230,118,0.55);
    box-shadow: 0 0 18px rgba(0,230,118,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--fx);
    transition: var(--transition-fast);
}

/* Hover animation */
.fa-app-btn:hover .fa-app-circle {
    transform: translateY(-5px);
    box-shadow: 0 0 28px rgba(0,230,118,0.85);
}

/* Label under icon */
.fa-app-btn span {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    opacity: 0.85;
}

/* CREATE BUTTON (Neon Orange) */
.create-btn .fa-app-circle {
    background: radial-gradient(circle at 30% 20%,
                rgba(255,160,0,0.36),
                rgba(255,140,0,0.12));
    border: 1px solid rgba(255,160,0,0.55);
    box-shadow: 0 0 20px rgba(255,150,0,0.55);
    color: #ffb45e;
}

.create-btn:hover .fa-app-circle {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 34px rgba(255,160,0,0.95);
}

/* ---------- Responsive Phones ---------- */
@media (max-width: 480px) {
    .fa-app-circle {
        width: 78px;
        height: 78px;
        font-size: 1.9rem;
        border-radius: 20px;
    }

    .fa-app-btn span {
        font-size: 0.78rem;
        opacity: 0.9;
    }

    .dashboard-grid {
        gap: 22px;
    }
}
