/* ===================================
   My Courses Page Styles
   Modern Dark Theme
   =================================== */

/* Main Container */
.my-courses-container {
  min-height: 100vh;
  padding: 140px 20px 80px 20px;
  background: linear-gradient(135deg, #0a0a0a 0%, #000000 50%, #000000 100%);
  direction: rtl;
  font-family: "Emkan", sans-serif;
}

/* ===================================
   Header Section
   =================================== */

.my-courses-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
  animation: fadeInDown 0.8s ease;
}

.my-courses-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 50px;
  color: #667eea;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.my-courses-header__badge svg {
  width: 18px;
  height: 18px;
}

.my-courses-header__title {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px 0;
  line-height: 1.3;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.my-courses-header__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.6;
}

/* ===================================
   Courses Grid
   =================================== */

.my-courses-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 0 20px;
}

/* ===================================
   Course Card
   =================================== */

.my-course-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease;
  animation-fill-mode: both;
}

.my-course-card:nth-child(1) {
  animation-delay: 0.1s;
}

.my-course-card:nth-child(2) {
  animation-delay: 0.2s;
}

.my-course-card:hover {
  transform: translateY(-8px);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.my-course-card.locked {
  border-color: rgba(255, 255, 255, 0.05);
}

/* ===================================
   Course Image
   =================================== */

.my-course-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  cursor: pointer;
}

.my-course-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.my-course-card:hover .my-course-card__image {
  transform: scale(1.05);
}

.my-course-card.locked .my-course-card__image {
  filter: grayscale(30%) brightness(0.7);
}

.my-course-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.my-course-card.locked .my-course-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

/* Lock Icon */
.my-course-card__lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.my-course-card:hover .my-course-card__lock {
  opacity: 1;
  transform: scale(1.05);
}

.my-course-card__lock svg {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.8);
}

.my-course-card__lock span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 600;
}

/* Category Badge */
.my-course-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  z-index: 10;
}

/* ===================================
   Course Content
   =================================== */

.my-course-card__content {
  padding: 28px;
}

.my-course-card__title {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

/* Course Meta */
.my-course-card__meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.my-course-card__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.my-course-card__meta-item svg {
  width: 18px;
  height: 18px;
  color: #667eea;
}

.my-course-card__description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin: 0 0 24px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================================
   Course Footer & Buttons
   =================================== */

.my-course-card__footer {
  display: flex;
  justify-content: stretch;
}

.my-course-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Emkan", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.my-course-card__btn svg {
  width: 18px;
  height: 18px;
}

/* Continue Button (for purchased) */
.my-course-card__btn--continue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.my-course-card__btn--continue:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

/* Purchase Button (for locked) */
.my-course-card__btn--purchase {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(102, 126, 234, 0.5);
  color: #667eea;
}

.my-course-card__btn--purchase:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* ===================================
   Info Section
   =================================== */

.my-courses-info {
  max-width: 900px;
  margin: 60px auto 0 auto;
  padding: 0 20px;
}

/* ===================================
   Video Intro Section
   =================================== */

.my-courses-video-section {
  max-width: 1000px;
  margin: 80px auto 0 auto;
  padding: 0 20px;
}

.my-courses-video-header {
  text-align: center;
  margin-bottom: 40px;
}

.my-courses-video-badge {
  display: inline-block;
  padding: 8px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.my-courses-video-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
}

.my-courses-video-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.6;
}

.my-courses-video-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.my-courses-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #000;
}

.my-courses-video-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(
    circle at center,
    rgba(102, 126, 234, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* ===================================
   What You'll Learn Section
   =================================== */

.my-courses-learn-section {
  max-width: 1100px;
  margin: 80px auto 0 auto;
  padding: 0 20px;
}

.my-courses-learn-header {
  text-align: center;
  margin-bottom: 48px;
}

.my-courses-learn-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.my-courses-learn-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  margin: 16px auto 0 auto;
}

.my-courses-learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.my-courses-learn-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.my-courses-learn-card:nth-child(1) {
  animation-delay: 0.1s;
}
.my-courses-learn-card:nth-child(2) {
  animation-delay: 0.15s;
}
.my-courses-learn-card:nth-child(3) {
  animation-delay: 0.2s;
}
.my-courses-learn-card:nth-child(4) {
  animation-delay: 0.25s;
}
.my-courses-learn-card:nth-child(5) {
  animation-delay: 0.3s;
}
.my-courses-learn-card:nth-child(6) {
  animation-delay: 0.35s;
}

.my-courses-learn-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.my-courses-learn-card__number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.my-courses-learn-card__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.my-courses-learn-card__content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.7;
}

/* ===================================
   Course Stats Section
   =================================== */

.my-courses-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 60px auto 0 auto;
  padding: 40px 60px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.my-courses-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.my-courses-stats__number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.my-courses-stats__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.my-courses-stats__divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.my-courses-info__card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1),
    rgba(118, 75, 162, 0.1)
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 24px;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.my-courses-info__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  flex-shrink: 0;
}

.my-courses-info__icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.my-courses-info__content {
  flex: 1;
}

.my-courses-info__content h3 {
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.my-courses-info__content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.6;
}

.my-courses-info__btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Emkan", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  white-space: nowrap;
}

.my-courses-info__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

/* ===================================
   Features Section
   =================================== */

.my-courses-features {
  max-width: 900px;
  margin: 60px auto 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 20px;
}

.my-courses-feature {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.my-courses-feature:nth-child(1) {
  animation-delay: 0.4s;
}
.my-courses-feature:nth-child(2) {
  animation-delay: 0.5s;
}
.my-courses-feature:nth-child(3) {
  animation-delay: 0.6s;
}

.my-courses-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.3);
}

.my-courses-feature__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  margin: 0 auto 16px auto;
}

.my-courses-feature__icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.my-courses-feature h4 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.my-courses-feature p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.5;
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
  .my-courses-container {
    padding-top: 120px;
  }

  .my-courses-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .my-course-card__image-wrapper {
    height: 250px;
  }

  .my-courses-learn-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .my-courses-stats {
    gap: 24px;
    padding: 32px 40px;
  }

  .my-courses-stats__number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .my-courses-container {
    padding: 100px 15px 60px 15px;
  }

  .my-courses-header {
    margin-bottom: 40px;
  }

  .my-courses-header__title {
    font-size: 2.2rem;
  }

  .my-courses-header__subtitle {
    font-size: 1rem;
  }

  .my-courses-grid {
    gap: 24px;
    padding: 0;
  }

  .my-course-card__image-wrapper {
    height: 220px;
  }

  .my-course-card__title {
    font-size: 1.3rem;
  }

  .my-course-card__content {
    padding: 24px;
  }

  .my-courses-video-section {
    margin-top: 60px;
  }

  .my-courses-video-title {
    font-size: 1.6rem;
  }

  .my-courses-video-wrapper {
    border-radius: 16px;
  }

  .my-courses-learn-section {
    margin-top: 60px;
  }

  .my-courses-learn-title {
    font-size: 1.6rem;
  }

  .my-courses-learn-card {
    padding: 24px;
  }

  .my-courses-learn-card__number {
    font-size: 2rem;
  }

  .my-courses-stats {
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px 24px;
    margin-top: 40px;
  }

  .my-courses-stats__divider {
    display: none;
  }

  .my-courses-stats__item {
    width: 40%;
  }

  .my-courses-stats__number {
    font-size: 1.8rem;
  }

  .my-courses-info__card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }

  .my-courses-info__btn {
    width: 100%;
  }

  .my-courses-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .my-courses-feature {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .my-courses-container {
    padding: 90px 12px 50px 12px;
  }

  .my-courses-header__badge {
    font-size: 12px;
    padding: 8px 18px;
  }

  .my-courses-header__title {
    font-size: 1.8rem;
  }

  .my-course-card__image-wrapper {
    height: 200px;
  }

  .my-course-card__badge {
    padding: 8px 18px;
    font-size: 12px;
  }

  .my-course-card__title {
    font-size: 1.2rem;
  }

  .my-course-card__content {
    padding: 20px;
  }

  .my-course-card__meta {
    flex-wrap: wrap;
    gap: 12px;
  }

  .my-course-card__btn {
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .my-course-card__lock svg {
    width: 36px;
    height: 36px;
  }

  .my-course-card__lock span {
    font-size: 14px;
  }

  .my-courses-video-section {
    margin-top: 50px;
  }

  .my-courses-video-badge {
    font-size: 12px;
    padding: 6px 18px;
  }

  .my-courses-video-title {
    font-size: 1.4rem;
  }

  .my-courses-video-subtitle {
    font-size: 0.9rem;
  }

  .my-courses-learn-section {
    margin-top: 50px;
  }

  .my-courses-learn-title {
    font-size: 1.4rem;
  }

  .my-courses-learn-card {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .my-courses-learn-card__number {
    font-size: 1.8rem;
  }

  .my-courses-learn-card__content h3 {
    font-size: 1rem;
  }

  .my-courses-stats__item {
    width: 45%;
  }

  .my-courses-stats__number {
    font-size: 1.5rem;
  }

  .my-courses-stats__label {
    font-size: 12px;
  }
}
