/* ============================================
   CURS AGENTS IA — Estils Addicionals MkDocs
   ============================================ */

/* Millora de les admonitions */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 8px !important;
}

/* Capçaleres amb gradient */
.md-typeset h1 {
  background: linear-gradient(135deg, #a78bfa, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.md-typeset h2 {
  border-left: 4px solid #7c3aed;
  padding-left: 0.75rem;
  color: #c4b5fd;
}

/* Taules */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(124,58,237,0.2);
}

.md-typeset table:not([class]) th {
  background: rgba(124,58,237,0.15);
  color: #c4b5fd;
}

/* Millora del codi inline */
.md-typeset code {
  background: rgba(124,58,237,0.12) !important;
  color: #c4b5fd !important;
  border-radius: 4px;
}

/* Barra de navegació */
.md-tabs__link--active {
  font-weight: 700;
}

/* El grid principal sin máximo ancho */
.md-grid {
  max-width: initial !important;
}

/* O bien apuntando al inner content */
.md-main__inner.md-grid {
  max-width: initial !important;
}

/* Quitar márgenes/paddings laterales si los hay */
.md-content, .md-main__inner, .md-header, .md-footer {
  margin: 0 !important;
  padding: 0 !important;
}

/* Cards de pràctiques */
.practice-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.06));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}

.practice-card:hover {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 4px 20px rgba(124,58,237,0.2);
  transform: translateY(-2px);
}

.practice-card h3 {
  color: #a78bfa;
  margin-top: 0;
}

.practice-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.practice-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Step-by-step */
.steps-container {
  counter-reset: step-counter;
  margin: 2rem 0;
}

.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  counter-increment: step-counter;
  position: relative;
}

.step::before {
  content: counter(step-counter);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(124,58,237,0.4);
}

.step-content {
  background: var(--ai-card-bg);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  flex: 1;
  border: 1px solid rgba(124,58,237,0.15);
}

.step-content h4 {
  margin: 0 0 0.4rem 0;
  color: #c4b5fd;
}

.step-content p {
  margin: 0;
  font-size: 0.9rem;
}

/* Llista de verificació de prerequisits */
.prereq-list {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

.prereq-list h4 {
  color: #34d399;
  margin-top: 0;
}

/* Taula de continguts del curs */
.course-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.unit-card {
  background: var(--ai-card-bg);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px;
  padding: 1.2rem;
  transition: all 0.25s ease;
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.unit-card:hover {
  border-color: var(--ai-purple);
  box-shadow: 0 4px 20px rgba(124,58,237,0.25);
  transform: translateY(-3px);
}

.unit-card-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ai-cyan);
  margin-bottom: 0.4rem;
}

.unit-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: 0.5rem;
}

.unit-card-desc {
  font-size: 0.82rem;
  opacity: 0.75;
}

/* Highlight box per a termes clau */
.key-term {
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-weight: 600;
  color: #c4b5fd;
}

/* Stats counter */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--ai-card-bg);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}
