/* ============================================================================
   TUTORIAIS — biblioteca de guias (/tutoriais) e leitura (/tutoriais/:slug)
   Reusa a base editorial de news.css (cartoes, filtros, artigo/pergaminho) e
   adiciona o hero da biblioteca + capas por classificacao (gradientes).
   ========================================================================== */
@import url('/css/pages/news.css?v=32');

/* ---- hero da biblioteca ------------------------------------------------------ */
.tut-hero {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  isolation: isolate;
  padding-top: clamp(8.5rem, 14vw, 11.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.tut-hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: #071d1a;
  background-image: url('/img/art/home-tavern.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.16) contrast(1.05);
}
.tut-hero-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 80% at 76% 40%, rgba(238, 192, 106, .14), transparent 70%),
    linear-gradient(90deg, rgba(2, 22, 20, .94) 0%, rgba(3, 27, 24, .8) 44%, rgba(10, 20, 14, .3) 80%),
    linear-gradient(0deg, #061a18 0%, transparent 46%, rgba(2, 16, 15, .55) 100%);
}
.tut-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: clamp(6rem, 15vh, 9rem);
  pointer-events: none;
  background: linear-gradient(to top, #061a18, transparent);
}
.tut-hero-inner {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 1.15rem;
  max-width: 52rem;
}
h1.tut-hero-title {
  font-size: clamp(3.4rem, 7.5vw, 6.5rem);
  line-height: .86;
  letter-spacing: -.03em;
  text-shadow: 0 7px 36px rgba(0, 0, 0, .55);
}
.tut-hero .lead {
  max-width: 40rem;
  color: rgba(247, 241, 220, .84);
  text-wrap: balance;
}

/* ---- lista ------------------------------------------------------------------- */
.tut-list {
  position: relative;
  z-index: 0;
  isolation: isolate;
  padding: clamp(2.2rem, 4vw, 3.4rem) 0 clamp(5rem, 9vw, 7rem);
  background: #061a18;
}
.tut-list::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58rem 32rem at 2% 14%, rgba(32, 128, 112, .12), transparent 70%),
    radial-gradient(48rem 30rem at 98% 78%, rgba(188, 135, 37, .1), transparent 72%);
}
/* o shell de filtro em news.css nasce com margem negativa (pendurado no hero);
   aqui ele mora dentro da lista, entao a margem vira espacamento normal */
.tut-list .tut-filter-shell {
  margin-top: 0;
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
  flex-wrap: wrap;
}

/* ---- busca ------------------------------------------------------------------- */
.tut-search {
  display: flex;
  flex: 1 1 15rem;
  min-width: 0;
  max-width: 24rem;
  align-items: stretch;
  border: 1px solid rgba(238, 192, 106, .3);
  border-radius: 10px;
  background: rgba(4, 24, 21, .72);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tut-search:focus-within {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(238, 192, 106, .14);
}
.tut-search-input {
  flex: 1;
  min-width: 0;
  padding: .62rem .35rem .62rem .9rem;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-size: .92rem;
}
.tut-search-input::placeholder { color: rgba(247, 241, 220, .45); }
.tut-search-input:focus { outline: none; }
.tut-search-input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); }
.tut-search-btn {
  display: inline-grid;
  place-items: center;
  padding: 0 .85rem;
  border: 0;
  border-left: 1px solid rgba(238, 192, 106, .22);
  border-radius: 0 9px 9px 0;
  background: rgba(238, 192, 106, .1);
  color: var(--gold-300);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.tut-search-btn:hover {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #172012;
}

/* linha de resultado da busca */
.tut-results {
  margin-bottom: 1.3rem;
  color: var(--text-muted);
}
.tut-results strong { color: var(--gold-200); }
.tut-results a {
  color: var(--gold-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tut-results a:hover { color: var(--gold-200); }

/* secoes por classificacao */
.tut-group { margin-top: clamp(2.6rem, 5.5vw, 4rem); }
.tut-group:first-of-type { margin-top: 0; }
.tut-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(238, 192, 106, .18);
}
.tut-group-head .h-sub { margin: 0; }
.tut-group-count {
  flex: none;
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247, 241, 220, .5);
}

/* ---- capas por classificacao (gradientes tematicos, sem arte raster) --------- */
.news-cover--iniciante .news-cover-art {
  background-image:
    radial-gradient(120% 90% at 22% 12%, rgba(158, 201, 96, .3), transparent 56%),
    linear-gradient(150deg, #2c4a1e 0%, #1a2e10 55%, #0e1a08 100%);
}
.news-cover--dofus .news-cover-art {
  background-image:
    radial-gradient(58% 72% at 50% 44%, rgba(255, 214, 120, .5), transparent 64%),
    linear-gradient(150deg, #6b4c16 0%, #3a2708 55%, #1c1203 100%);
}
.news-cover--lojas .news-cover-art {
  background-image:
    radial-gradient(110% 90% at 80% 16%, rgba(94, 176, 227, .32), transparent 58%),
    linear-gradient(150deg, #1c3d54 0%, #102438 55%, #081220 100%);
}
.news-cover--sistemas .news-cover-art {
  background-image:
    radial-gradient(110% 90% at 24% 20%, rgba(227, 162, 94, .28), transparent 58%),
    linear-gradient(150deg, #54371c 0%, #33200e 55%, #180e05 100%);
}
.news-cover--classes .news-cover-art {
  background-image:
    radial-gradient(110% 90% at 70% 24%, rgba(255, 138, 76, .32), transparent 58%),
    linear-gradient(150deg, #5e2c14 0%, #38180a 55%, #1a0a04 100%);
}
.news-cover--outros .news-cover-art {
  background-image:
    radial-gradient(110% 90% at 50% 20%, rgba(148, 190, 180, .24), transparent 58%),
    linear-gradient(150deg, #23423c 0%, #132824 55%, #081412 100%);
}

/* ---- responsivo -------------------------------------------------------------- */
@media (max-width: 1240px) {
  .tut-list .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tut-list .news-grid { grid-template-columns: 1fr; }
  .tut-group-head { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .tut-search { flex-basis: 100%; max-width: none; }
}
