/**
 * maker-slot.css — Maker atama slot stili (Apple HIG)
 *
 * 2 kare slot yan yana, inline dropdown, availability badge.
 */

.maker-slot {
  position: relative;
}

.maker-slot__slots {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

/* ─── Slot (bos ve dolu) ─── */
.maker-slot__slot {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

/* Bos slot */
.maker-slot__slot--empty {
  border: 2px dashed var(--color-border);
  background: var(--color-bg-secondary);
  cursor: pointer;
}

.maker-slot__slot--empty:hover,
.maker-slot__slot--active {
  border-color: var(--color-brand-primary);
  background: var(--color-brand-light);
  transform: scale(1.02);
}

.maker-slot__plus {
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.maker-slot__slot--empty:hover .maker-slot__plus,
.maker-slot__slot--active .maker-slot__plus {
  color: var(--color-brand-primary);
}

.maker-slot__slot-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-medium);
}

.maker-slot__slot--empty:hover .maker-slot__slot-label,
.maker-slot__slot--active .maker-slot__slot-label {
  color: var(--color-brand-primary);
}

/* Dolu slot */
.maker-slot__slot--filled {
  border: 2px solid var(--color-border-light);
  background: var(--color-bg-primary);
  position: relative;
}

.maker-slot__maker-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  text-align: center;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maker-slot__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-bg-secondary);
  color: var(--color-text-tertiary);
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.maker-slot__slot--filled:hover .maker-slot__remove {
  opacity: 1;
}

.maker-slot__remove:hover {
  background: var(--color-error-bg);
  color: var(--color-error);
}

/* ─── Inline Dropdown (slots altinda) ─── */
.maker-slot__dropdown-area {
  margin-top: var(--space-md);
}

.maker-slot__dropdown {
  width: 100%;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.maker-slot__dropdown--visible {
  opacity: 1;
}

.maker-slot__dropdown-header {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg-secondary);
}

.maker-slot__dropdown-list {
  overflow-y: auto;
  max-height: 250px;
  padding: var(--space-xs) 0;
}

.maker-slot__dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-fast);
}

.maker-slot__dropdown-item:hover:not(:disabled) {
  background: var(--color-bg-secondary);
}

.maker-slot__dropdown-item--assigned {
  opacity: 0.4;
  cursor: default;
}

.maker-slot__dropdown-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.maker-slot__dropdown-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.maker-slot__dropdown-status {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Availability durumu */
.maker-slot__status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.maker-slot__status--available {
  background: var(--color-success);
}

.maker-slot__status--busy {
  background: var(--color-error);
}

.maker-slot__dropdown-empty {
  padding: var(--space-md);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

/* Responsive */
@media (max-width: 480px) {
  .maker-slot__slot {
    width: 110px;
    height: 110px;
  }
}
