/* Next Talk Card Component - Left Side */

.next-talk-card {
  position: fixed;
  bottom: var(--size-4);
  left: var(--size-4);
  z-index: var(--layer-navigation);
  width: min(40%, var(--size-content-2));
  max-width: 400px;
  background: var(--layer-surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-large);
  box-shadow: var(--elevation-3);
  padding: var(--size-3);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s var(--ease-standard);
  border-left: 4px solid var(--primary); /* Visual indicator for upcoming talks */
}

.next-talk-card:hover {
  box-shadow: var(--elevation-4);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.next-talk-card:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--elevation-2);
}

/* Card Content Layout - Icon on left, 3 lines on right */
.next-talk-card-content {
  display: flex;
  gap: var(--size-3);
  align-items: flex-start;
}

.next-talk-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* Three-line content area */
.next-talk-details {
  flex: 1;
  min-width: 0; /* Allow text truncation */
  display: flex;
  flex-direction: column;
  gap: var(--size-1);
}

/* Line 1: Talk Title */
.next-talk-title {
  font-size: 1rem;
  font-weight: var(--font-weight-6);
  color: var(--on-surface);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Line 2: Role and Time */
.next-talk-role-time {
  font-size: var(--font-size-body-small);
  color: var(--on-surface-variant);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.next-talk-role {
  font-weight: var(--font-weight-5);
  color: var(--primary);
}

/* Line 3: Status and Conference */
.next-talk-meta {
  display: flex;
  align-items: center;
  gap: var(--size-1);
  font-size: var(--font-size-body-small);
  color: var(--on-surface-variant);
  line-height: 1.2;
}

.next-talk-status {
  padding: 2px 6px;
  border-radius: var(--radius-small);
  font-size: var(--font-size-label-small);
  font-weight: var(--font-weight-5);
}

.next-talk-status.starting-soon {
  background: var(--warning-container);
  color: var(--on-warning-container);
}

.next-talk-status.in-progress {
  background: var(--error-container);
  color: var(--on-error-container);
}

.next-talk-separator {
  color: var(--outline);
}

.next-talk-conference {
  color: var(--primary);
  font-weight: var(--font-weight-5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Multiple talks indicator */
.next-talk-count {
  position: absolute;
  top: var(--size-2);
  right: var(--size-2);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-full);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-label-small);
  font-weight: var(--font-weight-6);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .next-talk-card {
    bottom: 70px; /* Account for mobile navigation */
    left: 10px;
    width: 45%; /* Mobile width to match notification stack */
    padding: var(--size-2);
  }

  .next-talk-card-content {
    gap: var(--size-2);
  }

  .next-talk-icon {
    width: 32px;
    height: 32px;
  }

  .next-talk-details {
    gap: 4px;
  }

  .next-talk-title {
    font-size: var(--font-size-body-small);
  }

  .next-talk-role-time {
    font-size: var(--font-size-label-medium);
  }

  .next-talk-meta {
    font-size: var(--font-size-label-small);
    gap: 4px;
  }

  .next-talk-count {
    width: 20px;
    height: 20px;
    font-size: var(--font-size-label-small);
  }
}

/* Focus states for accessibility */
.next-talk-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .next-talk-card {
    border-width: 2px;
    border-color: var(--outline);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .next-talk-card {
    transition: none;
  }
}

/* Dark mode considerations */
@media (prefers-color-scheme: dark) {
  .next-talk-card {
    border-color: var(--outline);
  }
}