
/* ==================== HEADER ==================== */

.site-header {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar {
  padding: 1rem 0;
}

/* Brand Logo */
.navbar-brand {
  padding: 0;
  margin-right: 2rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.brand-logo i {
  font-size: 2rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.brand-text {
  background: linear-gradient(135deg, #334155 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav Links */
.navbar-nav .nav-link {
  color: #64748b;
  font-weight: 600;
  padding: 0.625rem 1rem;
  margin: 0 0.25rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.navbar-nav .nav-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.navbar-nav .nav-link:hover::before {
  opacity: 1;
}

.navbar-nav .nav-link:hover i {
  transform: scale(1.15);
}

.navbar-nav .nav-link.active {
  color: white;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.navbar-nav .nav-link.active i {
  color: white;
}

/* Search Form */
.search-form {
  position: relative;
  min-width: 280px;
}

.input-group.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.input-group.search-wrapper:focus-within {
  border-color: #6366f1;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: #a78bfa;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.input-group.search-wrapper:focus-within .search-icon {
  color: #6366f1;
  transform: scale(1.1);
}

.search-input {
  border: none;
  background: transparent;
  padding: 0.625rem 3rem 0.625rem 3rem;
  color: #334155;
  font-size: 0.95rem;
  flex: 1;
}

.search-input:focus {
  box-shadow: none;
  outline: none;
}

.search-input::placeholder {
  color: #94a3b8;
}

.input-group .search-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #6366f1;
  font-size: 1.5rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.25rem;
}

.input-group .search-btn:hover {
  color: #8b5cf6;
  transform: scale(1.1);
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: white;
  border: 2px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1050;
}

/* Header Buttons */
.btn-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 2px solid rgba(99, 102, 241, 0.2);
  color: #6366f1;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-header i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn-header span {
  position: relative;
  z-index: 1;
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
  border-color: transparent;
}

.btn-header:hover::before {
  opacity: 1;
}

.btn-header:hover i,
.btn-header:hover span {
  color: white;
}

.btn-header:hover i {
  transform: scale(1.1);
}

.btn-favorites:hover i {
  animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.15); }
}

.btn-profile {
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  justify-content: center;
}

.btn-profile i {
  margin: 0;
  font-size: 1.5rem;
}

/* Dropdown Custom */
.dropdown-custom {
  background: white;
  border: 2px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
  padding: 0.5rem;
  margin-top: 0.5rem;
  min-width: 220px;
  animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  padding: 0.75rem 1rem;
  color: #6366f1;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.dropdown-header i {
  font-size: 1.1rem;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: #64748b;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.dropdown-item i {
  font-size: 1.1rem;
  color: #a78bfa;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: #6366f1;
  transform: translateX(3px);
}

.dropdown-item:hover i {
  color: #6366f1;
  transform: scale(1.1);
}

.dropdown-item-danger {
  color: #ef4444;
}

.dropdown-item-danger i {
  color: #ef4444;
}

.dropdown-item-danger:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  color: #dc2626;
}

.dropdown-divider {
  border-color: rgba(99, 102, 241, 0.15);
  margin: 0.5rem 0;
}

/* Navbar Toggler */
.navbar-toggler {
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236366f1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==================== MODALS ==================== */

.modal-custom {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
  animation: modalZoomIn 0.3s ease-out;
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header-custom {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.modal-header-custom::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  animation: floatGlow 8s ease-in-out infinite;
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.modal-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-icon i {
  font-size: 1.5rem;
  color: white;
}

.modal-title {
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}

.btn-close-custom {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  opacity: 1;
  width: 36px;
  height: 36px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  background-image: var(--bs-btn-close-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1em;
  --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293 1.293a1 1 0 011.414 0L8 7.586l6.293-6.293a1 1 0 111.414 1.414L9.414 9l6.293 6.293a1 1 0 01-1.414 1.414L8 10.414l-6.293 6.293A1 1 0 01.293 15.293L6.586 9 .293 2.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
}

.btn-close-custom:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
  --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e5e7eb'%3e%3cpath d='M.293 1.293a1 1 0 011.414 0L8 7.586l6.293-6.293a1 1 0 111.414 1.414L9.414 9l6.293 6.293a1 1 0 01-1.414 1.414L8 10.414l-6.293 6.293A1 1 0 01.293 15.293L6.586 9 .293 2.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
}

.modal-body-custom {
  padding: 2rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.form-label {
  color: #475569;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.form-label i {
  color: #8b5cf6;
  font-size: 1rem;
}

.form-control-custom {
  border: 2px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
}

.form-control-custom:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  outline: none;
}

.form-control-custom::placeholder {
  color: #94a3b8;
}

.form-check-custom {
  padding-left: 1.75rem;
}

.form-check-custom .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.form-check-custom .form-check-input:checked {
  background-color: #6366f1;
  border-color: #6366f1;
}

.form-check-custom .form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-check-custom .form-check-label {
  color: #64748b;
  font-size: 0.9rem;
}

.btn-primary-custom {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.btn-primary-custom i {
  font-size: 1.2rem;
}

.modal-footer-links {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(99, 102, 241, 0.1);
  text-align: center;
}

.modal-footer-links p {
  color: #64748b;
  font-size: 0.95rem;
}

.link-custom {
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.link-custom::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.3s ease;
}

.link-custom:hover {
  color: #8b5cf6;
}

.link-custom:hover::after {
  width: 100%;
}

.link-muted {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-muted:hover {
  color: #6366f1;
}

/* Responsive */
@media (max-width: 991px) {
  .site-header {
    position: relative;
  }
  
  .navbar-collapse {
    background: white;
    border-radius: 16px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
  }
  
  .navbar-nav {
    gap: 0.25rem;
  }
  
  .navbar-nav .nav-link {
    justify-content: flex-start;
  }
  
  .search-form {
    margin: 1rem 0;
    min-width: auto;
  }
  
  #auth-buttons {
    margin-top: 1rem;
    justify-content: flex-start !important;
  }
}

@media (max-width: 576px) {
  .modal-header-custom {
    padding: 1.5rem;
  }
  
  .modal-body-custom {
    padding: 1.5rem;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
  
  .modal-icon {
    width: 44px;
    height: 44px;
  }
  
  .modal-icon i {
    font-size: 1.25rem;
  }
}
.rating-stars {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.rating-stars i {
  font-size: 28px;
  color: #d1d5db;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}
.rating-stars i:hover { transform: scale(1.1); }
.rating-stars i.text-warning { color: #f59e0b !important; }
/* Language dropdown flag button (in navbar) */
#langDropdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(99,102,241,0.25);
}
#langDropdown:hover { background: rgba(255,255,255,0.3); }

/* Slightly narrower search input wrapper to make room */
.search-form .search-wrapper { max-width: 360px; }
@media (max-width: 992px) { .search-form .search-wrapper { max-width: 300px; } }
