/* Reset i osnova */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body { background: var(--bg-900); /* pastel roze pozadina */
  color: #5b2b3d;       /* tamnija roze-braon za tekst */
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* DETALJI VIDEA */
.video-detail {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 6px 20px var(--shadow);
  padding: 2rem;
  max-width: 750px;
  margin: 2rem auto;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.video-detail h2 { text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #a03b60;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.video-detail p {
  font-size: 1.1rem;
  color: #854055;
  margin-bottom: 1.5rem;
}

.video-detail strong {
  font-weight: 700;
  color: #751a3d;
}

/* DUGME KUPI */
.btn-kupi {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  font-weight: 600;
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 6px 14px var(--shadow);
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-kupi:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  transform: translateY(-2px);
}

/* FadeIn animacija */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* THUMBNAIL i PLAY ikonica */
.video-box {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(185, 90, 120, 0.1);
  padding: 20px;
  margin-bottom: 30px;
  max-width: 600px;
  transition: transform 0.3s ease;
}

.video-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(185, 90, 120, 0.15);
}

.thumbnail-wrapper {
  position: relative;
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(190, 90, 130, 0.1);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.thumbnail-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.thumbnail-wrapper:hover img {
  transform: scale(1.05);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: color 0.3s ease;
}

.thumbnail-wrapper:hover .play-icon {
  color: #ff4f78; /* roze-crvena na hover */
}

/* Kursevi sekcija (grid/flex fix) */
.courses-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Pojedinačna kartica kursa */
.course-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  width: 300px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* RESPONSIVE tweaks */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .video-detail {
    padding: 1.2rem;
    max-width: 100%;
    margin: 1rem 0;
    border-radius: 12px;
  }

  .video-detail h2 { text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .video-detail p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .btn-kupi {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }

  .video-box {
    padding: 15px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .thumbnail-wrapper {
    max-height: 200px;
    margin-bottom: 10px;
  }

  .play-icon {
    font-size: 40px;
  }

  h1 { text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
  }

  .container {
    margin: 1rem 0.5rem 2rem 0.5rem;
    padding: 0 0.3rem;
  }
}

/* Responsive ponašanje */
@media (max-width: 340px) {
  .course-card {
    width: 100%;
  }
}