/* Format Type Cards */
.format-container {
  margin-bottom: 1.5rem;
}

.format-selector {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.format-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-600);
  margin-bottom: 0.75rem;
  display: block;
}

.format-card {
  width: 105px;
  height: 105px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: all var(--transition-normal) cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.format-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(124, 58, 237, 0.02));
  transform: translateY(100%);
  transition: transform var(--transition-normal) ease;
}

.format-card:hover {
  transform: translateY(-5px);
}

.format-card:hover::before {
  transform: translateY(0);
}

.format-card.active {
  border-color: var(--primary-color);
  background: rgba(79, 70, 229, 0.03);
  transform: translateY(-5px);
}

.format-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
  transition: all var(--transition-normal) ease;
}

.format-card:hover .format-icon,
.format-card.active .format-icon {
  transform: scale(1.1);
}

.format-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-700);
}

/* Format Carousel */
.format-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 5px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  cursor: grab;
  scroll-behavior: smooth;
}

.format-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.format-carousel.active {
  cursor: grabbing;
}

.format-item {
  min-width: 80px;
  height: 80px;
  border-radius: 12px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal) cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  user-select: none;
}

.format-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.format-item.active {
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.format-badge {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--neutral-700);
  transition: color var(--transition-normal) ease;
}

.format-item.active .format-badge {
  color: white;
}

/* Scroll animation indicators */
.format-container {
  position: relative;
}

.scroll-indicator {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 5;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-normal) ease;
}

.format-container:hover .scroll-indicator {
  opacity: 1;
}

.scroll-left {
  left: 0;
}

.scroll-right {
  right: 0;
}