/* Navbar styles moved to navbar.css */

/* ================================
   INSTRUCTORS PAGE - Mor-Pembe Neon Theme
   ================================ */
.logo-container {
  gap: 12px !important;
}
.instructors-section {
  min-height: 100vh;
  padding: 140px 0 100px;
  position: relative;
  z-index: 1;
}

.instructors-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ================================
   PAGE HEADER
   ================================ */

.instructors-header {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeInDown 0.8s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.instructors-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #9a4dff 0%, #ff4dc4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -1px;
}

.instructors-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* ================================
   INSTRUCTORS GRID
   ================================ */

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

/* ================================
   INSTRUCTOR CARD
   ================================ */

.instructor-card {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(154, 77, 255, 0.08) 100%
  );
  backdrop-filter: blur(15px);
  border-radius: 24px;
  border: 1px solid rgba(154, 77, 255, 0.2);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.6s ease forwards;
  animation-fill-mode: both;
}

.instructor-card:nth-child(1) { animation-delay: 0.1s; }
.instructor-card:nth-child(2) { animation-delay: 0.2s; }
.instructor-card:nth-child(3) { animation-delay: 0.3s; }
.instructor-card:nth-child(4) { animation-delay: 0.4s; }
.instructor-card:nth-child(5) { animation-delay: 0.5s; }
.instructor-card:nth-child(6) { animation-delay: 0.6s; }

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

.instructor-card:hover {
  transform: translateY(-8px);
  border-color: rgba(154, 77, 255, 0.4);
  box-shadow: 
    0 16px 48px rgba(154, 77, 255, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* ================================
   PLAY BUTTON
   ================================ */

.instructor-play-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9a4dff 0%, #ff4dc4 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(154, 77, 255, 0.4),
    0 0 40px rgba(154, 77, 255, 0.3);
  animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
  0%, 100% {
    box-shadow: 
      0 4px 20px rgba(154, 77, 255, 0.4),
      0 0 40px rgba(154, 77, 255, 0.3);
  }
  50% {
    box-shadow: 
      0 6px 30px rgba(154, 77, 255, 0.6),
      0 0 60px rgba(154, 77, 255, 0.5);
  }
}

.instructor-play-btn svg {
  width: 24px;
  height: 24px;
  color: #fff;
  margin-left: 2px; /* Center the play icon */
  transition: transform 0.3s ease;
}

.instructor-play-btn:hover {
  transform: scale(1.15);
  box-shadow: 
    0 6px 30px rgba(154, 77, 255, 0.6),
    0 0 60px rgba(154, 77, 255, 0.5);
}

.instructor-play-btn:hover svg {
  transform: scale(1.1);
}

.instructor-play-btn:active {
  transform: scale(1.05);
}

/* ================================
   INSTRUCTOR PHOTO
   ================================ */

.instructor-photo {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.instructor-card:hover .instructor-photo img {
  transform: scale(1.08);
}

.instructor-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(154, 77, 255, 0.1) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.instructor-card:hover .instructor-photo-overlay {
  opacity: 0.8;
}

/* ================================
   INSTRUCTOR INFO
   ================================ */

.instructor-info {
  padding: 30px 28px 32px;
  text-align: center;
}

.instructor-name {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.3;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.instructor-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 22px;
  min-height: 50px;
}

.instructor-btn {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #9a4dff 0%, #ff4dc4 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(154, 77, 255, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.instructor-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff4dc4 0%, #9a4dff 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.instructor-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(154, 77, 255, 0.5);
}

.instructor-btn:hover::before {
  opacity: 1;
}

.instructor-btn:active {
  transform: translateY(0);
}

/* ================================
   NO INSTRUCTORS MESSAGE
   ================================ */

.no-instructors {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.no-instructors p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
}

/* ================================
   VIDEO MODAL
   ================================ */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  display: flex;
  opacity: 1;
}

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  width: auto;
  max-width: 90vw;
  max-height: 90vh;
  background: linear-gradient(135deg,
    rgba(30, 20, 50, 0.95) 0%,
    rgba(20, 15, 35, 0.95) 100%
  );
  border-radius: 20px;
  padding: 20px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(154, 77, 255, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(154, 77, 255, 0.3);
  animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.video-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9a4dff 0%, #ff4dc4 100%);
  border: 3px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 
    0 4px 20px rgba(154, 77, 255, 0.5),
    0 0 40px rgba(154, 77, 255, 0.3);
}

.video-modal-close svg {
  width: 24px;
  height: 24px;
  color: #fff;
  transition: transform 0.3s ease;
}

.video-modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 
    0 6px 30px rgba(154, 77, 255, 0.7),
    0 0 60px rgba(154, 77, 255, 0.5);
}

.video-modal-player {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-player video,
.video-modal-player iframe {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border: none;
  display: block;
  object-fit: contain;
}

/* Vertical video specific styles */
.video-modal-player video[style*="width"],
.video-modal-player iframe[style*="width"] {
  width: auto !important;
  height: auto !important;
}

/* For different aspect ratios */
.video-modal-player video {
  min-width: 300px;
  min-height: 200px;
}

/* Horizontal videos */
@media (min-width: 768px) {
  .video-modal-player video[width][height] {
    max-width: min(90vw, calc(80vh * var(--aspect-ratio, 1.78)));
    max-height: min(80vh, calc(90vw / var(--aspect-ratio, 1.78)));
  }
}

/* ================================
   RESPONSIVE - DESKTOP LARGE
   ================================ */

@media screen and (min-width: 1440px) {
  .instructors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================
   RESPONSIVE - TABLET
   ================================ */

@media screen and (max-width: 1024px) {
  .instructors-section {
    padding: 120px 0 80px;
  }

  .instructors-container {
    padding: 0 30px;
  }

  .instructors-header {
    margin-bottom: 60px;
  }

  .instructors-title {
    font-size: 48px;
  }

  .instructors-subtitle {
    font-size: 18px;
  }

  .instructors-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }

  .instructor-photo {
    height: 320px;
  }

  .video-modal-content {
    width: 85%;
    max-height: 90vh;
  }

  .video-modal-player {
    max-height: 75vh;
  }

  .video-modal-player video,
  .video-modal-player iframe {
    max-height: 75vh;
    width: auto;
  }
}

/* ================================
   RESPONSIVE - MOBILE
   ================================ */

@media screen and (max-width: 768px) {
  .instructors-section {
    padding: 100px 0 60px;
  }

  .instructors-container {
    padding: 0 20px;
  }

  .instructors-header {
    margin-bottom: 50px;
  }

  .instructors-title {
    font-size: 38px;
  }

  .instructors-subtitle {
    font-size: 16px;
  }

  .instructors-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .instructor-card {
    border-radius: 20px;
  }

  .instructor-play-btn {
    width: 52px;
    height: 52px;
    top: 16px;
    right: 16px;
  }

  .instructor-play-btn svg {
    width: 22px;
    height: 22px;
  }

  .instructor-photo {
    height: 300px;
    border-radius: 20px 20px 0 0;
  }

  .instructor-info {
    padding: 24px 22px 26px;
  }

  .instructor-name {
    font-size: 23px;
  }

  .instructor-description {
    font-size: 12px;
    margin-bottom: 20px;
    min-height: auto;
  }

  .instructor-btn {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }

  .video-modal-content {
    width: 95% !important;
    max-width: 95vw !important;
    height: auto !important;
    padding: 16px;
    border-radius: 16px;
    max-height: 95vh;
  }

  .video-modal-close {
    width: 44px;
    height: 44px;
    top: -12px;
    right: -12px;
  }

  .video-modal-close svg {
    width: 20px;
    height: 20px;
  }

  .video-modal-player {
    border-radius: 10px;
    max-height: 85vh !important;
    width: 100% !important;
  }

  .video-modal-player video,
  .video-modal-player iframe {
    max-height: 85vh !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile vertical videos take 80% of screen width */
  @media (orientation: portrait) {
    .video-modal-content {
      width: 80% !important;
      max-width: 80vw !important;
    }
    
    .video-modal-player {
      max-height: 80vh !important;
    }
    
    .video-modal-player video,
    .video-modal-player iframe {
      max-height: 80vh !important;
      max-width: 100% !important;
    }
  }
}

/* ================================
   RESPONSIVE - MOBILE SMALL
   ================================ */

@media screen and (max-width: 480px) {
  .instructors-section {
    padding: 90px 0 50px;
  }

  .instructors-header {
    margin-bottom: 40px;
  }

  .instructors-title {
    font-size: 32px;
  }

  .instructors-subtitle {
    font-size: 15px;
  }

  .instructors-grid {
    gap: 25px;
  }

  .instructor-play-btn {
    width: 48px;
    height: 48px;
  }

  .instructor-play-btn svg {
    width: 20px;
    height: 20px;
  }

  .instructor-photo {
    height: 260px;
  }

  .instructor-info {
    padding: 20px 18px 22px;
  }

  .instructor-name {
    font-size: 21px;
  }

  .instructor-description {
    font-size: 11px;
  }

  .instructor-btn {
    padding: 11px 20px;
    font-size: 13px;
  }
}