/* liquid-courses.css — Liquid v2.0 Catalog + Detail styles */

:root {
  --lc-hue-fe:  #38bdf8;
  --lc-hue-ds:  #E87C2A;
  --lc-hue-de:  #a78bfa;
  --lc-hue-do:  #4ade80;
  --lc-gold:    #E87C2A;
  --lc-bg0:     #080808;
  --lc-bg1:     #0e0e0e;
  --lc-border:  rgba(255,255,255,0.06);
  --lc-text:    #f0ece4;
  --lc-muted:   #8a8580;
  --lc-dim:     #4a4540;
}

.lc-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.lc-search {
  flex: 1;
  min-width: 220px;
  height: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--lc-border);
  border-radius: 10px;
  color: var(--lc-text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s;
}
.lc-search:focus { border-color: rgba(232,124,42,0.35); }

.lc-cat-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.lc-pill {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 1px solid var(--lc-border);
  color: var(--lc-dim);
  background: rgba(255,255,255,0.03);
  transition: all 0.2s;
}
.lc-pill:hover { border-color: rgba(255,255,255,0.14); color: var(--lc-muted); }
.lc-pill[data-hue="all"].active    { background: rgba(232,124,42,0.12); color: var(--lc-gold);   border-color: rgba(232,124,42,0.3); }
.lc-pill[data-hue="fe"].active     { background: rgba(56,189,248,0.12);  color: var(--lc-hue-fe); border-color: rgba(56,189,248,0.28); }
.lc-pill[data-hue="ds"].active     { background: rgba(232,124,42,0.12); color: var(--lc-hue-ds); border-color: rgba(232,124,42,0.28); }
.lc-pill[data-hue="de"].active     { background: rgba(139,92,246,0.12);  color: var(--lc-hue-de); border-color: rgba(139,92,246,0.28); }
.lc-pill[data-hue="do"].active     { background: rgba(74,222,128,0.10);  color: var(--lc-hue-do); border-color: rgba(74,222,128,0.22); }

.lc-stats-bar {
  display: flex;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--lc-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.lc-stat {
  flex: 1;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--lc-border);
}
.lc-stat:last-child { border-right: none; }

.lc-stat-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.lc-stat-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
  animation: lc-pulse 2s infinite;
}
@keyframes lc-pulse {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0;   }
}

.lc-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: #FAF7F0;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.lc-stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: rgba(250, 247, 240, 0.78);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lc-flask-badge {
  margin-left: auto;
  font-size: 9px;
  color: var(--lc-hue-do);
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.15);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.lc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .lc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lc-grid { grid-template-columns: 1fr; } }

.lc-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--lc-border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
}
.lc-card:hover { transform: translateY(-3px); }
.lc-card.lc-recommended {
  border-color: rgba(232,124,42,0.4);
  box-shadow: 0 8px 32px rgba(232,124,42,0.10);
}

.lc-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.lc-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Vetrina video prima lezione (stile LinkedIn Learning) */
.lc-card-thumb video.lc-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #06090D;
}
.lc-preview-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(250, 247, 240, 0.85);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  pointer-events: none;
}

.lc-card-thumb-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
}

.lc-hue-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.lc-hue-dot[data-hue="fe"] { background: var(--lc-hue-fe); box-shadow: 0 0 6px var(--lc-hue-fe); }
.lc-hue-dot[data-hue="ds"] { background: var(--lc-hue-ds); box-shadow: 0 0 6px var(--lc-hue-ds); }
.lc-hue-dot[data-hue="de"] { background: var(--lc-hue-de); box-shadow: 0 0 6px var(--lc-hue-de); }
.lc-hue-dot[data-hue="do"] { background: var(--lc-hue-do); box-shadow: 0 0 6px var(--lc-hue-do); }

.lc-gpu-beam {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% 110%, rgba(255,255,255,0.08) 0%, transparent 70%);
  transition: opacity 0.28s;
}
.lc-card:hover .lc-gpu-beam { opacity: 1; }

.lc-rec-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(232,124,42,0.15);
  border: 1px solid rgba(232,124,42,0.3);
  color: var(--lc-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
}

.lc-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.lc-card-title { font-size: 14px; font-weight: 600; color: #d4cfc8; line-height: 1.3; }
.lc-card-instructor { font-size: 11px; color: var(--lc-dim); font-family: 'Inter', sans-serif; }
.lc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.lc-cat-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.lc-cat-tag[data-hue="fe"] { background: rgba(56,189,248,0.10);  color: var(--lc-hue-fe); }
.lc-cat-tag[data-hue="ds"] { background: rgba(232,124,42,0.10); color: var(--lc-hue-ds); }
.lc-cat-tag[data-hue="de"] { background: rgba(139,92,246,0.10);  color: var(--lc-hue-de); }
.lc-cat-tag[data-hue="do"] { background: rgba(74,222,128,0.08);  color: var(--lc-hue-do); }
.lc-card-rating { font-size: 10px; color: var(--lc-muted); }
.lc-card-price  { font-size: 14px; font-weight: 700; color: var(--lc-gold); }

.lc-detail-hero {
  border-radius: 16px;
  overflow: hidden;
  height: 260px;
  position: relative;
  margin-bottom: 28px;
}
.lc-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a0a14 0%, #04040a 100%);
}
.lc-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.lc-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(4,4,10,0.92) 100%);
}
.lc-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 32px;
}
.lc-hero-cat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lc-hero-cat-badge {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.lc-hero-title  { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.lc-hero-meta   { display: flex; gap: 16px; font-size: 12px; color: var(--lc-muted); font-family: 'Inter', sans-serif; }
.lc-hero-rating { color: var(--lc-gold); font-weight: 600; }

/* ── Fallback per componenti catalogo (classi lcc-* del CSS scoped di
   Courses/Index.razor): se il CSS scoped non viene servito per cache o
   build, queste regole garantiscono che filtri e toolbar restino leggibili. */
.lcc-fopt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  color: rgba(250, 247, 240, 0.78);
  cursor: pointer;
}
.lcc-fopt input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #e87c2a;
  flex-shrink: 0;
}
.lcc-fgroup {
  padding: 16px 0;
  border-top: 1px solid rgba(250, 247, 240, 0.08);
}
.lcc-fgroup h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.56);
}
.lcc-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.lcc-nres {
  font-size: 14px;
  color: rgba(250, 247, 240, 0.56);
  white-space: nowrap;
}
.lcc-nres strong {
  color: #faf7f0;
  font-weight: 700;
}
.lcc-sortsel {
  margin-left: auto;
  background: #0e1524;
  border: 1px solid rgba(250, 247, 240, 0.08);
  border-radius: 10px;
  color: #faf7f0;
  font-size: 13px;
  padding: 9px 14px;
  outline: none;
  cursor: pointer;
}
.lcc-filters-open {
  display: none;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: #0e1524;
  border: 1px solid rgba(250, 247, 240, 0.08);
  border-radius: 10px;
  color: #faf7f0;
  font-size: 13px;
  padding: 9px 14px;
  cursor: pointer;
}
@media (max-width: 900px) {
  .lcc-filters-open { display: inline-flex; }
}
