/* Aura Education Module Styles - Matched to App */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
  /* Match Tailwind Slate */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;

  /* Match Custom Aura Colors from App index.html */
  --aura-400: #38bdf8;
  --aura-500: #0ea5e9;
  --aura-600: #0284c7;

  --bg-color: var(--slate-950);
  --bg-card: var(--slate-900);
  --border-color: var(--slate-800);
  --text-primary: #ffffff;
  --text-secondary: var(--slate-400);
  --border-radius: 1.5rem;
  /* 24px - rounded-3xl */
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Ubuntu', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Header */
header {
  background-color: transparent;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--slate-300);
  text-decoration: none;
  transition: color 0.2s;
}

.brand:hover {
  color: var(--aura-400);
}

.brand svg {
  width: 20px;
  height: 20px;
}

/* Main Container */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.page-header p {
  color: var(--slate-500);
  font-size: 1.1rem;
}

/* Slide Container */
.slide-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background-color: var(--slate-900);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.slide-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Note Container */
.note-container {
  background-color: rgba(14, 165, 233, 0.1);
  border-left: 4px solid var(--aura-500);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  color: var(--slate-300);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.note-container svg {
  color: var(--aura-500);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background-color: var(--slate-950);
  margin-bottom: 2rem;
  border: 1px solid var(--slate-800);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Index Page specific */
.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.week-card {
  background-color: var(--bg-card);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.week-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--aura-500), var(--aura-400));
  opacity: 0;
  transition: opacity 0.2s;
}

.week-card:hover {
  transform: translateY(-4px);
  border-color: var(--slate-700);
  background-color: rgba(30, 41, 59, 0.8);
}

.week-card:hover::before {
  opacity: 1;
}

.week-number {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--aura-400);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: inline-block;
  background-color: rgba(14, 165, 233, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.week-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.week-desc {
  color: var(--slate-400);
  font-size: 1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  line-height: 1.6;
}

.week-link {
  color: var(--aura-400);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

/* Animations */
.narration-slide {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.narration-slide.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .narration-section {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .week-card {
    padding: 1.5rem;
  }

  .slide-controls {
    flex-direction: column;
    gap: 1.5rem;
  }

  .slide-controls button {
    width: 100%;
    justify-content: center;
  }

  #slide-counter {
    order: -1;
  }
}