/* SocrateMobile Main Custom Stylesheet */
body {
  background-color: #030712;
  color: #e2e8f0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
}
.font-orbitron {
  font-family: 'Orbitron', sans-serif;
}
.font-mono {
  font-family: 'Fira Code', monospace;
}
.glass-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(6, 182, 212, 0.15);
}
.ha-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(24, 188, 242, 0.12);
  border: 1px solid rgba(24, 188, 242, 0.35);
  color: #38bdf8;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.025em;
}
.ha-badge img {
  width: 0.875rem;
  height: 0.875rem;
  object-fit: contain;
}

/* HACS Badges : Officiel vs En validation */
.badge-hacs-official {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.025em;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.badge-hacs-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.025em;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.12);
}

.badge-hacs-stopped {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.025em;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.18);
}

.badge-hacs-rejected {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.02em;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grid-bg {
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Integration Tile Enhancements */
.integration-card {
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.integration-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(14, 165, 233, 0.25);
}
.integration-card:active {
  transform: translateY(-1px);
}
.card-click-hint {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.integration-card:hover .card-click-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Detail Modals & Overlays (Domotique, Hardware, 3D Print) */
#integrationModalOverlay,
#hardwareModalOverlay,
#print3dModalOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#integrationModalOverlay.active,
#hardwareModalOverlay.active,
#print3dModalOverlay.active {
  opacity: 1;
  pointer-events: auto;
}
#integrationModalCard,
#hardwareModalCard,
#print3dModalCard {
  max-width: 950px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.15);
  overflow: hidden;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
#integrationModalOverlay.active #integrationModalCard,
#hardwareModalOverlay.active #hardwareModalCard,
#print3dModalOverlay.active #print3dModalCard {
  transform: scale(1) translateY(0);
}

/* Custom Scrollbar for Modal Body */
.custom-modal-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) rgba(15, 23, 42, 0.6);
}
.custom-modal-scroll::-webkit-scrollbar {
  width: 6px;
}
.custom-modal-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
.custom-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
}
.custom-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.6);
}
