/* 
  Shared Presentation Design System 
  XD × VERRA | Thailand Plastic Credit Programme
*/

@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; src: url('../fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: italic; src: url('../fonts/barlow-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; src: url('../fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; src: url('../fonts/barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; src: url('../fonts/barlow-condensed-800.woff2') format('woff2'); }

:root {
  --deep-ocean: #0A1628;
  --off-white: #F7F8FA;
  --teal: #00A896;
  --steel: #1C5F8A;
  --amber: #F4A020;
  --charcoal: #1A1A2E;
  --slate: #5A6475;
  --light-steel: #D8E2ED;
  --white: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--deep-ocean);
  color: var(--charcoal);
}

.pres {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.slide.prev {
  opacity: 0;
  transform: translateX(-40px);
}

.slide-light { background: var(--off-white); }
.slide-dark { background: var(--deep-ocean); }

/* Progress bar */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.4s ease;
  z-index: 200;
  box-shadow: 0 0 8px rgba(0,168,150,0.6);
}

/* Navigation */
.nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 100;
  background: rgba(10,22,40,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  padding: 8px 16px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.nav.hidden { opacity: 0; pointer-events: none; }

.page-selector {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  display: none;
  color: white;
  font-family: 'Barlow', sans-serif;
}

.page-selector.active { display: block; }

.page-selector .ps-input {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--teal);
  text-align: center;
  margin-bottom: 12px;
}

.page-selector .ps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-selector .ps-item {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: rgba(255,255,255,0.5);
  transition: background 0.15s;
}

.page-selector .ps-item:hover { background: rgba(255,255,255,0.08); }
.page-selector .ps-item.match { color: white; background: rgba(0,168,150,0.2); }

.page-selector .ps-item .ps-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  min-width: 24px;
  color: var(--teal);
}

.nav-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: rgba(0,168,150,0.25);
  border-color: var(--teal);
}

.slide-counter {
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  min-width: 54px;
  text-align: center;
}

.slide-title-nav {
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Master elements */
.master {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.master-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.06em;
}

.master-logo img {
  height: 22px;
  width: auto;
}

.slide-dark .master-logo img {
  filter: brightness(0) invert(1);
}

.master-section {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--slate);
  text-transform: uppercase;
}

.master-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.master-conf { font-size: 9px; color: var(--slate); letter-spacing: 0.04em; }
.master-num { font-size: 9px; color: var(--slate); font-weight: 600; }

/* Content */
.content {
  position: absolute;
  inset: 50px 40px 44px;
}

.slide-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: inherit;
  line-height: 1.15;
  margin-bottom: 6px;
}
.theme-dark .slide-title, .slide-dark .slide-title { color: var(--white); }

.title-rule {
  width: 100%;
  height: 2px;
  background: var(--teal);
  margin-bottom: 16px;
}

/* Divider slides */
.divider-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.divider-rule {
  width: 220px;
  height: 2px;
  background: var(--teal);
}

.divider-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.divider-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 50px;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Components: Credential cards */
.cred-card {
  border-left: 3px solid var(--teal);
  padding: 10px 16px;
  background: white;
  margin-bottom: 0;
}

.cred-card-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: var(--charcoal);
  line-height: 1;
}

.cred-card-label {
  font-size: 11px;
  color: var(--slate);
}

/* Components: Icon rows */
.icon-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
}

.icon-row-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.icon-row-text p {
  font-size: 11px;
  color: var(--slate);
  line-height: 1.45;
}

/* Components: Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border-left: 3px solid var(--teal);
}

.data-table th {
  background: var(--steel);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 12px;
  text-align: left;
}

.data-table td {
  padding: 6px 12px;
  font-size: 11.5px;
  color: var(--charcoal);
  vertical-align: top;
  line-height: 1.45;
}

.data-table tr:nth-child(even) td { background: rgba(216,226,237,0.3); }
.data-table tr:nth-child(odd) td { background: white; }

.col-bold { font-weight: 600; color: var(--steel) !important; }
.row-highlight td { background: rgba(216,226,237,0.5) !important; font-weight: 700; }
.row-highlight .col-bold { color: var(--steel) !important; }

/* Components: Barrier grid */
.barrier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.barrier-card {
  border: 1px solid var(--light-steel);
  border-radius: 6px;
  padding: 14px 16px;
  background: white;
  position: relative;
  overflow: hidden;
}

.barrier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
}

.barrier-num {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--amber);
  opacity: 0.7;
}

.barrier-icon { margin-bottom: 8px; }

.barrier-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.barrier-card p {
  font-size: 11px;
  color: var(--slate);
  line-height: 1.5;
}

/* Roadmap specific components */
.ms-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(216,226,237,0.6);
}

.ms-row:last-child { border-bottom: none; }

.ms-code {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--teal);
  min-width: 56px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.ms-body h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.ms-body p {
  font-size: 10.5px;
  color: var(--slate);
  line-height: 1.45;
}

.stage-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light-steel);
}

.stage-meta .stage-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: var(--amber);
  line-height: 1;
}

.stage-meta .stage-duration {
  font-size: 10px;
  font-weight: 700;
  color: var(--steel);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(28,95,138,0.08);
  border-radius: 3px;
}

.stage-meta .stage-count {
  font-size: 10px;
  color: var(--slate);
  font-style: italic;
}

/* Utilities */
.bottom-statement {
  position: absolute;
  bottom: 40px; left: 40px; right: 40px;
  padding-top: 10px;
  border-top: 1px solid var(--light-steel);
  font-style: italic;
  font-size: 12px;
  color: var(--slate);
  text-align: center;
}

.amber-banner {
  background: var(--amber);
  padding: 12px 20px;
  text-align: center;
}

.amber-banner p {
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  color: var(--charcoal);
}

.feature-card {
  border-left: 3px solid var(--amber);
  padding: 10px 14px;
  background: white;
}

.feature-card h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 11px;
  color: var(--slate);
  line-height: 1.45;
}

.key-hint {
  position: fixed;
  bottom: 56px;
  right: 20px;
  font-size: 9px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.06em;
}
/* Hub & Dashboard Specific Styles */
.theme-dark {
  background: var(--deep-ocean);
  color: var(--white);
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.logo-group img {
  height: 60px;
  width: auto;
}

.logo-separator {
  font-size: 32px;
  font-weight: 300;
  color: var(--teal);
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 8vw, 80px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--white);
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.9;
}

.hub-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  height: 100%;
  padding: 0 40px;
}

.slide-tag {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.slide-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--light-steel);
  margin-bottom: 40px;
  max-width: 500px;
}

.viz-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  aspect-ratio: 1;
}

.viz-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viz-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.4) 0%, rgba(0,168,150,0.1) 100%);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background: var(--white);
  color: var(--deep-ocean);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,168,150,0.3);
}

.download-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.download-link:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--teal);
  transform: translateX(6px);
}

.download-link .icon {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  padding: 4px 8px;
  background: var(--teal);
  border-radius: 4px;
  font-size: 12px;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(0,168,150,0.1) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(28,95,138,0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -2;
}

/* Hub Action Layout & Button Styles */
.hub-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}

.btn-secondary {
  background: var(--steel);
  color: var(--white);
  border: none;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--steel);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(28,95,138,0.3);
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
  body {
    overflow: auto; /* Allow scrolling on mobile if content exceeds viewport */
  }

  .presentation-container {
    height: auto;
  }

  .slide {
    position: relative;
    opacity: 1;
    transform: none;
    height: auto;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    align-items: center;
  }

  .hub-split {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0;
    text-align: center;
  }

  .viz-side {
    order: -1; /* Move image above text on mobile */
  }

  .slide-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hub-actions {
    flex-direction: column-reverse;
    width: 100%;
    align-items: stretch;
    gap: 12px;
  }

  .hub-actions .btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
  }

  /* Swap Styles for Priority: PDF becomes Primary (Teal), Presentation becomes Secondary (Steel) */
  .hub-actions .btn-secondary {
    background: var(--teal);
  }
  .hub-actions .btn-secondary:hover {
    color: var(--teal);
  }

  .hub-actions .btn-primary {
    background: var(--steel);
  }
  .hub-actions .btn-primary:hover {
    color: var(--steel);
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .logo-group img {
    height: 40px;
  }
}
