@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #1A1A2E;
  color: #F5F5F5;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #E94560;
  text-decoration: none;
  transition: color 150ms ease, opacity 150ms ease;
}

a:hover {
  color: #F5F5F5;
  opacity: 0.9;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-shell {
  display: flex;
  flex: 1;
  margin-left: 260px;
  min-height: calc(100vh - 64px);
}

.home-shell {
  display: flex;
  flex: 1;
  margin-left: 260px;
}

/* ============================================================
   SIDEBAR NAV
   ============================================================ */
aside.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #10101f;
  border-right: 2px solid #E94560;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(229,69,96,0.2);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F5F5F5;
  font-weight: 600;
  font-size: 1.1rem;
}

.brand-link:hover {
  color: #E94560;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
}

.brand-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #F5F5F5;
}

.sidebar-search {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(229,69,96,0.15);
}

.search-form {
  display: flex;
  align-items: center;
  background: #1A1A2E;
  border: 1px solid rgba(245,245,245,0.15);
  border-radius: 4px;
  overflow: hidden;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #F5F5F5;
  font-size: 0.875rem;
  padding: 8px 10px;
  font-family: inherit;
}

.search-input::placeholder {
  color: rgba(245,245,245,0.4);
}

.search-btn {
  background: transparent;
  border: none;
  color: #E94560;
  cursor: pointer;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  min-height: 40px;
}

.search-btn:hover {
  color: #F5F5F5;
}

aside.sidebar > nav {
  flex: 1;
  padding: 12px 0;
}

aside.sidebar > nav > ul {
  display: flex;
  flex-direction: column;
}

aside.sidebar > nav > ul > li > a {
  display: block;
  padding: 12px 20px;
  color: rgba(245,245,245,0.75);
  font-size: 0.9rem;
  font-weight: 400;
  border-left: 3px solid transparent;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

aside.sidebar > nav > ul > li > a:hover,
aside.sidebar > nav > ul > li > a.active {
  color: #F5F5F5;
  border-left-color: #E94560;
  background: rgba(233,69,96,0.08);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  flex: 1;
  padding: 40px 36px;
  max-width: 820px;
  min-width: 0;
}

/* ============================================================
   RIGHT ASIDE
   ============================================================ */
.right-aside {
  width: 240px;
  flex-shrink: 0;
  padding: 40px 20px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aside-block {
  background: #10101f;
  border-bottom: 3px solid #E94560;
  border-radius: 4px;
  padding: 18px 16px;
}

.aside-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #E94560;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.aside-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #F5F5F5;
  margin-bottom: 14px;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-list li a {
  font-size: 0.85rem;
  color: rgba(245,245,245,0.7);
  display: block;
  padding: 4px 0;
  transition: color 150ms ease;
}

.aside-list li a:hover {
  color: #E94560;
}

/* ============================================================
   ARTICLE / PROSE
   ============================================================ */
.prose-article {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.article-header-sec h1,
.article-header-sec .hero-h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  color: #F5F5F5;
  margin: 12px 0 10px;
}

.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pub-date, .mod-date {
  font-size: 0.8rem;
  color: rgba(245,245,245,0.5);
}

.prose-content {
  color: rgba(245,245,245,0.88);
  font-size: 1rem;
  line-height: 1.8;
}

.prose-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: #F5F5F5;
  border-left: 4px solid #E94560;
  padding-left: 12px;
}

.prose-content h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 20px 0 10px;
  color: #F5F5F5;
}

.prose-content p {
  margin-bottom: 14px;
}

.prose-content ul, .prose-content ol {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}

.prose-content ol {
  list-style: decimal;
}

.prose-content li {
  margin-bottom: 6px;
}

.prose-content a {
  color: #E94560;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-content a:hover {
  color: #F5F5F5;
}

.prose-content strong {
  font-weight: 600;
  color: #F5F5F5;
}

.prose-content--narrow {
  max-width: 680px;
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.sec-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #E94560;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sec-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #F5F5F5;
  margin-bottom: 20px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(245,245,245,0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: rgba(245,245,245,0.6);
}

.breadcrumb a:hover {
  color: #E94560;
}

.bc-sep {
  color: rgba(245,245,245,0.3);
}

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 45vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #10101f;
  border-radius: 4px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0.72);
  z-index: 1;
}

.hero-bg-text {
  position: absolute;
  right: -20px;
  bottom: -10px;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 600;
  color: rgba(233,69,96,0.07);
  letter-spacing: 0.05em;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 48px 48px;
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #E94560;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: #F5F5F5;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(245,245,245,0.75);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  background: #E94560;
  color: #F5F5F5;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 3px;
  min-height: 44px;
  transition: background 150ms ease;
  letter-spacing: 0.03em;
}

.hero-cta:hover {
  background: #c73550;
  color: #F5F5F5;
  opacity: 1;
}

/* ============================================================
   TOPIC CARDS (home)
   ============================================================ */
.topic-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.topic-card {
  background: #10101f;
  border-radius: 28px;
  border-bottom: 3px solid #E94560;
  transition: transform 150ms ease, border-color 150ms ease;
}

.topic-card:hover {
  transform: translateY(-2px);
  border-color: #F5F5F5;
}

.topic-card-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 18px;
  color: #F5F5F5;
}

.topic-card-link:hover {
  color: #F5F5F5;
  opacity: 1;
}

.topic-card-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.topic-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #F5F5F5;
  margin-bottom: 5px;
}

.topic-card-desc {
  font-size: 0.8rem;
  color: rgba(245,245,245,0.6);
  line-height: 1.5;
}

/* ============================================================
   ARTICLE CARDS (home)
   ============================================================ */
.art-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.art-card {
  background: #10101f;
  border-radius: 28px;
  border-bottom: 3px solid rgba(233,69,96,0.4);
  transition: border-color 150ms ease, transform 150ms ease;
}

.art-card:hover {
  border-color: #E94560;
  transform: translateY(-2px);
}

.art-card-link {
  display: block;
  padding: 20px 18px;
  color: #F5F5F5;
}

.art-card-link:hover {
  color: #F5F5F5;
  opacity: 1;
}

.art-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #F5F5F5;
}

.art-card-desc {
  font-size: 0.8rem;
  color: rgba(245,245,245,0.6);
  line-height: 1.5;
  margin-bottom: 10px;
}

.card-date {
  font-size: 0.75rem;
  color: rgba(245,245,245,0.4);
}

/* ============================================================
   HOME SECTIONS
   ============================================================ */
.home-article {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero-sec {}

.intro-sec .home-intro {
  background: #10101f;
  border-radius: 4px;
  padding: 28px 24px;
  border-left: 4px solid #E94560;
}

.topics-sec,
.articles-sec {}

/* ============================================================
   TOPIC PAGE
   ============================================================ */
.topic-desc {
  color: rgba(245,245,245,0.7);
  font-size: 1rem;
  margin-top: 8px;
}

/* DL list */
.child-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.child-dl dt {
  margin-top: 16px;
}

.child-dl dt > a {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #F5F5F5;
  padding: 10px 14px;
  background: #10101f;
  border-bottom: 2px solid #E94560;
  border-radius: 4px 4px 0 0;
  transition: color 150ms ease, background 150ms ease;
}

.child-dl dt > a:hover {
  color: #E94560;
  background: rgba(233,69,96,0.06);
}

.child-dl dd {
  font-size: 0.85rem;
  color: rgba(245,245,245,0.6);
  padding: 8px 14px 10px;
  background: rgba(16,16,31,0.5);
  border-radius: 0 0 4px 4px;
  margin-bottom: 4px;
}

.child-dl dd time {
  color: rgba(245,245,245,0.4);
  font-size: 0.78rem;
  margin-left: 8px;
}

/* ============================================================
   ARTICLE HERO
   ============================================================ */
.article-hero {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 16px;
}

.article-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* ============================================================
   BACK LINK
   ============================================================ */
.back-topic a {
  font-size: 0.875rem;
  color: rgba(245,245,245,0.6);
  padding: 8px 0;
  display: inline-block;
}

.back-topic a:hover {
  color: #E94560;
}

/* ============================================================
   TOPIC GRID LIST (about/privacy)
   ============================================================ */
.topic-grid-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-grid-list li a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: #10101f;
  border: 1px solid rgba(233,69,96,0.3);
  border-bottom: 3px solid #E94560;
  border-radius: 4px;
  font-size: 0.875rem;
  color: rgba(245,245,245,0.8);
  min-height: 44px;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.topic-grid-list li a:hover {
  color: #F5F5F5;
  background: rgba(233,69,96,0.08);
  border-color: #E94560;
  opacity: 1;
}

/* ============================================================
   TAG PAGE
   ============================================================ */
.tag-desc {
  color: rgba(245,245,245,0.7);
  font-size: 1rem;
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #10101f;
  border-top: 2px solid rgba(233,69,96,0.25);
  margin-left: 260px;
  padding: 20px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

footer > .footer-brand a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #F5F5F5;
  white-space: nowrap;
}

footer > .footer-brand a:hover {
  color: #E94560;
}

footer > nav.footer-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

footer > nav.footer-nav a {
  color: rgba(245,245,245,0.55);
  font-size: 0.82rem;
  padding: 8px 10px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 150ms ease;
}

footer > nav.footer-nav a:hover {
  color: #E94560;
}

footer > .footer-copy {
  font-size: 0.78rem;
  color: rgba(245,245,245,0.35);
  white-space: nowrap;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   MOBILE TOGGLE
   ============================================================ */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: #E94560;
  border: none;
  border-radius: 4px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #F5F5F5;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  aside.sidebar {
    transform: translateX(-100%);
    transition: transform 200ms ease;
  }

  aside.sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .sidebar-toggle {
    display: flex;
  }

  .content-shell,
  .home-shell {
    margin-left: 0;
    flex-direction: column;
  }

  footer {
    margin-left: 0;
    padding: 16px 20px;
  }

  .main-content {
    padding: 72px 20px 32px;
    max-width: 100%;
  }

  .right-aside {
    width: 100%;
    padding: 0 20px 32px;
  }

  .hero-body {
    padding: 36px 24px;
  }

  .hero-bg-text {
    font-size: 4rem;
  }

  .topic-list {
    grid-template-columns: 1fr 1fr;
  }

  .art-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .topic-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 55vw;
  }

  .hero-h1 {
    font-size: 1.5rem;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  footer > nav.footer-nav {
    gap: 0;
  }
}
