/* === Xinfinity Premium Theme (Minecraft Gamer) === */

:root {
  --bg:#0d1115;
  --bg-soft:#111417;
  --card:#111417;
  --edge:#1a1f25;
  --text:#e5e7eb;
  --muted:#a5acb8;
  --accent:#2ecc71;
  --accent-hover:#27ae60;
  --shadow:0 14px 40px rgba(0,0,0,.55);
}

/* ===== BASE ===== */
body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  margin:0;
}

a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.site-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--edge);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  z-index: 2000;
}
.head-inner {
  max-width: 1200px;
  margin: auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items:center; gap:10px; font-weight:700; }
.navbar { display:flex; gap:10px; flex-wrap:wrap; }

.nav-link,
.nav-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
  transition: .25s;
}
.nav-link:hover,
.nav-btn:hover { background: rgba(255,255,255,.05); }
.nav-link.active { border: 1px solid var(--edge); }

/* ===== DROPDOWN ===== */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top:110%; left:0;
  min-width: 220px;
  background: var(--card);
  border:1px solid var(--edge);
  border-radius:12px;
  display:flex; flex-direction:column;
  padding:10px;
  gap:8px;
  box-shadow: var(--shadow);
}
.dropdown-menu[hidden] { display:none!important; }
.dropdown-menu a {
  padding:10px; border-radius:10px;
  transition:.18s;
  color: var(--text);
}
.dropdown-menu a:hover { background: rgba(255,255,255,.05); }

/* ===== SEARCH BAR ===== */
.search-wrap {
  display:flex;
  justify-content:center;
  margin:25px 0;
}
.search {
  display:flex;
  gap:10px;
  width:100%;
  max-width:620px;
  background: var(--bg-soft);
  border:2px solid var(--accent);
  border-radius:12px;
  padding: 10px 14px;
  align-items:center;
  box-shadow:0 6px 20px rgba(0,0,0,.35);
}
#search-bar {
  flex:1;
  background: transparent;
  border:none;
  outline:none;
  color: var(--text);
  font-size: 15px;
}
#search-bar::placeholder { color: var(--muted); }

.btn-search {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  padding:10px 18px;
  border-radius:8px;
  border:none;
  color:#fff;
  font-weight:700;
  cursor:pointer;
  transition:.25s;
}
.btn-search:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* ===== SUGGEST BOX ===== */
.suggest-box {
  position:absolute;
  top: calc(100% + 8px);
  width:100%;
  background: var(--card);
  border:1px solid var(--accent);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(0,0,0,.55);
  z-index:9999;
}
.suggest-item {
  display:flex;
  padding:10px;
  gap:10px;
  border-bottom:1px solid rgba(255,255,255,.05);
  transition:.2s;
}
.suggest-item:hover {
  background: var(--accent);
  color:#0d1115;
}
.suggest-item img {
  width:42px; height:42px;
  border-radius:6px;
  object-fit:cover;
}

/* ===== SLIDER ===== */
#slider {
  position:relative;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 34px rgba(0,0,0,.55);
}
.slide { position:absolute; inset:0; opacity:0; transition:.6s; }
.slide.active { opacity:1; }
.slide img { width:100%; height:100%; object-fit:cover; }
.slide-body { position:absolute; left:24px; bottom:20px; }
.cta {
  background:linear-gradient(135deg,var(--accent),var(--accent-hover));
  padding:12px 20px;
  border-radius:12px;
  color:#0e1610;
  font-weight:700;
}

/* ===== CATEGORIES ===== */
.categorias-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:20px; margin-top:20px;
}
.categoria-card {
  background:var(--card);
  border:1px solid var(--edge);
  border-radius:14px;
  box-shadow: var(--shadow);
  overflow:hidden;
  transition:.25s;
}
.categoria-card:hover {
  transform:translateY(-4px);
  border-color:var(--accent);
}
.categoria-card img {
  width:100%; height:120px; object-fit:cover;
}
.cat-btn {
  display:inline-block;
  margin:10px 0 14px;
  padding:8px 14px;
  background:linear-gradient(135deg,var(--accent),var(--accent-hover));
  border:none;
  border-radius:8px;
  font-weight:700;
  color:#0d1115;
  transition:.25s;
}
.cat-btn:hover {
  transform:translateY(-2px);
  filter:brightness(1.1);
}

/* ===== FEATURED TUTORIALS ===== */
.featured-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:20px; padding:0 20px;
}
.featured-card {
  background:var(--card);
  border:1px solid var(--edge);
  border-radius:12px;
  overflow:hidden;
  box-shadow: var(--shadow);
  transition:.25s;
}
.featured-card:hover {
  transform:translateY(-4px);
  border-color:var(--accent);
}
.featured-img img {
  width:100%; height:160px; object-fit:cover;
}
.featured-content { padding:16px; }
.featured-content h3 {
  color: var(--accent);
  font-size:18px;
  margin-bottom:10px;
}
.meta { font-size:13px; color:var(--muted); margin-bottom:12px; }

.btn-destaque {
  background:linear-gradient(135deg,var(--accent),var(--accent-hover));
  color:#0d1115;
  padding:8px 16px;
  border:none;
  border-radius:8px;
  font-weight:700;
  transition:.25s;
}
.btn-destaque:hover {
  transform:translateY(-2px);
  filter:brightness(1.1);
}

/* ===== FOOTER ===== */
.site-foot {
  margin-top:30px;
  border-top:1px solid var(--edge);
  text-align:center;
  padding:20px;
  color:var(--muted);
}
