/* Global Styles for EZJ Project */
:root {
  /* Premium Warm Palette */
  --color-bg: #FDFBF7; /* Very light warm linen */
  --color-surface: #FFFFFF;
  --color-primary: #D84A49; /* Warm Red/Coral */
  --color-primary-hover: #c43c3b;
  --color-secondary: #EEDCC4;
  --color-text-main: #2C2825;
  --color-text-muted: #7A726A;
  --color-border: #E8E0D5;
  --color-accent: #ECAE41; /* Warm Gold */
  
  /* Typography */
  --font-heading: 'Outfit', 'Playfair Display', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Roundness */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Elevation (Glassmorphism & Soft Shadows) */
  --shadow-sm: 0 4px 12px rgba(142, 135, 129, 0.08);
  --shadow-md: 0 12px 32px rgba(142, 135, 129, 0.12);
  --shadow-lg: 0 24px 48px rgba(142, 135, 129, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-main);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Premium Navbar */
.navbar-premium {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(216, 74, 73, 0.3);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link-item {
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link-item:hover, .nav-link-item.active {
  color: var(--color-primary);
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.nav-link-item:hover::after, .nav-link-item.active::after {
  width: 100%;
}

/* Buttons */
.btn-primary-warm {
  background: linear-gradient(135deg, var(--color-primary), #E86A69);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 32px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(216, 74, 73, 0.25);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(216, 74, 73, 0.35);
  color: white;
}

.btn-outline-warm {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-warm:hover {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Premium Card */
.card-premium {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(216, 74, 73, 0.2);
}

/* Course Card Specific */
.course-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.course-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.course-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.teacher-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
}

.teacher-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-secondary);
}

.teacher-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
  color: var(--color-text-main);
}

/* Tabs for Course Page */
.premium-tabs {
  display: flex;
  gap: 12px;
  background: var(--color-surface);
  padding: 8px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  border: 1px solid var(--color-border);
  overflow-x: auto;
}

.premium-tab {
  flex: 1;
  text-align: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.premium-tab:hover {
  background: var(--color-bg);
  color: var(--color-text-main);
}

.premium-tab.active {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(216, 74, 73, 0.3);
}

.tab-content-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-content-panel.active {
  display: block;
}

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

/* Video Player Container */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

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

/* Layout helpers */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  width: 100%;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

/* Animations */
.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hover-primary:hover { color: var(--color-primary) !important; }
.transition { transition: all 0.3s ease; }
