/* ============================================================================
 * Presentation Library — internal launcher for GMH personnel
 * ========================================================================== */

:root {
  --voda-blue: #1FB0F1;
  --voda-blue-soft: #66CAF5;
  --voda-blue-ice: #D6EBF5;
  --navy: #0E2640;
  --navy-deep: #081A2E;
  --navy-text: #1A2F4A;
  --text: #2A384C;
  --text-muted: #6B7A8E;
  --text-faint: #9AA6B6;
  --panel-line: #E3E8EE;
  --white: #FFFFFF;
  --green: #2ECC71;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: #F5F7F9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

kbd {
  display: inline-block;
  background: #E3E8EE;
  color: var(--navy-text);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #D0D7E0;
  vertical-align: 1px;
}

/* --------------------------------------------------------------------------
   Site header — slim, utilitarian
   -------------------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--white);
  border-bottom: 1px solid var(--panel-line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand .title { font-size: 14px; font-weight: 600; color: var(--navy-text); line-height: 1.2; }
.brand .meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; letter-spacing: 0.04em; }

.header-meta { font-size: 12px; color: var(--text-muted); }
.lib-status { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.02em; }
.lib-status .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.18);
}

/* --------------------------------------------------------------------------
   Hub hero band — full-bleed image with overlay copy
   -------------------------------------------------------------------------- */

.hub-hero {
  position: relative;
  width: 100%;
  height: 64vh;
  min-height: 420px;
  max-height: 720px;
  overflow: hidden;
  background: var(--navy-deep);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hub-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 26, 46, 0.55) 0%, rgba(8, 26, 46, 0) 30%, rgba(8, 26, 46, 0) 50%, rgba(8, 26, 46, 0.85) 100%);
  z-index: 1;
}
.hub-hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  padding: 40px 32px 48px;
  color: #fff;
}
.hub-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--voda-blue-soft);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hub-hero-title {
  font-size: 52px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: #fff;
  max-width: 760px;
}
.hub-hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--voda-blue-soft);
}
.hub-hero-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin: 0;
  max-width: 620px;
}

/* When the hero image fails to load, fall back to a brand gradient + the
   same copy stays visible. */
.hub-hero.hero-fallback {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 45%, #1A2540 100%);
}
.hub-hero.hero-fallback::after {
  content: 'Hero image not yet uploaded · drop file at assets/hub-hero.png';
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  font-weight: 500;
}

@media (max-width: 720px) {
  .hub-hero { height: 52vh; min-height: 340px; }
  .hub-hero-title { font-size: 34px; }
  .hub-hero-sub { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   Hub layout
   -------------------------------------------------------------------------- */

.hub {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.hub-head {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--panel-line);
}
.hub-head h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.hub-head p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Library — vertical stack of presentation cards
   -------------------------------------------------------------------------- */

.library { display: flex; flex-direction: column; gap: 28px; }

/* --------------------------------------------------------------------------
   Presentation card
   -------------------------------------------------------------------------- */

.pcard {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--white);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(14, 38, 64, 0.04), 0 4px 12px rgba(14, 38, 64, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.pcard:hover {
  box-shadow: 0 4px 8px rgba(14, 38, 64, 0.06), 0 12px 32px rgba(31, 176, 241, 0.12);
  transform: translateY(-1px);
}

/* Visual panel (left, clickable) */
.pcard-visual {
  position: relative;
  background: linear-gradient(135deg, var(--voda-blue) 0%, #1788BD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  text-decoration: none;
}
.pcard-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18) 0%, transparent 50%);
}
.pcard-watermark img {
  width: 65%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: transform 0.35s ease;
  position: relative;
}
.pcard-visual:hover .pcard-watermark img { transform: scale(1.04); }
.pcard-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  padding: 5px 10px;
  background: rgba(0,0,0,0.18);
  border-radius: 3px;
  backdrop-filter: blur(4px);
}
.pcard-tag-corner {
  position: absolute;
  bottom: 18px;
  right: 18px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* Hero-photo variant — visual panel uses a real product photo instead of the watermark */
.pcard-visual.hero-photo {
  background: #0E2640;
  overflow: hidden;
}
.pcard-visual.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 26, 46, 0.55) 0%, rgba(8, 26, 46, 0) 28%, rgba(8, 26, 46, 0) 68%, rgba(8, 26, 46, 0.7) 100%);
  z-index: 1;
  pointer-events: none;
}
.pcard-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.pcard-visual.hero-photo:hover .pcard-hero { transform: scale(1.04); }
.pcard-visual.hero-photo .pcard-tag,
.pcard-visual.hero-photo .pcard-tag-corner {
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pcard-visual.hero-photo .pcard-tag-corner {
  padding: 5px 10px;
  border-radius: 3px;
  color: #fff;
}

/* Body */
.pcard-body {
  padding: 28px 32px 28px;
  display: flex;
  flex-direction: column;
}
.pcard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pcard-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--voda-blue);
  font-weight: 600;
}
.pcard-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
}
.pcard-status .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}
.pcard-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-text);
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.pcard-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 20px;
}

/* Specs (label/value rows) */
.pcard-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  margin: 0 0 24px;
  padding: 16px 20px;
  background: #F8FAFB;
  border-radius: 4px;
  border: 1px solid #ECEFF3;
}
.pcard-specs > div { display: flex; gap: 12px; align-items: baseline; }
.pcard-specs dt {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  font-weight: 600;
  text-transform: uppercase;
  min-width: 70px;
}
.pcard-specs dd {
  margin: 0;
  font-size: 13px;
  color: var(--navy-text);
  font-weight: 500;
}

/* Actions */
.pcard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--voda-blue);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.btn-primary:hover { background: #1788BD; }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--navy-text);
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-secondary:hover {
  border-color: var(--voda-blue);
  color: var(--voda-blue);
  background: #F4FAFE;
}

.btn-text {
  margin-left: auto;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 4px;
  transition: color 0.15s;
}
.btn-text:hover { color: var(--voda-blue); }

/* Note under the card */
.hub-note {
  margin: 28px 0 0;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  letter-spacing: 0.02em;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--panel-line);
  padding: 18px 32px;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.foot-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.foot-sep { color: #C7CFDA; }

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

@media (max-width: 820px) {
  .pcard { grid-template-columns: 1fr; }
  .pcard-visual { min-height: 200px; }
  .pcard-body { padding: 24px 22px; }
  .pcard-specs { grid-template-columns: 1fr; }
  .pcard-actions { flex-direction: column; align-items: stretch; }
  .pcard-actions .btn-text { margin-left: 0; text-align: center; }
}
@media (max-width: 480px) {
  .site-header { padding: 12px 18px; }
  .hub { padding: 32px 18px 48px; }
  .hub-head h1 { font-size: 22px; }
  .foot-inner { flex-direction: column; gap: 4px; }
  .foot-sep { display: none; }
}
