/* ============================================================
   Terra Flama Internasional - Custom Styles
   Design System: "Terra Flama Industrial"
   ============================================================ */

/* --- Hard Shadow Effects --- */
.hard-shadow {
  box-shadow: 4px 4px 0px rgba(48, 48, 48, 0.2);
}
.hard-shadow-active:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px rgba(48, 48, 48, 0.2);
}
.hard-shadow-sm {
  box-shadow: 2px 2px 0px rgba(48, 48, 48, 0.15);
}
.hard-shadow-lg {
  box-shadow: 6px 6px 0px rgba(48, 48, 48, 0.2);
}

/* --- Fire Gradient --- */
.fire-gradient {
  background: linear-gradient(135deg, #b41e00 0%, #da3515 100%);
}
.fire-gradient-reverse {
  background: linear-gradient(135deg, #da3515 0%, #b41e00 100%);
}
.ember-hover:hover {
  filter: brightness(1.15);
}

/* --- Industrial Borders --- */
.industrial-border {
  border: 1px solid rgba(48, 48, 48, 0.1);
}
.industrial-border-dark {
  border: 1px solid rgba(48, 48, 48, 0.25);
}

/* --- Accent Bar --- */
.accent-bar {
  border-left: 4px solid #b41e00;
}
.accent-bar-right {
  border-right: 4px solid #b41e00;
}
.accent-bar-top {
  border-top: 4px solid #b41e00;
}

/* --- Text Colors --- */
.text-fire {
  color: #b41e00;
}
.text-fire-dim {
  color: #ffb4a4;
}

/* --- Material Symbols --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Chamfered Corners (Industrial Accent) --- */
.chamfered {
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

/* --- Progress Bar (Fire Gradient) --- */
.progress-fire {
  height: 8px;
  border-radius: 0;
  background: linear-gradient(135deg, #b41e00 0%, #da3515 100%);
}

/* --- Data Table Styles --- */
.data-table-header {
  background: #1b1c1c;
  color: white;
}
.data-table-row:nth-child(even) {
  background: #f5f3f3;
}
.data-table-row:nth-child(odd) {
  background: #ffffff;
}
.data-table-highlight {
  color: #b41e00;
  font-weight: 700;
}

/* --- Button Styles --- */
.btn-primary {
  background: linear-gradient(135deg, #b41e00 0%, #da3515 100%);
  color: white;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  border-radius: 0.25rem;
  box-shadow: 4px 4px 0px rgba(48, 48, 48, 0.2);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  filter: brightness(1.15);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px rgba(48, 48, 48, 0.2);
}

.btn-secondary {
  background: #1b1c1c;
  color: white;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  border-radius: 0.25rem;
  border: 1px solid rgba(48, 48, 48, 0.2);
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: #000000;
}

.btn-ghost {
  background: transparent;
  color: #1b1c1c;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid rgba(48, 48, 48, 0.1);
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  border-color: #b41e00;
  color: #b41e00;
}

/* --- Input Fields --- */
.input-industrial {
  background: white;
  border: 1px solid #906f69;
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
}
.input-industrial:focus {
  border-color: #b41e00;
  border-width: 2px;
}

/* --- Card Styles --- */
.card-industrial {
  background: white;
  border: 1px solid rgba(48, 48, 48, 0.1);
  border-radius: 0.25rem;
  box-shadow: 4px 4px 0px rgba(48, 48, 48, 0.2);
  transition: all 0.3s ease;
}
.card-industrial:hover {
  box-shadow: 6px 6px 0px rgba(48, 48, 48, 0.25);
  transform: translate(-1px, -1px);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes glowPulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}
.animate-glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f3f3;
}
::-webkit-scrollbar-thumb {
  background: #906f69;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5c403a;
}

/* --- Ember Divider --- */
.ember-divider {
  height: 4px;
  background: linear-gradient(135deg, #b41e00 0%, #da3515 100%);
  width: 80px;
  margin: 0 auto;
}

/* --- Section Transitions --- */
.section-enter {
  opacity: 0;
  transform: translateY(20px);
}
.section-visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

/* --- Mobile Menu --- */
.mobile-menu-open {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.mobile-menu-closed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

/* --- Image Zoom Effect --- */
.img-zoom-container {
  overflow: hidden;
}
.img-zoom-container img,
.img-zoom-container .bg-cover {
  transition: transform 0.7s ease;
}
.img-zoom-container:hover img,
.img-zoom-container:hover .bg-cover {
  transform: scale(1.1);
}

/* --- Navigation Active Link --- */
.nav-link-active {
  color: #b41e00;
  font-weight: 700;
  border-bottom: 2px solid #b41e00;
}

/* --- Spec Sheet Table --- */
.spec-table th {
  background: #1b1c1c;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}
.spec-table td {
  padding: 12px 16px;
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  border-bottom: 1px solid rgba(48, 48, 48, 0.08);
}
.spec-table tr:nth-child(even) td {
  background: #f5f3f3;
}

/* --- Language Toggle --- */
.lang-toggle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 0.25rem;
  border: 1px solid rgba(48, 48, 48, 0.15);
  background: transparent;
  color: #5f5e5e;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  line-height: 1;
}
.lang-toggle:hover {
  border-color: #b41e00;
  color: #b41e00;
}
.lang-toggle.lang-active {
  background: #b41e00;
  color: white;
  border-color: #b41e00;
}

/* --- Print Styles --- */
@media print {
  nav, footer, .no-print {
    display: none !important;
  }
}