/* ============ Hoinar — un proiect Warhial ============ */
/* Tema implicită: dark. [data-theme="light"] comută pe alb. */
:root {
  --bg: #121016;
  --surface: #1a1720;
  --surface-2: #221e2b;
  --text: #d9d6e3;
  --heading: #f4f2f9;
  --muted: #938ea2;
  --line: #282433;
  --accent: #7c6cff;
  --accent-2: #a78bfa;
  --header-bg: rgba(18, 16, 22, 0.78);
  --grid-line: rgba(255, 255, 255, 0.035);
  --radius: 18px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --glow-card: 0 0 36px rgba(124, 108, 255, 0.14);
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --glow-1: rgba(124, 108, 255, 0.16);
  --glow-2: rgba(167, 139, 250, 0.12);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  --band-bg: #17141d;
  --band-heading: #ffffff;
  --band-text: #b3aec2;
  --band-line: rgba(255, 255, 255, 0.08);
}
:root[data-theme="light"] {
  --bg: #f7f8fd;
  --surface: #ffffff;
  --surface-2: #edf0fb;
  --text: #2c2936;
  --heading: #322e3b;
  --muted: #6d6a7c;
  --line: #e6e6f0;
  --accent: #5b57f2;
  --accent-2: #8b7cf6;
  --header-bg: rgba(247, 248, 253, 0.82);
  --grid-line: rgba(50, 46, 59, 0.05);
  --shadow: 0 6px 24px rgba(50, 46, 59, 0.08);
  --shadow-lg: 0 20px 50px rgba(50, 46, 59, 0.14);
  --glow-card: 0 0 36px rgba(91, 87, 242, 0.12);
  --glow-1: rgba(139, 124, 246, 0.18);
  --glow-2: rgba(91, 87, 242, 0.12);
  --band-bg: #322e3b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; line-height: 1.2; color: var(--heading); letter-spacing: -0.02em; }
a { color: var(--accent-2); text-decoration: none; }
p { margin-bottom: 1em; }
::selection { background: rgba(124, 108, 255, 0.35); color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1100px, 92%); margin: 0 auto; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; gap: 6px; height: 64px; }
.brand {
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.3rem;
  color: var(--heading); letter-spacing: -0.02em; margin-right: auto;
}
.brand::after { content: "."; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 7px 13px; border-radius: 10px;
  color: var(--text); font-weight: 500; font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--heading); }
.nav-links a.active { background: var(--heading); color: var(--bg); }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%; margin-left: 8px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 1rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }

/* ============ Scena principală ============ */
.stage { position: relative; overflow: hidden; flex: 1; padding: 52px 0 72px; text-align: center; }
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 420px at 18% -5%, var(--glow-1), transparent 60%),
    radial-gradient(700px 480px at 82% 30%, var(--glow-2), transparent 60%);
}
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    var(--noise),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 30%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 90% at 50% 30%, #000 40%, transparent 100%);
}
.stage .container { position: relative; z-index: 1; animation: rise 0.7s ease both; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; font-size: 0.82rem; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.stage h1 { font-size: clamp(2.1rem, 5.5vw, 3.2rem); margin-bottom: 12px; }
.stage h1 em, .page-title em {
  font-style: normal; color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  animation: grad-shift 5s ease-in-out infinite;
}
.tagline { color: var(--muted); font-size: 1.05rem; max-width: 36rem; margin: 0 auto 28px; }

/* ============ Filtre ============ */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.chip {
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 0.88rem; font-weight: 500;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip.on { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }

/* ============ Butoane ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 12px 24px; border-radius: 13px; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background-position 0.35s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background-image: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% auto; color: #fff;
  box-shadow: 0 8px 22px rgba(124, 108, 255, 0.35);
}
.btn-primary:hover { background-position: right center; box-shadow: 0 12px 30px rgba(124, 108, 255, 0.5); }
.btn-ghost { background: var(--surface); color: var(--heading); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-big { font-size: 1.12rem; padding: 17px 38px; border-radius: 16px; }

/* ============ Grila descoperirilor (3 pe rând) ============ */
.discover-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 38px 0 0; text-align: left;
}
.discover-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  animation: rise 0.45s ease both;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.discover-card:nth-child(2) { animation-delay: 0.08s; }
.discover-card:nth-child(3) { animation-delay: 0.16s; }
.discover-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-lg), var(--glow-card); }
.dc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dc-top img { width: 24px; height: 24px; border-radius: 6px; }
.dc-domain { font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.discover-card h2 { font-size: 1.15rem; margin-bottom: 8px; }
.discover-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; flex: 1; }
.dc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.dc-tags span {
  padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600;
  background: var(--surface-2); color: var(--text);
}
.discover-card .btn { width: 100%; }

/* ============ Istoric ============ */
.history { max-width: 640px; margin: 30px auto 0; text-align: left; }
.history h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.history ul { list-style: none; }
.history li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.history li:last-child { border-bottom: 0; }
.history .h-domain { color: var(--muted); font-size: 0.82rem; margin-left: 8px; }

/* ============ Pagini de conținut (colecție, despre) ============ */
.page { flex: 1; padding: 48px 0 72px; }
.page-title { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 10px; text-align: center; }
.page-sub { color: var(--muted); text-align: center; max-width: 40rem; margin: 0 auto 40px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.prose ul { margin: 0 0 1em 1.4em; }
.prose li { margin-bottom: 6px; }

.cat-section { margin-bottom: 44px; }
.cat-section h2 {
  font-size: 1.3rem; margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cat-section h2 span { color: var(--muted); font-size: 0.9rem; font-family: "Inter", sans-serif; font-weight: 500; }
.site-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
.site-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; transition: border-color 0.2s, transform 0.2s;
}
.site-list li:hover { border-color: var(--accent); transform: translateY(-2px); }
.site-list a { font-weight: 600; color: var(--heading); }
.site-list a:hover { color: var(--accent-2); }
.site-list .s-domain { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.site-list p { font-size: 0.88rem; color: var(--muted); margin: 6px 0 0; }

/* ============ Banner cookie-uri ============ */
.cookie-banner {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px;
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 18px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  animation: rise 0.5s ease both;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--muted); flex: 1 1 320px; }
.cookie-banner .cc-actions { display: flex; gap: 10px; }
.cookie-banner .btn { padding: 10px 18px; font-size: 0.9rem; }

/* ============ Footer ============ */
.site-footer {
  background: var(--band-bg); color: var(--band-text);
  border-top: 2px solid; border-image: linear-gradient(90deg, var(--accent), var(--accent-2), transparent) 1;
  padding: 22px 0; font-size: 0.85rem; text-align: center;
}
.site-footer a { color: var(--band-text); text-decoration: underline; text-decoration-color: rgba(124, 108, 255, 0.4); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--band-heading); }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .discover-grid, .site-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .stage { padding: 36px 0 56px; }
  .discover-grid, .site-list { grid-template-columns: 1fr; }
  .nav-links a { padding: 7px 9px; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stage .container, .discover-card, .cookie-banner { animation: none; }
  .stage h1 em, .page-title em { animation: none; }
}
