/* ============================
   Structured List Layout
============================ */

/* Local Variables (Scoped to this component only) */
.content-wrapper {
  --max-width: 1100px;
  --section-border: 2px solid #444;

  --card-border-hover: #ff4da6;
  --card-shadow-hover: 0 0 15px rgba(255, 77, 166, 0.25);

  --text-color: #ffffff;
  --desc-color: #cccccc;
  --link-color: #ff7fbf;

  --badge-video: #6e1a1a;
  --badge-playlist: #9c5f00;
  --badge-document: #1e5c35;

  --badge-video-glow: rgba(139, 28, 28, 0.6);
  --badge-playlist-glow: rgba(204, 122, 0, 0.6);
  --badge-document-glow: rgba(31, 111, 62, 0.6);

  max-width: var(--max-width);
  margin: 0 auto;
}

/* Section */
.content-section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 26px;
  margin-bottom: 20px;
  border-bottom: var(--section-border);
  padding-bottom: 8px;
}

/* List container */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* List item */
.list-item {
  display: flex;
  gap: 20px;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 18px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-color);
}

.list-item:hover {
  background-color: var(--card-bg-hover);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
  text-decoration: none;
}

/* Image */
.list-image-wrapper {
  position: relative;
  flex: 0 0 220px;
  height: 140px;
  overflow: hidden;
  border-radius: 10px;
}

/* Image top-aligned by default, offset applied via CSS variable */
.list-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--img-offset, 0px);
  transition: opacity 0.3s ease;
}

.list-item:hover img {
  opacity: 0.9;
}

/* Video overlay */
.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  color: white;
  font-size: 32px;
  line-height: 1;
  pointer-events: none;
}

/* Content */
.list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header row */
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Title */
.list-title {
  font-size: 20px;
  font-weight: bold;
}

/* Base badge */
.type-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: white;
}

.type-video {
  background-color: var(--badge-video);
}

.type-playlist {
  background-color: var(--badge-playlist);
}

.type-document {
  background-color: var(--badge-document);
}

.list-item:hover .type-video {
  box-shadow: 0 0 6px var(--badge-video-glow);
}

.list-item:hover .type-playlist {
  box-shadow: 0 0 6px var(--badge-playlist-glow);
}

.list-item:hover .type-document {
  box-shadow: 0 0 6px var(--badge-document-glow);
}

/* Description */
.list-desc {
  font-size: 16px;
  color: var(--desc-color);
  line-height: 1.5;
}

/* Links inside description */
.list-desc a {
  color: var(--link-color);
  text-decoration: underline;
}

/* ============================
   Mobile
============================ */

@media (max-width: 768px) {
  .list-item {
    flex-direction: column;
  }

  .list-image-wrapper {
    width: 100%;
    height: 200px;
  }

  .list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
