/* Inferno / Volcano Pack - InnovaCore KZ */

/* Base volcanic palette */
:root {
  --volcanic-black: #0b0a0a;
  --molten-core-1: #ff3b00;
  --molten-core-2: #ff6a00;
  --hot-veins: #ffd166;
  --basalt-1: #3b3a39;
  --basalt-2: #54514f;
  --text-primary: #fafafa;
  --text-secondary: rgba(255, 255, 255, 0.88);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--volcanic-black);
  color: var(--text-secondary);
}

/* Magma gradient utility */
.magma-gradient {
  background: linear-gradient(135deg, var(--molten-core-1), var(--molten-core-2), var(--hot-veins));
}

/* Lava glow effect */
.lava-glow {
  background: rgba(255, 59, 0, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 106, 0, 0.3);
  box-shadow: 0 0 15px rgba(255, 59, 0, 0.2);
  transition: all 0.3s ease;
}

.lava-glow:hover {
  background: rgba(255, 106, 0, 0.25);
  box-shadow: 0 0 25px rgba(255, 106, 0, 0.4), inset 0 0 15px rgba(255, 59, 0, 0.2);
  border-color: rgba(255, 209, 102, 0.5);
}

/* Basalt frame */
.basalt-frame {
  border: 3px solid var(--basalt-2);
  border-radius: 8px;
  padding: 4px;
  background: var(--basalt-1);
  position: relative;
  overflow: hidden;
}

/* Crack border effect */
.crack-border {
  border-bottom: 1px solid var(--basalt-2);
  position: relative;
}

.crack-border::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--molten-core-1), transparent);
  opacity: 0.3;
}

/* Ash dust particles */
.ash-dust {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(84, 81, 79, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(84, 81, 79, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(84, 81, 79, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 40% 90%, rgba(84, 81, 79, 0.09) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 120px 120px, 180px 180px;
  pointer-events: none;
  z-index: 1;
}

/* Heat haze effect */
.heat-haze {
  position: relative;
}

.heat-haze::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 59, 0, 0.03) 50%, transparent 100%);
  pointer-events: none;
  animation: heatWave 3s ease-in-out infinite;
}

@keyframes heatWave {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-2px);
  }
}

/* Ember dot */
.ember-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hot-veins), var(--molten-core-2));
  box-shadow: 0 0 10px var(--molten-core-1);
  display: inline-block;
}

/* Volcano panel */
.volcano-panel {
  background: rgba(59, 58, 57, 0.4);
  border: 1px solid var(--basalt-2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.volcano-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--molten-core-2), transparent);
  opacity: 0.4;
}

/* Ridge divider */
.ridge-divider {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--basalt-2) 10%,
    var(--molten-core-1) 20%,
    var(--basalt-2) 30%,
    transparent 40%,
    transparent 60%,
    var(--basalt-2) 70%,
    var(--molten-core-2) 80%,
    var(--basalt-2) 90%,
    transparent 100%
  );
  position: relative;
  margin: 3rem 0;
}

.ridge-divider::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 5px;
  background: inherit;
  filter: blur(2px);
  opacity: 0.5;
}

/* Sticky label */
.sticky-label {
  background: rgba(11, 10, 10, 0.85);
  border: 1px solid var(--molten-core-2);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 10px rgba(255, 59, 0, 0.3);
}

/* Flow columns */
.flow-columns {
  column-count: 1;
  column-gap: 2rem;
  text-align: justify;
}

@media (min-width: 768px) {
  .flow-columns {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .flow-columns {
    column-count: 3;
  }
}

.flow-columns p {
  margin-bottom: 1rem;
  break-inside: avoid;
}

/* Pull ember quote */
.pull-ember {
  background: linear-gradient(135deg, rgba(255, 59, 0, 0.2), rgba(255, 106, 0, 0.15));
  border-left: 4px solid var(--molten-core-2);
  border-radius: 8px;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--hot-veins);
  text-align: center;
  box-shadow: 0 4px 20px rgba(255, 59, 0, 0.2);
}

/* Seismic masonry grid */
.seismic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: auto;
}

/* Molten outline */
.molten-outline {
  text-shadow: 0 0 10px var(--molten-core-1), 0 0 20px var(--molten-core-2), 0 0 30px var(--hot-veins);
}

/* Smoke veil */
.smoke-veil {
  position: relative;
}

.smoke-veil::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(11, 10, 10, 0.6) 100%);
  pointer-events: none;
}

/* Header shrink on scroll */
header.header-shrink {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: linear-gradient(180deg, var(--volcanic-black), rgba(11, 10, 10, 0.95));
  border-bottom: 2px solid var(--molten-core-1);
}

/* Sticky title for cases */
.sticky-title {
  position: sticky;
  top: 80px;
  z-index: 10;
  background: rgba(11, 10, 10, 0.9);
  padding: 1rem 0;
  backdrop-filter: blur(10px);
}

/* Hover glow for team cards */
.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 106, 0, 0.4), inset 0 0 20px rgba(255, 59, 0, 0.1);
}

/* Focus glow for form inputs */
.focus-glow:focus {
  outline: none;
  border-color: var(--molten-core-2);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.3), inset 0 0 10px rgba(255, 59, 0, 0.1);
}

/* Smooth scrolling */
* {
  scroll-behavior: smooth;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .heat-haze::before {
    animation: none;
  }

  .ash-dust {
    background: none;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sticky-title {
    top: 60px;
    font-size: 1.5rem;
  }

  .flow-columns {
    column-count: 1;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup {
    display: none;
  }
}

/* Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--hot-veins);
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--volcanic-black);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--molten-core-1), var(--molten-core-2));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--molten-core-2), var(--hot-veins));
}
