
/* Kriterion Quant - Studi: tema coerente con Soluzioni/Casi d'uso
   Solo formattazione visuale, nessuna modifica a script o logica. */

/* === Palette & font === */
:root{
  --kq-bg:#071a2d;
  --kq-text:#ffffff;
  --kq-muted:#b7c7da;
  --kq-accent:#ff7a00;
  --kq-accent-2:#ffa559;
  --kq-card:#0b2540;
  --kq-border:rgba(255,255,255,0.08);
}
html, body{
  background:var(--kq-bg);
  color:var(--kq-text);
  font-family:"Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji", sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{ color:var(--kq-accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* === Layout wrapper === */
.container{
  width:min(1180px, 92%);
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}

/* === Header / titoli === */
.header h1, .header h2, .header h3{
  margin: .35em 0 .25em;
  line-height:1.08;
  font-weight:800;
}
.header p, .count, .message-text{ color:var(--kq-muted); }

/* === Controls (ricerca/filtri) === */
.controls-panel, .controls-wrapper, .filter-box, .filter-section{
  background:transparent;
  border:none;
  color:var(--kq-text);
}
.search-wrapper{ position:relative; }
.search-wrapper input[type="search"],
#search-input, input[type="text"], input[type="search"], select{
  background: rgba(255,255,255,0.04);
  color: var(--kq-text);
  border:1px solid var(--kq-border);
  border-radius:12px;
  padding:10px 12px 10px 38px;
  outline:none;
}
.search-wrapper svg{ position:absolute; left:.75rem; top:50%; transform:translateY(-50%); fill: currentColor; color: var(--kq-muted); }
select{
  padding:10px 12px;
  color:var(--kq-text);
  appearance:none;
  background-image: none;
}

/* === Bottoni filtri === */
.filter-buttons, .filter-box{ display:flex; gap:8px; flex-wrap:wrap; }
.filter-buttons button, .filter-box button, button, .btn{
  background: var(--kq-accent);
  color:#0b1117;
  border:1px solid transparent;
  border-radius:12px;
  height:40px;
  padding:0 14px;
  font-weight:700;
  cursor:pointer;
}
.filter-buttons button.is-active, .filter-buttons button:focus{ outline:none; box-shadow:0 0 0 2px rgba(255,122,0,0.35); }
.filter-buttons button.ghost, .btn.ghost{
  background:transparent; color:var(--kq-accent); border-color:var(--kq-accent);
}
/* Se ci sono bottoni "tag" */
.filter-buttons .tag, .filter-box .tag{
  background: rgba(255,255,255,0.06);
  color: var(--kq-muted);
  border:1px solid var(--kq-border);
  border-radius:999px;
  padding:6px 10px;
  font-weight:600;
}

/* === Cards elenco articoli === */
.articles-grid{
  display:grid;
  gap:22px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width:980px){
  .articles-grid{ grid-template-columns:1fr; }
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border:1px solid var(--kq-border);
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,0.18); box-shadow: 0 10px 26px rgba(0,0,0,0.35); }
.card-content{ padding:18px; }
.card-title a{ color:var(--kq-text); text-decoration:none; font-weight:700; }
.card-title a:hover{ color:var(--kq-accent); }
.card-date{ color:var(--kq-muted); font-size:.9rem; }
.card-summary{ color:var(--kq-muted); }
.card-footer{ padding:12px 18px 18px; margin-top:auto; display:flex; gap:10px; flex-wrap:wrap; }
.card-footer a{ color:var(--kq-accent); }

/* === Tabelle generiche (se presenti) === */
table{ width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--kq-border); border-radius:14px; overflow:hidden; }
th, td{ padding:12px 14px; text-align:left; color:var(--kq-text); }
thead th{ background: rgba(255,255,255,0.04); font-weight:700; }
tbody tr + tr td{ border-top:1px solid var(--kq-border); }

/* === Messaggi/alert === */
.message-area{ background: rgba(255,255,255,0.03); border:1px solid var(--kq-border); border-radius:14px; padding:14px; }
.message-title{ color: var(--kq-accent-2); font-weight:800; }

/* === Focus state accessibile === */
:focus-visible{ outline:2px solid rgba(255,122,0,0.55); outline-offset:2px; }

/* === Icone === */
svg{ fill: currentColor; color: inherit; }
