@use "_variables" as *;
@use "_mixins" as *;
@use "_miniature" as *;

.section-header,
my-button {
  // make the element span a full grid row within .videos grid
  grid-column: 1 / -1;
}

.section-title,
.section-header {
  display: flex;
  align-items: center;
  min-width: 1px;
}

.section-title {
  @include font-size(1.5rem);
  @include margin-bottom(2rem);
}

.margin-content.videos-margin-content {
  @include grid-videos-miniature-layout-with-margins($rows-limit: 2);
}

.quick-access {
  display: flex;
  align-items: center;
  justify-content: start;
  white-space: nowrap;
}

.quick-access-links {
  a {
    color: pvar(--fg-300);
    text-decoration: underline;

    &:hover {
      opacity: 0.8;
    }
  }

  &:not(.see-all-quick-links) {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.see-all-quick-links {
  white-space: normal;
  display: flex;
  flex-wrap: wrap;
}

.section {
  @include rfs(2.5rem, margin-top);

  @media screen and (max-width: $mobile-view) {
    max-height: initial;
    overflow: initial;

    .section-title {
      @include margin-left(pvar(--x-margin-content));
    }
  }
}

my-actor-avatar {
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;

  @include margin-right(10px);
}


/* ===== EDA Sessions Section ===== */

.eda-sessions {
  margin: 4rem 0;
  text-align: center;
}

.eda-heading {
  max-width: 900px;
  margin: 0 auto 2rem;
  font-size: 3.5rem;
  font-weight: 700;
  color: pvar(--header-fg-200);
}

.eda-subheading {
  max-width: 900px;
  margin: 0 auto 2rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: pvar(--header-fg-200);
}

/* Tabs */
.eda-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: #f3f4f6;
  padding: 0.6rem;
  border-radius: 999px;
  width: fit-content;
  margin: 0 auto 2.5rem;
}

.eda-tab {
  border: none;
  background: transparent;
  padding: 0.6rem 1.6rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.3s ease;
}

.eda-tab.active {
  background: pvar(--fg);
  color: pvar(--bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Cards Layout */
.eda-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

/* Card */
.eda-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.eda-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

/* Top Gradient Area */
.eda-card-top {
  height: 140px;
  border-radius: 12px 12px 0 0;
  position: relative;
  color: white;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Gradients similar to design */
.gradient-1 {
  background: linear-gradient(135deg, #0f172a, #7c3aed, #06b6d4);
}

.gradient-2 {
  background: linear-gradient(135deg, #111827, #9333ea, #14b8a6);
}

.gradient-3 {
  background: linear-gradient(135deg, #0b1120, #db2777, #22d3ee);
}

/* Bottom Title */
.eda-card-bottom {
  color: pvar(--fg);
  background-color: pvar(--bg);
  padding: 1.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
  flex: 1;
}

/* View All Button */
.eda-view-btn {
  background: pvar(--fg);
  color: pvar(--bg);
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.eda-view-btn:hover {
  transform: scale(1.05);
}

.eda-card-image {
  // position: absolute;
  // top: 0;
  // left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}