


.activity-card {
  background: var(--elevation-layer1-dark-solid);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: transform 0.2s ease;

  &:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem var(--elevation-layer10-dark);
  }

  .activity-content {
    display: flex;
    gap: 0;
    position: relative;
  }

  .cover-container {
    position: relative;
    flex-shrink: 0;
    width: 12.5rem;
    height: 18.75rem;

    .series-cover {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .chapter-cover {
      position: absolute;
      bottom: 0.5rem;
      right: 0.5rem;
      width: 3.75rem;
      height: 5.3125rem;
      object-fit: cover;
      border: 0.125rem solid var(--elevation-layer1-dark-solid);
      border-radius: 0.25rem;
      box-shadow: 0 0.125rem 0.5rem var(--elevation-layer11-dark);
    }
  }

  .activity-details {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, var(--elevation-layer11-dark), var(--elevation-layer1-dark-solid));
    min-width: 0; // Allow text truncation
  }

  .activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .media-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
  }

  .platform-badge {
    background: var(--activity-card-client-platform-badge-bg-color) !important;
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
  }

  .device-badge {
    background: var(--activity-card-client-device-badge-bg-color);
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }


  .session-metadata {
    margin-bottom: 0.75rem;

    .metadata-row {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 0.25rem;
      font-size: 0.75rem;

      .label {
        color: var(--offwhite-text-color);
        text-transform: uppercase;
        font-weight: 600;
        min-width: 5rem;
      }
    }
  }

  .progress-container {
    margin-bottom: 0.75rem;

    .progress {
      background: var(--progress-bg-color);
      border-radius: 0.125rem;
    }

    .progress-time {
      display: flex;
      justify-content: flex-end;
      margin-top: 0.25rem;
      font-size: 0.6875rem;
      color: var(--offwhite-text-color);
    }
  }

  .title-section {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
    margin-top: auto;

    .play-icon {
      font-size: 1.5rem;
      color: var(--primary-color);
      flex-shrink: 0;
    }

    .title-text {
      min-width: 0;
      flex: 1;
    }

    .series-title {
      color: var(--primary-color);
      font-size: 1rem;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .chapter-info {
      color: var(--offwhite-text-color);
      font-size: 0.8125rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  .user-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--offwhite-text-color);

    .username {
      color: var(--offwhite-text-color);
      font-size: 0.8125rem;
      font-weight: 500;
    }
  }
}

// Responsive adjustments
@media (max-width: 768px) {
  .activity-card {
    .cover-container {
      width: 7.5rem;
      height: 11.25rem;

      .chapter-cover {
        width: 2.8125rem;
        height: 4.0625rem;
      }
    }

    .activity-details {
      padding: 0.75rem;
    }

    .series-title {
      font-size: 0.875rem;
    }
  }
}
