/* =====================================================================
   AGORA landing — Greek temple with four pillars.

   Architecture (top to bottom):
     pediment  →  entablature  →  columns (pillars)  →  stylobate
                                                       ↓
                                                     captions (museum-style)

   Two of the four pillars (Synthesis, Survey) are live anchors;
   the other two are disabled placeholders.
   ===================================================================== */

:root {
  --marble:        #f6f1e5;
  --marble-shade:  #e2d9c4;
  --marble-shadow: #b6ad95;
  --marble-deep:   #8a8270;
  --sky-top:       #ebe4d3;
  --sky-bottom:    #d8cdb3;
  --text:          #2e2a22;
  --text-muted:    #7a705e;
  --accent:        #b88c2f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

.agora-body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255,255,255,0.45) 0%, transparent 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

/* UzprasAI back-link — corner of the temple page, no chrome */
.agora-home-parent {
  position: absolute;
  top: 1.1rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  transition: color 0.15s ease;
  z-index: 10;
}
.agora-home-parent:hover,
.agora-home-parent:focus-visible {
  color: var(--text);
  outline: none;
}
.agora-home-parent-arrow {
  font-size: 1rem;
  line-height: 0.9;
  position: relative;
  top: -1px;
}
@media (max-width: 540px) {
  .agora-home-parent { top: 0.8rem; left: 1rem; font-size: 0.72rem; }
}

.agora-main {
  width: 100%;
  max-width: 880px;
  text-align: center;
}

/* ---------------------------------------------------------------------
   Temple structure
   --------------------------------------------------------------------- */

.agora-temple {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* ---- Pediment (triangle with engraved AGORA) ---- */
.agora-pediment {
  width: 100%;
  height: 130px;
  position: relative;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.10));
}
.agora-pediment-inner {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg,
      rgba(255,255,255,0.65) 0%,
      rgba(255,255,255,0) 38%),
    linear-gradient(180deg, var(--marble) 0%, var(--marble-shade) 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.4rem;
}
.agora-pediment-text {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: 0.45em;
  /* engraved feel: light highlight + deeper shadow */
  color: var(--text);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.55),
    0 -1px 0 rgba(0,0,0,0.18);
  margin-left: 0.45em; /* compensate for trailing letter-spacing */
  user-select: none;
}

/* ---- Entablature (horizontal beam under pediment) ---- */
.agora-entablature {
  height: 32px;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.4) 0%,
      rgba(255,255,255,0) 50%),
    linear-gradient(180deg, var(--marble) 0%, var(--marble-shade) 100%);
  border-top: 2px solid var(--marble-shadow);
  border-bottom: 2px solid var(--marble-shadow);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 4px 10px rgba(0,0,0,0.07);
  position: relative;
}
/* Triglyphs — small vertical grooves in the frieze */
.agora-entablature::after {
  content: "";
  position: absolute;
  inset: 6px 4% 6px 4%;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 56px,
    rgba(0,0,0,0.18) 56px,
    rgba(0,0,0,0.18) 58px,
    transparent 58px,
    transparent 60px,
    rgba(0,0,0,0.18) 60px,
    rgba(0,0,0,0.18) 62px
  );
  opacity: 0.4;
}

/* ---- Columns row ---- */
.agora-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 3%;
  gap: 1.2rem;
}

.agora-column {
  flex: 1;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.agora-column:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.14));
}
.agora-column-disabled {
  cursor: not-allowed;
  opacity: 0.4;
  filter: grayscale(0.4);
}
.agora-column-disabled:hover {
  transform: none;
  filter: grayscale(0.4) opacity(0.4);
}

.agora-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Capital — wider block at the top of each shaft */
.agora-capital {
  width: 100%;
  height: 16px;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.5) 0%,
      rgba(255,255,255,0) 60%),
    linear-gradient(180deg, var(--marble) 0%, var(--marble-shade) 100%);
  border-radius: 2px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.10);
}

/* Shaft — long fluted body */
.agora-shaft {
  width: 78%;
  height: 320px;
  background:
    /* fluting — vertical channels */
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 9px,
      rgba(0,0,0,0.04) 9px,
      rgba(0,0,0,0.04) 10px,
      transparent 10px,
      transparent 11px,
      rgba(0,0,0,0.07) 11px,
      rgba(0,0,0,0.07) 12px
    ),
    /* subtle vertical highlight on the left edge */
    linear-gradient(90deg,
      rgba(255,255,255,0.4) 0%,
      rgba(255,255,255,0) 18%,
      rgba(0,0,0,0) 82%,
      rgba(0,0,0,0.10) 100%),
    /* base marble */
    linear-gradient(180deg, var(--marble) 0%, var(--marble-shade) 100%);
}

/* Base — small block at the bottom */
.agora-base {
  width: 100%;
  height: 20px;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, var(--marble-shade) 0%, var(--marble-shadow) 100%);
  border-radius: 2px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.10);
}

/* ---- Stylobate (the platform/steps the temple sits on) ---- */
.agora-stylobate {
  height: 22px;
  margin-top: 4px;
  background:
    linear-gradient(180deg,
      var(--marble-shadow) 0%,
      var(--marble-deep) 100%);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.agora-stylobate::after {
  content: "";
  display: block;
  height: 10px;
  margin: 4px -1.5% 0;
  background: linear-gradient(180deg, var(--marble-deep) 0%, #6a614f 100%);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* ---------------------------------------------------------------------
   Captions row — sits below the temple, one caption per column
   --------------------------------------------------------------------- */

.agora-captions {
  display: flex;
  justify-content: space-between;
  padding: 1.75rem 3% 0;
  gap: 1.2rem;
}
.agora-caption {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: .4rem .3rem;
  transition: color 0.2s ease;
}
.agora-caption:hover {
  color: var(--accent);
}
.agora-caption-name {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}
.agora-caption-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
  text-transform: lowercase;
}
.agora-caption-disabled {
  color: var(--text-muted);
  opacity: 0.55;
}
.agora-caption-disabled:hover {
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 720px) {
  .agora-body { padding: 1.5rem 0.6rem; }
  .agora-pediment { height: 92px; }
  .agora-pediment-text { font-size: 1.6rem; letter-spacing: 0.35em; }
  .agora-entablature { height: 22px; }
  .agora-columns { padding: 0 2%; gap: 0.5rem; }
  .agora-shaft { height: 220px; }
  .agora-capital, .agora-base { height: 14px; }
  .agora-stylobate { height: 16px; }
  .agora-stylobate::after { height: 7px; }
  .agora-captions { padding: 1.1rem 2% 0; gap: 0.5rem; }
  .agora-caption-name { font-size: 0.95rem; letter-spacing: 0.04em; }
  .agora-caption-sub { font-size: 0.65rem; }
}

@media (max-width: 420px) {
  .agora-pediment-text { font-size: 1.25rem; letter-spacing: 0.25em; }
  .agora-shaft { height: 170px; }
  .agora-caption-name { font-size: 0.8rem; }
  .agora-caption-sub { font-size: 0.6rem; }
}
