/* ═══════════════════════════════════════════════════════════════════════════
   MAXZEETON.NG — COURSES PAGE STYLES (Phase 1 - Teaser)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Courses page now uses .page-hero from about.css */

.page-hero .label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--orange);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.courses-navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  padding: 14px 0;
}

.courses-navbar-shell {
  gap: 16px;
}

.courses-navbar .navbar-logo .ng,
.courses-navbar .navbar-link,
.courses-navbar .navbar-toggle {
  color: var(--text-primary);
}

.courses-search-wrap {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(13, 15, 26, 0.12);
  border-radius: 999px;
  background: #fff;
}

.courses-search-wrap i {
  color: var(--text-muted);
}

.courses-search-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.courses-search-wrap input:focus {
  outline: none;
}

.courses-guest-nav,
.courses-auth-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.courses-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(13, 15, 26, 0.12);
  display: grid;
  place-items: center;
  color: var(--text-primary);
  background: #fff;
}

.courses-profile-menu {
  position: relative;
}

.courses-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(13, 15, 26, 0.12);
  overflow: hidden;
  background: #fff;
  padding: 0;
}

.courses-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.courses-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(13, 15, 26, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(13, 15, 26, 0.14);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.courses-dropdown a,
.courses-dropdown button {
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.courses-dropdown a:hover,
.courses-dropdown button:hover {
  background: rgba(214, 0, 28, 0.08);
  color: var(--red);
}

.courses-mobile-toggle {
  display: none;
}

.courses-mobile-sheet {
  justify-content: flex-start;
  align-items: stretch;
  gap: 20px;
  padding: 50px 20px;
}

.courses-mobile-links,
.courses-mobile-auth,
.courses-mobile-guest {
  display: grid;
  gap: 10px;
}

.courses-mobile-auth a {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
}

/* courses-modal: display:grid overrides the browser's [hidden] rule — we must add this explicitly */
.courses-modal[hidden],
.courses-dropdown[hidden],
.courses-mobile-sheet[hidden],
.courses-mobile-guest[hidden],
.courses-mobile-auth[hidden],
.courses-auth-nav[hidden],
.courses-guest-nav[hidden] {
  display: none !important;
}

.courses-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.courses-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 26, 0.56);
}

.courses-modal-card {
  width: min(100%, 520px);
  position: relative;
  z-index: 1;
  border-radius: 20px;
  border: 1px solid rgba(13, 15, 26, 0.1);
  background: #fff;
  padding: 30px;
  box-shadow: 0 24px 70px rgba(13, 15, 26, 0.22);
}

.courses-modal-card h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 10px;
}

.courses-modal-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.courses-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(13, 15, 26, 0.12);
  display: grid;
  place-items: center;
}

.courses-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.courses-modal-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(214, 0, 28, 0.08);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.courses-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.course-details-btn {
  margin-top: 18px;
}

.courses-catalog-controls {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.courses-inline-search {
  max-width: 100%;
}

.courses-sort-select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(13, 15, 26, 0.12);
  padding: 10px 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.courses-empty-state {
  margin-top: 18px;
  text-align: center;
  color: var(--text-muted);
}

.sign-in-section {
  max-width: 600px;
  margin: 0 auto;
}

.sign-in-card {
  background: var(--card);
  border: 1px solid rgba(214, 0, 28, 0.3);
  border-radius: 14px;
  padding: 48px 40px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.sign-in-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(214, 0, 28, 0.15);
}

.sign-in-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 0, 28, 0.15);
  border-radius: 50%;
  color: var(--teal);
  font-size: 2.5rem;
  border: 2px solid rgba(214, 0, 28, 0.3);
  transition: all 0.3s;
}

.sign-in-card:hover .sign-in-icon {
  background: rgba(214, 0, 28, 0.25);
  border-color: var(--teal);
  box-shadow: 0 0 30px rgba(214, 0, 28, 0.4);
}

.sign-in-card h2 {
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.sign-in-card p {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.6;
}

.sign-in-note {
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.google-sign-in-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 32px;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #1f2937;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-sign-in-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.google-sign-in-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-sign-in-btn i {
  font-size: 1.5rem;
  color: #4285f4;
}

@media (max-width: 1024px) {
  .desktop-search,
  .courses-guest-nav,
  .courses-auth-nav {
    display: none;
  }

  .courses-mobile-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .courses-navbar {
    padding: 10px 0;
  }

  .courses-navbar .navbar-logo {
    font-size: 1.25rem;
  }

  .courses-navbar .navbar-logo-img {
    width: 34px;
    height: 34px;
  }

  .courses-modal-card {
    padding: 24px;
  }

  .courses-catalog-controls {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin: 4rem auto 1rem auto;
  }

  .courses-search-wrap.mobile-search {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CYBERPUNK WHY CHOOSE US SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

/* Section Header Styling */
.section-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header .label {
  display: inline-block;
  padding: 8px 24px;
  background: linear-gradient(135deg, rgba(214, 0, 28, 0.15), rgba(255, 255, 255, 0.2));
  border: 2px solid rgba(214, 0, 28, 0.4);
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 20px rgba(214, 0, 28, 0.5);
  animation: label-pulse 3s ease-in-out infinite;
}

.section-header .label::before {
  content: '';
  position: absolute;
  inset: -100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(214, 0, 28, 0.3),
    transparent
  );
  animation: shine 3s linear infinite;
}

@keyframes shine {
  from {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  to {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes label-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(214, 0, 28, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(214, 0, 28, 0.6), 0 0 60px rgba(255, 255, 255, 0.3);
  }
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--teal) 50%,
    #f8f9fa 190%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.section-header p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}

.courses-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  padding: 40px 0;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(214, 0, 28, 0.3);
}

/* Icon Styling - Clean with Red Theme */
.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  border-radius: 12px;
  background: rgba(214, 0, 28, 0.1);
  color: var(--red);
  transition: all 0.3s ease;
}

.feature-icon i {
  color: var(--red);
  font-size: 2rem;
  position: relative;
}

.feature-card:hover .feature-icon {
  background: rgba(214, 0, 28, 0.15);
  transform: scale(1.1);
}

/* Card Content */
.feature-card h3 {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  transition: all 0.3s;
}

.feature-card:hover h3 {
  color: var(--red);
}

.feature-card p {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  transition: color 0.3s;
}

.feature-card:hover p {
  color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .courses-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 640px) {
  .courses-features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 32px 24px;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
  
  .feature-card h3 {
    font-size: 1.3rem;
  }
  
  .section-header {
    margin: 33px auto;
  }
  
  .section-header .label {
    font-size: 0.7rem;
    padding: 6px 18px;
    margin-bottom: 20px;
  }
  
  .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .section-header p {
    font-size: 0.9rem;
    padding: 0 20px;
  }
}

/* Course Preview Cards */
.courses-preview {
  margin-bottom: 80px;
}

.courses-preview h2 {
  text-align: center;
  margin-bottom: 48px;
}

.courses-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  filter: blur(0);
  transition: filter 0.3s;
}

/* ─── Skeleton loader ─────────────────────────────────────────────────────── */
@keyframes skeleton-shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, #ececec 25%, #d8d8d8 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.course-skeleton-card {
  pointer-events: none;
}

.skeleton-title  { height: 22px; width: 75%; margin-bottom: 10px; }
.skeleton-sub    { height: 13px; width: 48%; margin-bottom: 14px; }
.skeleton-line   { height: 12px; width: 100%; margin-bottom: 8px; }
.skeleton-line.short { width: 62%; }

.skeleton-tags-row {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.skeleton-tag { height: 24px; width: 72px; border-radius: 999px; }
.skeleton-btn { height: 38px; width: 100%; border-radius: 8px; margin-top: 4px; }

.courses-preview-grid.locked {
  filter: blur(4px);
  pointer-events: none;
  opacity: 0.6;
}

.course-preview-card {
  background: var(--card);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.course-preview-card:hover {
  border-color: var(--orange);
  transform: translateY(-5px);
}

.course-preview-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.15);
  border-radius: 12px;
  color: var(--orange);
  font-size: 2rem;
}

.course-preview-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.course-preview-duration {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 16px;
  display: block;
}

.course-preview-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.course-preview-topics {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(214, 0, 28, 0.2);
  background: rgba(214, 0, 28, 0.08);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
}

.course-preview-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  margin-bottom: 14px;
}

/* Coming Soon Banner */
.coming-soon-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.15);
  border-radius: 50%;
  color: var(--orange);
  font-size: 2.5rem;
  border: 2px solid rgba(249, 115, 22, 0.3);
  transition: all 0.3s;
}

.coming-soon-banner {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 14px;
  padding: 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.coming-soon-banner h3 {
  color: var(--orange);
  margin-bottom: 12px;
}

.coming-soon-banner p {
  color: var(--muted);
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .courses-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .courses-hero {
    padding: 80px 0 40px;
  }

  /* Courses-specific hero content styling for mobile */
  .page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 1rem;
  }

  /* Courses-specific hero h1 styling for mobile */
  .page-hero .page-hero-content h1 {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .sign-in-card {
    padding: 28px;
  }

  .coming-soon-banner {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 14px;
    padding: 40px;
    text-align: center;
    max-width: 700px;
    margin: 10px 20px;
  }

  .coming-soon-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .coming-soon-banner h2 {
    margin-bottom: 16px;
  }

  .coming-soon-banner p {
    margin-bottom: 24px;
  }
}

@media (max-width: 760px) {
  .courses-preview-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .course-preview-card {
    width: 100%;
  }
}
