/* ========================================
   Topics — long-form blog-style page
   ======================================== */

.topics-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(11, 17, 24, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(94, 234, 212, 0.06);
}

.topics-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--soft-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.topics-brand .logo-leaf {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(94, 234, 212, 0.5));
}

.topics-back {
  color: var(--subtle-gray);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.3px;
  transition: var(--transition-base);
}
.topics-back:hover {
  color: var(--soft-white);
}

.topics-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  position: relative;
  z-index: 1;
}

/* Hero */
.topics-hero {
  text-align: center;
  margin-bottom: 48px;
}

.topics-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--teal-glow);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.topics-h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--soft-white);
  margin: 0 0 20px;
}

.topics-lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--subtle-gray);
  font-weight: 300;
  max-width: 580px;
  margin: 0 auto;
}

/* ─── Grouped TOC — categorized chip cards ─── */
.topics-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 0 0 64px;
}

.topics-toc-group {
  padding: 22px 22px 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.topics-toc-group::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(94, 234, 212, 0.05), transparent 60%);
  pointer-events: none;
}

.topics-toc-heading {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal-glow);
  position: relative;
  z-index: 1;
}

.topics-toc-chips {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  z-index: 1;
}

.topics-toc-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--soft-white);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.1px;
  transition: var(--transition-base);
  cursor: pointer;
}

.topics-toc-chip:hover {
  background: linear-gradient(135deg, rgba(184, 164, 216, 0.18), rgba(94, 234, 212, 0.12));
  border-color: rgba(184, 164, 216, 0.35);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(94, 234, 212, 0.15);
}

.topics-toc-chip-emoji {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.25));
}

@media (max-width: 600px) {
  .topics-toc {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 48px;
  }
  .topics-toc-group {
    padding: 18px 18px 14px;
  }
  .topics-toc-heading {
    font-size: 10.5px;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }
  .topics-toc-chip {
    padding: 12px 14px;
    font-size: 14px;
  }
}

/* Article */
.topics-article {
  margin-bottom: 80px;
  scroll-margin-top: 80px;
}

.topics-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(184, 164, 216, 0.18), rgba(94, 234, 212, 0.18));
  border: 1px solid rgba(184, 164, 216, 0.3);
  color: var(--soft-white);
  margin-bottom: 18px;
}

.topics-tag-soon {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.3);
  color: #FFD976;
}

.topics-article h2 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--soft-white);
  margin: 0 0 26px;
}

.topics-article h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--soft-white);
  margin: 36px 0 16px;
}

.topics-article p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(226, 232, 240, 0.85);
  margin: 0 0 18px;
  font-weight: 300;
}

.topics-article p strong {
  color: var(--soft-white);
  font-weight: 500;
}

.topics-article em {
  color: var(--teal-glow);
  font-style: italic;
}

.topics-article blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(184, 164, 216, 0.05), rgba(94, 234, 212, 0.04));
  border-left: 3px solid var(--teal-glow);
  border-radius: 4px 14px 14px 4px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--soft-white);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.005em;
}

/* Steps list */
.topics-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 24px;
}

.topics-steps li {
  position: relative;
  counter-increment: step;
  padding: 18px 22px 18px 64px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.85);
}

.topics-steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--soft-purple), var(--teal-glow));
  color: var(--deep-navy);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(184, 164, 216, 0.3);
}

.topics-steps li strong {
  display: block;
  color: var(--soft-white);
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.1px;
}

/* Bullets */
.topics-bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
}

.topics-bullets li {
  position: relative;
  padding: 10px 0 10px 24px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.85);
}

.topics-bullets li::before {
  content: '🌿';
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 14px;
  filter: grayscale(0.2);
}

/* Coming soon section */
.topics-soon {
  padding: 32px;
  background: linear-gradient(140deg, rgba(184, 164, 216, 0.04), rgba(94, 234, 212, 0.03));
  border: 1px dashed rgba(184, 164, 216, 0.2);
  border-radius: 22px;
}

.topics-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.topics-soon-card {
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  text-align: center;
}

.topics-soon-icon {
  font-size: 32px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(94, 234, 212, 0.35));
}

.topics-soon-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--soft-white);
  font-weight: 500;
}

.topics-soon-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--subtle-gray);
  margin: 0;
  font-weight: 300;
}

/* Closing CTA */
.topics-cta {
  text-align: center;
  padding: 48px 28px;
  margin-top: 40px;
  background: radial-gradient(circle at center, rgba(94, 234, 212, 0.08), transparent 70%);
  border-radius: 22px;
}

.topics-cta h2 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 300;
  color: var(--soft-white);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.topics-cta p {
  font-size: 15px;
  color: var(--subtle-gray);
  margin: 0 0 28px;
  font-weight: 300;
}

.topics-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 600px) {
  .topics-main { padding: 40px 18px 80px; }
  .topics-steps li { padding: 16px 18px 16px 56px; }
  .topics-steps li::before { left: 14px; top: 16px; width: 28px; height: 28px; font-size: 12px; }
  .topics-soon { padding: 22px 18px; }
}

/* ========================================
   Auth gate — overlay shown to logged-out
   visitors on /topics.html
   ======================================== */

.topics-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(11, 17, 24, 0.85), rgba(0, 0, 0, 0.95));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topics-auth-gate.open {
  display: flex;
  animation: tagFade 0.35s ease;
}

@keyframes tagFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.topics-auth-gate-card {
  max-width: 460px;
  width: 100%;
  padding: 44px 36px 36px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.97), rgba(11, 17, 24, 0.99));
  border: 1px solid rgba(184, 164, 216, 0.3);
  border-radius: 26px;
  text-align: center;
  color: var(--soft-white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
              0 0 90px rgba(184, 164, 216, 0.18);
  animation: tagPop 0.45s cubic-bezier(0.34, 1.5, 0.64, 1);
  position: relative;
  overflow: hidden;
}

@keyframes tagPop {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.topics-auth-gate-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(94, 234, 212, 0.06), transparent 60%);
  pointer-events: none;
}

.topics-auth-gate-lotus {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 20px rgba(94, 234, 212, 0.5));
  position: relative;
  z-index: 1;
}

.topics-auth-gate-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  padding: 5px 14px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(184, 164, 216, 0.22), rgba(94, 234, 212, 0.22));
  border: 1px solid rgba(184, 164, 216, 0.4);
  color: var(--soft-white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.topics-auth-gate-title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--soft-white);
  position: relative;
  z-index: 1;
}

.topics-auth-gate-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--subtle-gray);
  margin: 0 0 26px;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.topics-auth-gate-cta {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--soft-purple), var(--teal-glow));
  color: var(--deep-navy);
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(184, 164, 216, 0.4);
  transition: var(--transition-base);
  position: relative;
  z-index: 1;
}

.topics-auth-gate-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(184, 164, 216, 0.55),
              0 0 32px rgba(94, 234, 212, 0.25);
}

.topics-auth-gate-login {
  display: block;
  margin-top: 14px;
  color: var(--soft-white);
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
  transition: var(--transition-base);
}

.topics-auth-gate-login:hover {
  color: var(--teal-glow);
}

.topics-auth-gate-back {
  display: block;
  margin-top: 22px;
  font-size: 12px;
  color: var(--subtle-gray);
  text-decoration: none;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.topics-auth-gate-back:hover {
  color: var(--soft-white);
}

@media (max-width: 480px) {
  .topics-auth-gate-card { padding: 36px 24px 28px; }
  .topics-auth-gate-lotus { font-size: 48px; }
}

/* ========================================
   Témáink card grid (on home page)
   ======================================== */
.themes-section {
  padding: 100px 0;
  background:
    radial-gradient(circle at 20% 100%, rgba(94, 234, 212, 0.05), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(184, 164, 216, 0.05), transparent 55%);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.theme-tile {
  position: relative;
  display: block;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  text-decoration: none;
  color: var(--soft-white);
  transition: var(--transition-base);
  overflow: hidden;
}

.theme-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(94, 234, 212, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.theme-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 164, 216, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.theme-tile:hover::before { opacity: 1; }

.theme-tile-icon {
  font-size: 30px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(94, 234, 212, 0.3));
}

.theme-tile-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--soft-white);
  letter-spacing: -0.005em;
}

.theme-tile-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--subtle-gray);
  margin: 0 0 14px;
  font-weight: 300;
}

.theme-tile-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--teal-glow);
  text-transform: uppercase;
}

/* ========================================
   Newsletter signup
   ======================================== */
.newsletter-section {
  padding: 80px 0;
}

.newsletter-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 44px 36px;
  background: linear-gradient(140deg, rgba(184, 164, 216, 0.08), rgba(94, 234, 212, 0.05));
  border: 1px solid rgba(184, 164, 216, 0.2);
  border-radius: 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(94, 234, 212, 0.08), transparent 70%);
  pointer-events: none;
}

.newsletter-icon {
  font-size: 36px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 14px rgba(94, 234, 212, 0.4));
}

.newsletter-title {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--soft-white);
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.newsletter-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--subtle-gray);
  margin: 0 auto 26px;
  font-weight: 300;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  min-width: 240px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--soft-white);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition-base);
}

.newsletter-input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.5);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.08);
}

.newsletter-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--soft-purple), var(--teal-glow));
  color: var(--deep-navy);
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 14px rgba(184, 164, 216, 0.35);
}

.newsletter-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 164, 216, 0.5);
}

.newsletter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.newsletter-msg {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  min-height: 18px;
}

.newsletter-msg.success { color: var(--teal-glow); }
.newsletter-msg.error   { color: #FCA5A5; }

.newsletter-fineprint {
  margin-top: 18px;
  font-size: 11px;
  color: var(--subtle-gray);
  font-style: italic;
  position: relative;
  z-index: 1;
}
