/* ============================================================================
   FILMPAKHUIS - COMPONENTS CSS
   Reusable UI components
   ============================================================================ */

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: white;
  color: #4b5563;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: var(--danger);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
  transform: translateY(-1px);
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-price {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  padding: 0.5rem 1rem;
  font-weight: 800;
}

.badge-rating {
  background: #F5C518;
  color: #000000;
  border: 1px solid #e0b100;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-genre {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #4b5563;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

.badge-cart {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  min-width: 20px;
  height: 20px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.badge-stock {
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  font-size: 1rem;
}

.badge-stock-in {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.badge-stock-out {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.badge-lg {
  padding: 0.75rem 1.25rem;
  font-size: 1.25rem;
}

.badge-xl {
  padding: 1rem 2rem;
  border-radius: 1.25rem;
  font-size: 2rem;
  font-weight: 800;
}

/* === CARDS === */
.card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
}

.card-static:hover {
  transform: none;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-gradient {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(10px);
}

.card-padded {
  padding: 2rem;
}

.card-padded-lg {
  padding: 2.5rem 2rem;
}

.card-rounded-xl {
  border-radius: 2rem;
}

.card-tinted {
  background: rgba(99, 102, 241, 0.05);
  border: none;
}

/* === AUTOCOMPLETE === */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: none;
}
.autocomplete-dropdown.active { display: block; }
.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #111;
  text-decoration: none;
}
.autocomplete-item img {
  border-radius: 0.25rem;
  object-fit: cover;
}
.autocomplete-item:hover,
.autocomplete-item.active {
  background: #f3f4f6;
}
