/*
 * SnapTutor — Custom styles (on top of Bootstrap 5)
 * Propshaft serves this file as-is; no SCSS compilation.
 */

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #ffffff;
}

/* ============================================================
   PHOTO CARDS
   ============================================================ */
.photo-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0.75rem;
  overflow: hidden;
}

.photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.photo-card .card-img-top {
  height: 220px;
  object-fit: cover;
}

/* ============================================================
   LESSON CARDS
   ============================================================ */
.lesson-card {
  border-radius: 0.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lesson-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-3px);
}

.lesson-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   LESSON BODY (ActionText output)
   ============================================================ */
.lesson-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1a1a2e;
}

.lesson-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.lesson-body ul {
  padding-left: 1.5rem;
}

.lesson-body li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  color: #444;
}

.lesson-body strong {
  color: #1a1a2e;
}

/* ============================================================
   AI FEEDBACK CARD
   ============================================================ */
.ai-feedback-card {
  background: #f0f7ff;
  border-left: 4px solid #0d6efd !important;
  border-radius: 0.75rem;
}

/* ============================================================
   ADMIN SIDEBAR
   ============================================================ */
.admin-sidebar {
  width: 220px;
  min-height: 100vh;
  background: #212529;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.admin-content {
  margin-left: 220px;
  padding: 2rem;
  min-height: 100vh;
  background: #f8f9fa;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.65);
  padding: 0.7rem 1.5rem;
  font-size: 0.925rem;
  border-radius: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-sidebar .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 500;
}

/* ============================================================
   TRIX EDITOR
   ============================================================ */
trix-editor {
  min-height: 320px;
  font-size: 1rem;
  line-height: 1.7;
}

trix-toolbar .trix-button-group {
  margin-bottom: 0;
}

/* ============================================================
   GENERAL UTILITIES
   ============================================================ */
.navbar-brand {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

/* Smooth page transitions via Turbo */
html {
  scroll-behavior: smooth;
}
