/* ==========================================================================
   Stili Personalizzati & Effetti High-Tech Ingegneria - GB Candidatura
   ========================================================================== */

:root {
  --color-primary: #3b82f6;
  --color-primary-dark: #1d4ed8;
  --color-cyan: #06b6d4;
  --color-emerald: #10b981;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

/* Background Engineering Grid Texture */
.engineering-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
}

.dark .engineering-grid {
  background-image: 
    linear-gradient(to right, rgba(59, 130, 246, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
}

/* Radiant Radial Glows */
.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(6, 182, 212, 0.12) 40%, transparent 75%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.dark .hero-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(6, 182, 212, 0.18) 45%, transparent 75%);
}

/* Glassmorphism Card */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .glass-panel {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(55, 65, 81, 0.6);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

.glass-panel:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(59, 130, 246, 0.15);
}

/* Gradient Text Effect */
.gradient-text-tech {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .gradient-text-tech {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulsing Badge for Urgent / Live Info */
@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

.pulse-badge {
  animation: softPulse 2.8s infinite ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.8);
}

.dark ::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Monospace Accent Numbers */
.mono-tag {
  font-family: var(--font-mono);
}

/* Card Badge Tags */
.badge-tech {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Active Filter Pill */
.filter-btn.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.dark .filter-btn.active {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

/* Smooth Accordion Chevron Rotation */
.accordion-toggle[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}
.accordion-icon {
  transition: transform 0.25s ease;
}

/* Toast Notification Animation */
#copy-toast {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#copy-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
