/* Site Navigation Dashboard Styles*/

.feature-card {
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 16px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.feature-icon-container {
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.feature-icon {
  font-size: 2.5rem !important;
  color: white;
}

.feature-title {
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}

/* Info Card - Blue background */
.info-card {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  position: relative;
}

.info-card .feature-icon-container {
  animation: infoPulse 3s ease-in-out infinite;
}

@keyframes infoPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0);
  }
}

/* Hierarchy Card - Teal background */
.hierarchy-card {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  position: relative;
}

.hierarchy-card .feature-icon-container {
  animation: hierarchyExpand 3s ease-in-out infinite;
}

@keyframes hierarchyExpand {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* GTB Card - Purple background */
.gtb-card {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  position: relative;
}

.gtb-card .feature-icon-container {
  animation: gtbSpin 4s linear infinite;
}

@keyframes gtbSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Health Card - Green background */
.health-card {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  position: relative;
}

.health-card .feature-icon-container {
  animation: healthBeat 2s ease-in-out infinite;
}

@keyframes healthBeat {
  0%,
  100% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.1);
  }
  20% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.1);
  }
  40% {
    transform: scale(1);
  }
}

/* Energy Card - Yellow background with animated lightning bolt */
.energy-card {
  background: linear-gradient(135deg, #fdb813 0%, #f59e0b 100%);
  position: relative;
}

.energy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%
  );
  animation: energyPulse 2s ease-in-out infinite;
}

@keyframes energyPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.lightning-bolt {
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lightning-svg {
  width: 40px;
  height: 40px;
  color: white;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
  animation: lightningStrike 1.5s ease-in-out infinite;
}

@keyframes lightningStrike {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  10% {
    transform: scale(1.2);
    opacity: 1;
  }
  15% {
    transform: scale(1);
    opacity: 0.8;
  }
  20% {
    transform: scale(1.15);
    opacity: 1;
  }
  25% {
    transform: scale(1);
    opacity: 0.9;
  }
  30% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Water Card - Blue background */
.water-card {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.water-card .feature-icon-container {
  animation: waterWave 3s ease-in-out infinite;
}

@keyframes waterWave {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Gas Card - Orange/Red background */
.gas-card {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.gas-card .feature-icon-container {
  animation: flameFlicker 2s ease-in-out infinite;
}

@keyframes flameFlicker {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.05) translateY(-2px);
  }
  50% {
    transform: scale(0.98);
  }
  75% {
    transform: scale(1.03) translateY(-1px);
  }
}

/* Heating Card - Red background */
.heating-card {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.heating-card .feature-icon-container {
  animation: heatPulse 2.5s ease-in-out infinite;
}

@keyframes heatPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0);
  }
}

/* Ventilation Card - Cyan background */
.ventilation-card {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.ventilation-card .feature-icon-container {
  animation: airSpin 3s linear infinite;
}

@keyframes airSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Lighting Card - Amber background */
.lighting-card {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.lighting-card .feature-icon-container {
  animation: lightGlow 2s ease-in-out infinite;
}

@keyframes lightGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

/* Settings Card - Slate/Gray background with gear animation */
.settings-card {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  position: relative;
}

.settings-card .feature-icon-container {
  animation: settingsRotate 8s linear infinite;
}

@keyframes settingsRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.settings-card:hover .feature-icon-container {
  animation: settingsRotateFast 2s linear infinite;
}

@keyframes settingsRotateFast {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Generic Card - Gray background */
.generic-card {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* Responsive adjustments */
@media (max-width: 1280px) {
  .feature-card {
    min-height: 130px;
    padding: 1.25rem;
  }
}

@media (max-width: 960px) {
  .feature-card {
    min-height: 120px;
    padding: 1rem;
  }

  .feature-icon-container {
    width: 56px;
    height: 56px;
  }

  .feature-icon {
    font-size: 2.2rem !important;
  }

  .lightning-bolt {
    width: 56px;
    height: 56px;
  }

  .lightning-svg {
    width: 36px;
    height: 36px;
  }

  .feature-title {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .feature-card {
    min-height: 110px;
    padding: 0.875rem;
  }

  .feature-icon-container {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
  }

  .feature-icon {
    font-size: 1.8rem !important;
  }

  .lightning-bolt {
    width: 48px;
    height: 48px;
  }

  .lightning-svg {
    width: 30px;
    height: 30px;
  }

  .feature-title {
    font-size: 0.8rem;
  }
}
