/* =========================================================
   en-reg.ro - Unified premium design system
   Subdomain: Podcasturi
   Accent palette: indigo + warm amber
   ========================================================= */

:root {
  --bg: #f3eee5;
  --bg-strong: #e8e0d1;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: #fffaf2;
  --surface-muted: rgba(255, 250, 242, 0.5);
  --text: #1d2331;
  --text-soft: #515a72;
  --text-mute: #7c84a0;

  --primary: #4f4694;
  --primary-strong: #352e6b;
  --primary-glow: rgba(79, 70, 148, 0.32);
  --accent: #d49a57;
  --accent-strong: #a87b3f;
  --accent-soft: rgba(212, 154, 87, 0.2);

  --border: rgba(53, 46, 107, 0.14);
  --border-strong: rgba(53, 46, 107, 0.22);
  --hairline: rgba(255, 255, 255, 0.55);

  --shadow-xs: 0 2px 6px rgba(53, 46, 107, 0.06);
  --shadow-soft: 0 10px 28px rgba(53, 46, 107, 0.09);
  --shadow: 0 22px 60px rgba(53, 46, 107, 0.12);
  --shadow-lg: 0 32px 80px rgba(53, 46, 107, 0.18);

  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius: 22px;
  --radius-lg: 28px;
  --content-width: 1240px;

  --font-body: "Inter", "Aptos", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Georgia", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dock-h: 76px;
  --dock-h-mobile: 70px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(60% 50% at 10% 0%, rgba(212, 154, 87, 0.2), transparent 70%),
    radial-gradient(55% 55% at 95% 8%, rgba(79, 70, 148, 0.18), transparent 70%),
    radial-gradient(45% 40% at 50% 100%, rgba(212, 154, 87, 0.14), transparent 70%),
    linear-gradient(180deg, #faf6ee 0%, var(--bg) 50%, #ece3d2 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: calc(var(--dock-h) + 28px);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, ul, ol { margin-top: 0; }

.page-shell {
  min-height: 100vh;
  position: relative;
  overflow: clip;
}
.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}
.page-shell::before {
  top: -180px; right: -160px;
  background: radial-gradient(circle, rgba(212, 154, 87, 0.42), transparent 70%);
}
.page-shell::after {
  bottom: -180px; left: -160px;
  background: radial-gradient(circle, rgba(79, 70, 148, 0.32), transparent 70%);
}

.container {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 60;
  margin: 14px auto 0;
  width: min(calc(100% - 2rem), var(--content-width));
  border-radius: 999px;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.82), rgba(255, 252, 247, 0.62));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}

.site-header > .container { width: 100%; padding: 0 1.1rem; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-xs);
  background: var(--surface-strong);
}
.brand-copy { display: grid; gap: 0.1rem; }
.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary-strong);
  letter-spacing: 0.005em;
}
.brand-subtitle {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255, 250, 242, 0.85);
  color: var(--text);
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary-strong);
  background: rgba(79, 70, 148, 0.08);
}

.site-nav a.is-active {
  color: var(--primary-strong);
  background: rgba(79, 70, 148, 0.12);
}

.site-nav a.header-cta,
.header-cta {
  background: linear-gradient(140deg, var(--primary), var(--primary-strong));
  color: #fdfaf2;
  box-shadow: 0 8px 22px var(--primary-glow);
  margin-left: 0.4rem;
}
.site-nav a.header-cta:hover,
.site-nav a.header-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px var(--primary-glow);
  color: #fdfaf2;
}

/* ---------- Main ---------- */
.main-content { padding: 1.6rem 0 3rem; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  align-items: stretch;
  padding: 2.8rem 0 1.6rem;
}

.hero-copy,
.filters-panel,
.video-card,
.footer-shell,
.resource-banner {
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.hero-copy,
.filters-panel,
.resource-banner { padding: 1.7rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 154, 87, 0.18);
}

.hero h1 {
  margin: 1rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.2vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #182030;
}

.hero p,
.hero li,
.footer-shell p,
.footer-shell li { color: var(--text-soft); }

.hero-actions,
.network-links,
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.button-primary {
  background: linear-gradient(140deg, var(--primary), var(--primary-strong));
  color: #fdfaf2;
  box-shadow: 0 10px 26px var(--primary-glow);
}
.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px var(--primary-glow);
}

.button-secondary {
  background: rgba(255, 250, 242, 0.85);
  color: var(--primary-strong);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}
.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-2px);
  background: #fffaf2;
  box-shadow: var(--shadow-soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.4rem;
}
.hero-stat {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease);
}
.hero-stat:hover { transform: translateY(-2px); }
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--primary-strong);
  letter-spacing: -0.02em;
}

/* ---------- Sections ---------- */
.section { padding: 1.6rem 0; }
.section-header { margin-bottom: 1.2rem; max-width: 760px; }
.section-header h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #182030;
}
.section-header p { color: var(--text-soft); font-size: 1.04rem; margin: 0; }

/* ---------- Filters ---------- */
.filters-panel {
  display: grid;
  gap: 1rem;
}
.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}
.search-row input {
  width: 100%;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  font: inherit;
  color: var(--text);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.search-row input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 70, 148, 0.14);
}

.chip {
  background: rgba(255, 253, 248, 0.84);
  border-color: var(--border);
  color: var(--primary-strong);
  cursor: pointer;
  font-size: 0.92rem;
  padding: 0.75rem 1.1rem;
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.chip.is-active {
  background: linear-gradient(140deg, var(--primary), var(--primary-strong));
  color: #fdfaf2;
  border-color: transparent;
  box-shadow: 0 8px 20px var(--primary-glow);
}

/* ---------- Video grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}
.video-card {
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.video-card.is-hidden { display: none; }
.video-frame {
  aspect-ratio: 16 / 9;
  background: #2c2849;
  position: relative;
  overflow: hidden;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.video-body {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.video-tag {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(79, 70, 148, 0.1);
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(79, 70, 148, 0.16);
}

.video-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary-strong);
  line-height: 1.25;
}
.video-card p { margin: 0; color: var(--text-soft); }

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.2rem;
}
.resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--border-strong);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.resource-link:hover { transform: translateY(-2px); background: #fffaf2; }

/* ---------- Resource banner ---------- */
.resource-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.4rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(232, 224, 252, 0.65));
}
.resource-banner::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.resource-banner h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary-strong);
}

/* ---------- Footer ---------- */
.footer-shell {
  padding: 1.8rem;
  margin-top: 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr 1fr;
  gap: 1.2rem;
}
.footer-title {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary-strong);
}
.footer-list,
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.footer-list a:hover { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 3px; }
.legal-list strong { color: var(--primary-strong); }

.anpc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding-top: 1.2rem;
  margin-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.anpc-links a {
  padding: 0.5rem;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.anpc-links a:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.anpc-links img { width: 180px; }

.footer-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.92rem;
  text-align: center;
}

/* =========================================================
   Subdomain dock (Windows 11 style taskbar)
   ========================================================= */
.subdomain-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 200;
  pointer-events: none;
  animation: dockRise 0.7s var(--ease) 0.15s both;
}

@keyframes dockRise {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.dock-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.78), rgba(255, 252, 247, 0.55));
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 -1px 0 rgba(53, 46, 107, 0.05) inset,
    0 18px 50px rgba(53, 46, 107, 0.18),
    0 4px 12px rgba(53, 46, 107, 0.08);
}

.dock-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem 0.55rem 0.7rem;
  border-radius: 16px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.92rem;
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  white-space: nowrap;
}

.dock-item:hover,
.dock-item:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 252, 247, 0.85);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(53, 46, 107, 0.1);
}

.dock-item.is-active {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(255, 252, 247, 0.75));
  color: var(--primary-strong);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 16px rgba(53, 46, 107, 0.12);
}

.dock-item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 10px var(--primary-glow);
}

.dock-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
}
.dock-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.dock-item[data-key="ssm"] .dock-icon       { background: linear-gradient(140deg, rgba(47, 111, 109, 0.2), rgba(200, 155, 95, 0.2)); color: #214e4f; }
.dock-item[data-key="energie"] .dock-icon   { background: linear-gradient(140deg, rgba(31, 132, 84, 0.2), rgba(232, 194, 92, 0.22)); color: #1c6a44; }
.dock-item[data-key="podcasturi"] .dock-icon{ background: linear-gradient(140deg, rgba(79, 70, 148, 0.22), rgba(212, 154, 87, 0.22)); color: #352e6b; }

.dock-divider {
  width: 1px;
  height: 28px;
  margin: 0 0.15rem;
  background: linear-gradient(180deg, transparent, rgba(53, 46, 107, 0.18), transparent);
}

.dock-home {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.7);
  color: var(--text-soft);
  pointer-events: auto;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.dock-home:hover { transform: translateY(-3px); background: #fffaf2; color: var(--primary-strong); }
.dock-home svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero,
  .resource-banner,
  .footer-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(var(--dock-h-mobile) + 18px); }

  .container { width: min(calc(100% - 1.2rem), var(--content-width)); }

  .site-header { top: 10px; border-radius: 22px; }
  .header-inner {
    flex-wrap: wrap;
    padding: 0.7rem 0;
    min-height: 56px;
  }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.3rem;
    gap: 0.2rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 0.85rem 1rem; }
  .site-nav a.header-cta { margin: 0.3rem 0 0.1rem; }

  .hero { padding-top: 1.6rem; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 3.2rem); }

  .hero-stats,
  .search-row { grid-template-columns: 1fr; }

  .brand-subtitle { display: none; }

  .subdomain-dock { bottom: 12px; }
  .dock-inner { padding: 0.35rem; gap: 0.2rem; border-radius: 18px; }
  .dock-item { padding: 0.45rem; }
  .dock-item .dock-label { display: none; }
  .dock-item.is-active .dock-label {
    display: inline;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -28px;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(53, 46, 107, 0.92);
    color: #fffaf2;
    font-size: 0.74rem;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(53, 46, 107, 0.2);
  }
  .dock-home { width: 34px; height: 34px; }
  .dock-divider { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
