/* Festeiros premium styling for .NET MVC (Tailwind & Multi-Theme Version) */

html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Body Background Gradients */
body {
  background: radial-gradient(circle at 50% -20%, rgba(249, 75, 133, 0.08) 0%, #f9fafb 60%),
              radial-gradient(circle at 0% 100%, rgba(255, 138, 34, 0.08) 0%, #f9fafb 50%),
              radial-gradient(circle at 100% 100%, rgba(27, 153, 166, 0.08) 0%, #f9fafb 50%);
  background-attachment: fixed;
}

.dark body {
  background: radial-gradient(circle at 50% -20%, #F94B85 0%, #111111 50%),
              radial-gradient(circle at 0% 100%, #FF8A22 0%, #111111 40%),
              radial-gradient(circle at 100% 100%, #1B99A6 0%, #111111 40%);
  background-attachment: fixed;
}

/* Premium Cards matching the theme */
.festeiros-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.dark .festeiros-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Light mode card styling */
.festeiros-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
}

.festeiros-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 75, 133, 0.4);
  box-shadow: 0 10px 30px rgba(249, 75, 133, 0.08);
}

.dark .festeiros-card:hover {
  border-color: rgba(249, 75, 133, 0.3);
  box-shadow: 0 10px 30px rgba(249, 75, 133, 0.15);
}

.festeiros-card-accent {
  height: 4px;
  width: 100%;
}

.festeiros-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.festeiros-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #111111;
}

.dark .festeiros-card-title {
  color: #F8F9FA;
}

.festeiros-card-desc {
  color: rgba(17, 17, 17, 0.6);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.dark .festeiros-card-desc {
  color: rgba(248, 249, 250, 0.5);
}

.festeiros-card-btn {
  background: linear-gradient(90deg, #FFDF20, #FF8A22, #F94B85, #9B4DFF);
  background-size: 200% auto;
  border: none;
  color: #111111 !important;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-align: center;
  transition: all 0.5s ease;
  cursor: pointer;
}

.festeiros-card-btn:hover {
  background-position: right center;
  box-shadow: 0 0 20px rgba(249, 75, 133, 0.4);
}

/* Card Image Hover Effects */
.card-img-hover {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.festeiros-card:hover .card-img-hover {
  transform: scale(1.1) !important;
}

/* --- normalizações de Inputs e Elementos --- */

input, 
textarea,
select,
.p-inputtext,
.p-inputnumber-input {
  background-color: rgba(0, 0, 0, 0.02) !important;
  color: #111111 !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 0.75rem !important;
  transition: all 0.2s ease-in-out !important;
}

.dark input, 
.dark textarea,
.dark select,
.dark .p-inputtext,
.dark .p-inputnumber-input {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #F8F9FA !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

input::placeholder,
textarea::placeholder,
.p-inputtext::placeholder {
  color: rgba(0, 0, 0, 0.4) !important;
}

.dark input::placeholder,
.dark textarea::placeholder,
.dark .p-inputtext::placeholder {
  color: rgba(248, 249, 250, 0.3) !important;
}

input:focus, 
textarea:focus, 
.p-inputtext:focus,
.p-inputnumber-input:focus {
  border-color: #F94B85 !important;
  box-shadow: 0 0 0 3px rgba(249, 75, 133, 0.2) !important;
  outline: none !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
}

.dark input:focus, 
.dark textarea:focus, 
.dark .p-inputtext:focus,
.dark .p-inputnumber-input:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* PrimeNG Listbox e dropdowns */
.p-listbox, 
.p-select-list, 
.p-select-panel,
.p-select-option,
.p-listbox-option {
  background-color: #ffffff !important;
  color: #111111 !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

.dark .p-listbox, 
.dark .p-select-list, 
.dark .p-select-panel,
.dark .p-select-option,
.dark .p-listbox-option {
  background-color: #1a1a1a !important;
  color: #F8F9FA !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.p-listbox-option:not(.p-highlight):hover,
.p-select-option:not(.p-highlight):hover {
  background-color: rgba(0, 0, 0, 0.04) !important;
  color: #111111 !important;
}

.dark .p-listbox-option:not(.p-highlight):hover,
.dark .p-select-option:not(.p-highlight):hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #F8F9FA !important;
}

.p-listbox-option.p-highlight,
.p-select-option.p-highlight {
  background-color: rgba(249, 75, 133, 0.15) !important;
  color: #F94B85 !important;
}

.dark .p-listbox-option.p-highlight,
.dark .p-select-option.p-highlight {
  background-color: rgba(249, 75, 133, 0.2) !important;
}

/* Customização dos Chips PrimeNG */
.p-chip {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: rgba(0, 0, 0, 0.7) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.dark .p-chip {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(248, 249, 250, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.p-chip-remove-icon {
  color: rgba(0, 0, 0, 0.4) !important;
  transition: color 0.2s ease;
}

.dark .p-chip-remove-icon {
  color: rgba(248, 249, 250, 0.4) !important;
}

.p-chip-remove-icon:hover,
.dark .p-chip-remove-icon:hover {
  color: #F94B85 !important;
}

/* Correção para botões desabilitados do PrimeNG */
.p-button:disabled,
.p-button[disabled] {
  opacity: 0.5 !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: rgba(0, 0, 0, 0.3) !important;
}

.dark .p-button:disabled,
.dark .p-button[disabled] {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: rgba(248, 249, 250, 0.3) !important;
}

/* Botão Voltar Padronizado */
.fest-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.6rem 1.25rem !important;
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 9999px !important;
  color: rgba(17, 17, 17, 0.6) !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(10px) !important;
}

.dark .fest-back-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(248, 249, 250, 0.6) !important;
}

.fest-back-btn:hover {
  color: #F8F9FA !important;
  background: rgba(249, 75, 133, 0.1) !important;
  border-color: rgba(249, 75, 133, 0.4) !important;
  box-shadow: 0 0 15px rgba(249, 75, 133, 0.2) !important;
  transform: translateX(-3px) !important;
}

.dark .fest-back-btn:hover {
  color: #F8F9FA !important;
}

.fest-back-btn i {
  font-size: 0.8rem !important;
  transition: transform 0.3s ease !important;
}

.fest-back-btn:hover i {
  transform: translateX(-2px) !important;
}

/* Helpers de borda */
.border-white-5 {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

.dark .border-white-5 {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.border-white-10 {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.dark .border-white-10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Form layout overrides */
.input-group-text {
  background-color: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: rgba(17, 17, 17, 0.5) !important;
}

.dark .input-group-text {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(248, 249, 250, 0.5) !important;
}

/* Validation styles */
.field-validation-error {
  color: #F94B85 !important;
  font-size: 0.8rem;
  font-weight: 500;
}

.input-validation-error {
  border-color: #F94B85 !important;
  box-shadow: 0 0 0 3px rgba(249, 75, 133, 0.25) !important;
}

/* Fallback do nav responsivo: o Tailwind local não está compilando variantes
   "md:" (bug pré-existente na toolchain, independente deste deploy), então
   as regras "md:*" do _Layout.cshtml nunca chegam ao CSS gerado. Estas regras
   escritas à mão restauram o comportamento md (>= 768px) até a build ser corrigida. */
@media (min-width: 768px) {
  #navbar-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    margin-top: 0 !important;
  }

  #navbar-menu > ul {
    flex-direction: row !important;
    width: auto !important;
  }

  #tools-dropdown-menu {
    position: absolute !important;
  }

  .mobile-nav-controls {
    display: none !important;
  }

  .desktop-theme-toggle {
    display: flex !important;
  }
}