/* ═══════════════════════════════════════════════
   infonomic.id — komunitas.css
   ═══════════════════════════════════════════════ */

/* ── Top Nav ── */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--gold);
}

.back-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.topnav-brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* ── Hero ── */
.kom-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 24px 40px;
  text-align: center;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

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

.kom-hero-glow {
  position: absolute;
  width: 700px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(181, 55, 42, 0.12) 0%, transparent 70%);
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

/* subtle grid */
.kom-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.kom-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.kom-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  animation: fadeUp 0.5s 0.05s both;
}

.kom-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 18px;
  animation: fadeUp 0.5s 0.12s both;
}

.kom-title em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.kom-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 18px;
  animation: fadeUp 0.5s 0.2s both;
}

.kom-badge-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  animation: fadeUp 0.5s 0.28s both;
}

.kom-badge {
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(201, 168, 76, 0.04);
  transition: border-color 0.2s, color 0.2s;
}

.kom-badge:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── About ── */
.kom-about {
  padding: 0 32px 60px;
}

.kom-about-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* reuse ornament from style.css */
.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 32px;
  width: 180px;
}

.ornament-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.ornament-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.kom-about-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--cream);
  margin-bottom: 16px;
}

.kom-about-text strong {
  color: var(--gold);
}

.kom-about-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}

.kom-about-note strong {
  color: var(--gold2);
}

/* ── Rooms ── */
.kom-rooms {
  padding: 0 32px 80px;
}

.kom-rooms-inner {
  max-width: 860px;
  margin: 0 auto;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.label-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.label-text {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.room-card {
  position: relative;
  background: var(--ink);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: background 0.3s;
  animation: fadeUp 0.45s var(--delay, 0s) both;
}

.room-card:hover {
  background: rgba(201, 168, 76, 0.04);
}

/* bottom-right corner accent */
.room-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 28px 28px;
  border-color: transparent transparent rgba(201, 168, 76, 0.12) transparent;
  transition: border-width 0.3s;
}

.room-card:hover .room-corner {
  border-width: 0 0 40px 40px;
  border-color: transparent transparent rgba(201, 168, 76, 0.2) transparent;
}

.room-icon {
  font-size: 28px;
  line-height: 1;
}

.room-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.room-tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.room-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}

.room-desc {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 4px;
}

/* ── CTA ── */
.kom-cta {
  padding: 60px 32px 80px;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
}

.kom-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(201, 168, 76, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.kom-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
}

.cta-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.cta-btn:hover::before {
  transform: translateX(0);
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink);
  position: relative;
  z-index: 1;
}

/* ── Screenshots gallery for each room/group ── */
.kom-screenshots {
  padding: 22px 22px 24px;
}
.kom-screenshots .section-label { margin-bottom: 18px; }
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.screenshots-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}

.cta-btn span,
.cta-btn {
  position: relative;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .kom-hero {
    padding: 48px 20px 52px;
  }

  .kom-rooms,
  .kom-about,
  .kom-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .topnav {
    padding: 14px 20px;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }
}

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