/* EPIC-LAB WEBSITE STYLES */

/* ========== COLOUR PALETTE ========== */
:root {
  /* greys */
  --header-dark: #2d3748;
  --header-border: #1a202c;
  --text-dark: #1a202c;
  --text-body: #4a5568;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;

  /* accent colours */
  --accent-primary: #3182ce;
  --accent-hover: #2c5282;
  --accent-presentations: #9f7aea;  /* purple for presentations */
  --success: #48bb78;
  --warning: #ed8936;

  /* spacing */
  --content-max-width: 850px;
}

/* ========== GLOBAL STYLES ========== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  font-size: 16px;
}

/* monospace fonts for code */
pre, code, kbd, samp {
  font-family: "SF Mono", "Cascadia Code", "Roboto Mono", "Consolas", "Courier New", monospace;
}

/* ========== HEADER/NAVBAR ========== */
.navbar {
  background-color: var(--header-dark) !important;
  border-bottom: 3px solid var(--header-border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand,
.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
  color: #f7fafc !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-toggle:hover {
  color: #cbd5e0 !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.2s ease;
}

/* prominent presentations button */
.navbar-nav .dropdown-toggle:contains("PRESENTATIONS"),
.navbar-nav .dropdown-toggle[aria-label*="PRESENTATIONS"] {
  background-color: var(--accent-presentations) !important;
  color: white !important;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  margin: 0 8px;
  transition: all 0.2s ease;
}

.navbar-nav .dropdown-toggle:contains("PRESENTATIONS"):hover {
  background-color: #805ad5 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* ========== MAIN CONTENT ========== */
.content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
  border-bottom: 3px solid var(--accent-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.375rem;
  color: var(--header-dark);
}

/* ========== LINKS ========== */
a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ========== CODE BLOCKS ========== */
pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
}

code:not(pre code) {
  background-color: #f1f3f5;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.875em;
  color: #d73a49;
}

/* ========== TABLES ========== */
table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
}

th {
  background-color: var(--header-dark);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

tr:hover {
  background-color: #f7fafc;
}

/* ========== CALLOUT BOXES ========== */
.callout {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  border-left: 4px solid;
}

.callout-note {
  background-color: #ebf8ff;
  border-left-color: var(--accent-primary);
}

.callout-tip {
  background-color: #f0fff4;
  border-left-color: var(--success);
}

.callout-warning {
  background-color: #fffaf0;
  border-left-color: var(--warning);
}

/* ========== CARDS/BOXES ========== */
.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ========== PRESENTATION EMBED ========== */
.presentation-container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.presentation-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.presentation-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.presentation-embed {
  position: relative;
  width: 100%;
  height: 600px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.presentation-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== SIDEBAR TOC ========== */
.sidebar nav[role="doc-toc"] {
  background-color: #f7fafc;
  border-radius: 8px;
  padding: 1rem;
}

.sidebar nav[role="doc-toc"] > ul {
  font-size: 0.875rem;
}

.sidebar nav[role="doc-toc"] a {
  color: var(--text-body);
}

.sidebar nav[role="doc-toc"] a:hover,
.sidebar nav[role="doc-toc"] a.active {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ========== BUTTONS ========== */
.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ========== PRESENTATION STYLES ========== */
.embed-notice {
  text-align: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.presentation-link {
  margin-top: 1.5rem;
}

.presentation-link .btn {
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
}

/* ========== LOGOS ========== */
.logos-section {
  margin-top: 3rem;
  text-align: center;
}

.logos-section img {
  max-height: 120px;
  width: auto;
  margin: 1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logos-section img:hover {
  opacity: 1;
}

/* ========== TEAM PHOTOS ========== */
.team-member {
  margin-bottom: 3rem;
}

.team-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.team-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-color: var(--accent-primary);
}

/* Placeholder styling */
.team-photo-placeholder {
  width: 150px;
  height: 150px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--border);
  color: var(--text-light);
  font-size: 3rem;
  font-weight: 300;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .content {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }
  
  .presentation-embed {
    height: 400px;
  }
  
  .team-photo,
  .team-photo-placeholder {
    width: 120px;
    height: 120px;
  }
  
  .team-member .columns {
    flex-direction: column;
    text-align: center;
  }
  
  .team-member .column {
    width: 100% !important;
  }
}