/**
 * FIMONLINE - Components Stylesheet
 * Buttons, Badges, Toasts, Dropdowns, Grid Layouts
 */

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 420px;
  background: rgba(30, 30, 30, 0.95);
  border-left: 4px solid var(--primary-red);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.3s ease;
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left-color: #46D369;
}

.toast.warning {
  border-left-color: #FFA726;
}

.toast.error {
  border-left-color: #E50914;
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.toast-msg {
  font-size: 0.82rem;
  color: #bbb;
}

/* ==========================================================================
   PAGE HERO & HEADERS (For category / genres / search pages)
   ========================================================================== */
.page-header-wrapper {
  padding-top: 100px;
  padding-bottom: 24px;
  background: linear-gradient(180deg, rgba(20,20,20,0.9) 0%, rgba(20,20,20,0) 100%);
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-gray);
}

/* Filter Toolbar */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 24px 0 32px 0;
  background: rgba(30, 30, 30, 0.6);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.custom-select {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.custom-select:focus,
.custom-select:hover {
  border-color: var(--primary-red);
}

/* Movie Catalog Grid (Standard Netflix Grid) */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

/* Search Bar (Dedicated Page) */
.search-hero-box {
  position: relative;
  max-width: 720px;
  margin: 20px auto 40px auto;
}

.search-hero-input {
  width: 100%;
  background: rgba(40, 40, 40, 0.85);
  border: 2px solid #555;
  border-radius: 30px;
  padding: 16px 60px 16px 24px;
  font-size: 1.15rem;
  color: #fff;
  outline: none;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
}

.search-hero-input:focus {
  border-color: var(--primary-red);
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.4);
}

.search-hero-icon {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #999;
  cursor: pointer;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #888;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  color: #444;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ccc;
  margin-bottom: 8px;
}
