/* ===================================================
   EnglishLearn Global Styles
   Built on Bootstrap 5.3.8
   =================================================== */

/* Root colors (Bootstrap-compatible theming) */
:root {
  --brand-primary: #0d6efd;
  --brand-dark: #121212;
  --brand-light: #ffffff;
  --text-dark: #212529;
  --text-light: #f8f9fa;
}

/* General typography */
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light mode (Bootstrap default) */
[data-bs-theme="light"] {
  background-color: var(--brand-light);
  color: var(--text-dark);
}

/* Dark mode */
[data-bs-theme="dark"] {
  background-color: var(--brand-dark);
  color: var(--text-light);
}

[data-bs-theme="dark"] .card {
  background-color: #1e1e1e;
  color: #ddd;
}

/* Navbar styling */
.navbar {
  transition: all 0.3s ease;
}

.navbar-scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-weight: 600;
}

/* Hero Section (Home Page) */
section.text-center {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--brand-primary);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.4);
}

/* Video Cards */
.video-card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Video wrapper overlay (for lazy load/play icon) */
.video-wrapper {
  position: relative;
  cursor: pointer;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 3rem;
  transition: background 0.3s ease;
}

.video-wrapper:hover .video-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.play-btn {
  pointer-events: none;
  user-select: none;
}

/* Footer */
footer {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
}

/* 404 Page Styling */
[data-bs-theme="dark"] .display-3 {
  color: #66b0ff;
}

[data-bs-theme="light"] .display-3 {
  color: #0d6efd;
}

section.text-center img {
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

section.text-center img:hover {
  transform: scale(1.05);
  opacity: 1;
}
