/* CAMERA TRAINING - Clean Cinema & Academy Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Oswald:wght@500;600;700&display=swap');

:root {
  --color-gold: #F59E0B;
  --color-gold-hover: #FBBF24;
  --color-dark: #080C14;
  --color-surface: #0F172A;
  --color-card: #131D31;
  --color-muted: #94A3B8;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-dark);
  color: #E2E8F0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.75;
}

/* Vietnamese Typography Fix: Standard 16px on Desktop & Anti-diacritic collision */
h1 {
  line-height: 1.38 !important;
  text-wrap: balance;
}

h2 {
  line-height: 1.4 !important;
  text-wrap: balance;
}

h3, h4 {
  line-height: 1.42 !important;
  text-wrap: balance;
}

p, .body-text {
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 640px) {
  p, .body-text {
    font-size: 15px;
    line-height: 1.65;
  }
}

/* Clean Academy Card Surfaces (Minimal Border, Soft Shadow) */
.academy-card {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 1rem;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.academy-card:hover {
  background: rgba(26, 38, 64, 0.88);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Solid Premium Buttons */
.btn-primary {
  background-color: #F59E0B;
  color: #080C14;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover {
  background-color: #FBBF24;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(30, 41, 59, 0.85);
  color: #F1F5F9;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary:hover {
  background-color: rgba(51, 65, 85, 0.95);
  color: #FFFFFF;
}

/* Full-Height Mobile Navigation Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 340px;
  height: 100vh;
  height: 100dvh;
  background: #0B1120;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
}

.mobile-menu-drawer.active {
  transform: translateX(0);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Bottom Nav Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(11, 17, 32, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Floating Right Banner (Fixed Z-Index & Instant Close Support) */
.floating-side-banner {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 90;
  width: 200px;
  max-width: 44vw;
  pointer-events: auto !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: floatBannerIn 0.4s ease-out forwards;
}

@media (min-width: 768px) {
  .floating-side-banner {
    bottom: 28px;
    right: 24px;
    width: 220px;
  }
}

.floating-side-banner a {
  pointer-events: auto !important;
  cursor: pointer !important;
  display: block;
}

.floating-side-banner.hidden-banner,
.floating-side-banner[style*="display: none"] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  animation: none !important;
}

@keyframes floatBannerIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Reviews Carousel Slider */
.review-slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.review-slide-item {
  flex: 0 0 100%;
  padding: 0 8px;
}

@media (min-width: 640px) {
  .review-slide-item {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .review-slide-item {
    flex: 0 0 33.333333%;
  }
}

/* Video Player Modal */
.video-modal-backdrop {
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(10px);
}

/* Clean Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #080C14;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F59E0B;
}

footer {
  position: relative;
  z-index: 30;
  background-color: #030712;
}

/* Subtle Toast */
.toast-slide-in {
  animation: slideUpToast 0.3s ease-out forwards;
}
@keyframes slideUpToast {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab Filtering Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
