/* Cabecera, buscador, barra de estadísticas y rejilla
   (archivo: css/layout/app-layout.css) */
/* ============================================================
   HEADER
   ============================================================ */
#app-header {
  position: relative;
  text-align: center;
  padding: 18px 24px 14px;
  background: linear-gradient(180deg, #0a0a0a 0%, #1c1c1c 100%);
  border-bottom: 4px solid var(--yellow-bright);
  overflow: hidden;
}
#app-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,215,0,0.035) 0px, rgba(255,215,0,0.035) 2px,
    transparent 2px, transparent 40px
  );
  pointer-events: none;
}
#app-header h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  letter-spacing: 2px;
  position: relative;
  animation: titlePop 4s ease-in-out infinite;
}
#app-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 5px;
  position: relative;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
#search-bar-wrap {
  padding: 16px 24px 0;
  max-width: 560px;
  margin: 0 auto;
}
#search-input {
  width: 100%;
  background: #1e1e1e;
  border: 3px solid #3a3a3a;
  border-radius: 30px;
  padding: 10px 20px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  color: var(--text-white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#search-input::placeholder { color: #555; }
#search-input:focus {
  border-color: var(--yellow-bright);
  box-shadow: 0 0 12px rgba(255,215,0,0.3);
}

/* ============================================================
   STATS BAR
   ============================================================ */
#stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 10px 24px 0;
  max-width: 560px;
  margin: 0 auto;
}
.stat-chip {
  font-family: 'Fredoka One', cursive;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.stat-chip span {
  color: var(--yellow-bright);
  font-size: 1rem;
}
#stat-completed span { color: var(--green-done); }

/* ============================================================
   GRID VIEW
   ============================================================ */
#grid-view {
  padding: 18px 20px 40px;
}
#masteries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  max-width: 1600px;
  margin: 0 auto;
}
.section-label {
  grid-column: 1 / -1;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--text-muted);
  border-bottom: 2px solid #333;
  padding-bottom: 6px;
  margin-top: 6px;
  letter-spacing: 1px;
}

