/* ==========================================================================
   Data Agent Sprint - Training Portal Theme
   Author: Arki1 & Google Cloud Authorized Training Partner
   Design System: Material + Enterprise Clean Dashboard
   ========================================================================== */

:root {
  /* Brand Palette */
  --arki-blue: #3665ad;
  --arki-dark: #1e3a8a;
  --arki-navy: #0f172a;
  --arki-green: #61a229;
  
  --gcp-blue: #4285f4;
  --gcp-red: #ea4335;
  --gcp-yellow: #fbbc05;
  --gcp-green: #34a853;

  /* Neutrals */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-code: #0f172a;
  --bg-prompt: #f1f5f9;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-accent: #bfdbfe;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Accent states */
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --success-border: #a7f3d0;

  --warning-bg: #fffbeb;
  --warning-text: #92400e;
  --warning-border: #fde68a;

  --info-bg: #eff6ff;
  --info-text: #1e40af;
  --info-border: #bfdbfe;

  /* Shadows & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Nav */
.header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-arki1 {
  height: 32px;
  width: auto;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-strong);
}

.brand-logo-gcp {
  height: 24px;
  width: auto;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--arki-dark);
  letter-spacing: -0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-select {
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.lang-select:focus {
  border-color: var(--gcp-blue);
}

.btn-nav {
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-nav-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  background: transparent;
}

.btn-nav-outline:hover {
  background-color: var(--bg-canvas);
  border-color: var(--arki-blue);
  color: var(--arki-blue);
}

.btn-nav-primary {
  background-color: var(--arki-blue);
  color: var(--text-inverse);
  border: 1px solid var(--arki-blue);
}

.btn-nav-primary:hover {
  background-color: var(--arki-dark);
  border-color: var(--arki-dark);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 60px 24px;
  text-align: center;
}

.hero-container {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background-color: #dbeafe;
  color: var(--arki-dark);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--arki-navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Download Callout Card */
.starter-download-card {
  background-color: var(--bg-surface);
  border: 2px solid var(--gcp-blue);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  margin: -30px auto 40px auto;
  position: relative;
  z-index: 10;
  text-align: left;
}

.download-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.download-title-group h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--arki-navy);
  margin-bottom: 6px;
}

.download-title-group p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn-download-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--gcp-blue);
  color: var(--text-inverse);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
  transition: transform 0.15s, background-color 0.2s, box-shadow 0.2s;
}

.btn-download-primary:hover {
  background-color: #2b76f3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4);
}

.quickstart-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.quickstart-step {
  display: flex;
  gap: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #eff6ff;
  color: var(--gcp-blue);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Main Hub Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  flex: 1;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--arki-navy);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Lab Cards Grid */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.lab-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.lab-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}

.lab-card-badge {
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.badge-module0 { background-color: #f1f5f9; color: #475569; }
.badge-challenge1 { background-color: #dbeafe; color: #1e40af; }
.badge-challenge2 { background-color: #dcfce7; color: #166534; }
.badge-challenge3 { background-color: #fef3c7; color: #92400e; }
.badge-capstone { background-color: #ede9fe; color: #5b21b6; }

.lab-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.lab-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.lab-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  font-size: 0.85rem;
}

.lab-meta {
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

.lab-link-text {
  font-weight: 600;
  color: var(--arki-blue);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Facilitator Slides Card */
.slides-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--text-inverse);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.slides-banner-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.slides-banner-content p {
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 600px;
}

.btn-slides {
  background-color: var(--arki-green);
  color: var(--text-inverse);
  padding: 12px 24px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-slides:hover {
  opacity: 0.9;
}

/* ==========================================================================
   Codelab Viewer Layout (labs/index.html)
   ========================================================================== */

.codelab-layout {
  display: flex;
  min-height: calc(100vh - 65px);
}

.codelab-sidebar {
  width: 300px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 16px;
  flex-shrink: 0;
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow-y: auto;
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  padding-left: 12px;
}

.nav-lab-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-lab-item button {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s;
}

.nav-lab-item button:hover {
  background-color: var(--bg-canvas);
  color: var(--arki-blue);
}

.nav-lab-item.active button {
  background-color: #eff6ff;
  border-color: var(--border-accent);
  color: var(--arki-blue);
  font-weight: 700;
}

.step-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-lab-item.active .step-indicator {
  background-color: var(--arki-blue);
  color: var(--text-inverse);
}

.codelab-main {
  flex: 1;
  padding: 40px 48px;
  max-width: 900px;
  background-color: var(--bg-surface);
}

/* Codelab Lab Sections */
.lab-pane {
  display: none;
}

.lab-pane.active {
  display: block;
}

.lab-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.lab-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.lab-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--arki-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.lab-objective-box {
  background-color: var(--info-bg);
  border-left: 4px solid var(--gcp-blue);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 32px;
}

.lab-objective-box h4 {
  color: var(--info-text);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lab-objective-box p {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Prompt Card & Copy Container */
.prompt-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  margin: 24px 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.prompt-card-header {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prompt-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}

.btn-copy.copied {
  background-color: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
}

.prompt-card-body {
  padding: 18px 20px;
}

.prompt-text {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: inherit;
}

/* Explainable Agentic & MCP Callout */
.agentic-explain-box {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
}

.explain-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--arki-navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.explain-content {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mcp-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mcp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: #e0f2fe;
  color: #0369a1;
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

/* GCP Console Checkpoint Callout */
.gcp-checkpoint-box {
  background-color: var(--warning-bg);
  border-left: 4px solid var(--gcp-yellow);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

.gcp-checkpoint-box h4 {
  color: var(--warning-text);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gcp-checkpoint-box p {
  color: #78350f;
  font-size: 0.9rem;
  line-height: 1.5;
}

.gcp-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: #92400e;
  font-weight: 600;
  text-decoration: underline;
}

/* Navigation Footer */
.lab-navigation-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  margin-top: 48px;
}

.btn-lab-nav {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-lab-nav:hover {
  background-color: var(--bg-canvas);
  border-color: var(--arki-blue);
  color: var(--arki-blue);
}

.btn-lab-nav-primary {
  background-color: var(--arki-blue);
  color: var(--text-inverse);
  border-color: var(--arki-blue);
}

.btn-lab-nav-primary:hover {
  background-color: var(--arki-dark);
  border-color: var(--arki-dark);
  color: var(--text-inverse);
}

/* Global Footer */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}
