/* Adoption Styles - Tema Arancione Caldo */

/* ===== OVERRIDE COLORI PRINCIPALI ===== */
:root {
  /* Colori primari arancioni */
  --primary-color: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fb923c;
  
  /* Gradient caldo */
  --gradient: linear-gradient(135deg, #f97316, #fb923c);
  --gradient-hover: linear-gradient(135deg, #ea580c, #f97316);
  
  /* Colori specifici adozioni */
  --adoption-offering: #f97316;
  --adoption-seeking: #ea580c;
  --adoption-accent: #fed7aa;
  --adoption-light: #fff7ed;
}

/* ===== BADGE ADOZIONI ===== */
.offering-adoption {
  background: rgba(249, 115, 22, 0.1);
  color: var(--adoption-offering);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.seeking-adoption {
  background: rgba(234, 88, 12, 0.1);
  color: var(--adoption-seeking);
  border: 1px solid rgba(234, 88, 12, 0.3);
}

/* ===== SEZIONE STATISTICHE ===== */
.stats-section {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: var(--adoption-light);
  border-radius: 16px;
  border: 2px solid var(--adoption-accent);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== ADOPTION CARDS ===== */
.adoption-post {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.adoption-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.adoption-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

/* ===== ADOPTION DETAILS ===== */
.adoption-details {
  padding: 16px 20px;
  background: var(--adoption-light);
  border-top: 1px solid var(--adoption-accent);
}

.adoption-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.adoption-feature {
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(249, 115, 22, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.adoption-fee {
  background: var(--gradient);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
}

.adoption-fee.free {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ===== FLOATING BUTTON OVERRIDE ===== */
.floating-add {
  background: var(--gradient) !important;
  color: white !important;
  font-size: 1.5rem !important;
}

.floating-add:hover {
  background: var(--gradient-hover) !important;
  transform: scale(1.1) !important;
}

/* ===== DISTANCE SLIDER OVERRIDE ===== */
.distance-slider::-webkit-slider-thumb {
  background: var(--gradient) !important;
}

.distance-slider::-moz-range-thumb {
  background: var(--gradient) !important;
}

.distance-label {
  background: rgba(249, 115, 22, 0.1) !important;
  color: var(--primary-color) !important;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

/* ===== MARKER ICONS ADOZIONI ===== */
.adoption-marker-offering {
  background-color: var(--adoption-offering);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.adoption-marker-seeking {
  background-color: var(--adoption-seeking);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ===== CONTACT BUTTON OVERRIDE ===== */
.contact-user-btn {
  background: var(--gradient) !important;
}

.contact-user-btn:hover {
  background: var(--gradient-hover) !important;
}

/* ===== NAVIGATION ACTIVE STATE ===== */
.nav-item.active {
  color: var(--primary-color) !important;
  background: rgba(249, 115, 22, 0.1) !important;
  border: 1px solid rgba(249, 115, 22, 0.3) !important;
}

/* ===== FILTERS TITLE OVERRIDE ===== */
.filters-title {
  color: var(--primary-color) !important;
}

/* ===== POPUP CHAT BUTTON ===== */
.popup-chat-btn {
  background: var(--primary-color) !important;
}

.popup-chat-btn:hover {
  background: var(--primary-dark) !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .stat-item {
    padding: 12px 8px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .adoption-features {
    gap: 6px;
  }
  
  .adoption-feature {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes adoptionSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.adoption-post {
  animation: adoptionSlideUp 0.4s ease;
}

.stat-item {
  animation: adoptionSlideUp 0.3s ease;
}

/* ===== THEME COLOR META OVERRIDE ===== */
body {
  --theme-color: #f97316;
}

/* ===== LOADING PLACEHOLDER OVERRIDE ===== */
.loading-placeholder {
  color: var(--primary-color) !important;
}

/* ===== SUBTLE MULTIPLE SELECT STYLES ===== */
.filter-select[multiple] {
  /* Mantieni l'aspetto normale ma permetti selezioni multiple */
  height: auto;
  min-height: 38px; /* Altezza normale di un select */
}

.filter-select[multiple] option:checked {
  background: var(--primary-color);
  color: white;
}

/* ===== HOVER EFFECTS ===== */
.adoption-post:hover .adoption-feature {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
}

.adoption-post:hover .stat-number {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .adoption-post {
    animation: none;
  }
  
  .stat-item {
    animation: none;
  }
  
  .adoption-post:hover {
    transform: none;
  }
  
  .stat-item:hover {
    transform: none;
  }
}
