/* assets/css/style.css - Solar Panel (Photovoltaic Silicon & Sun Photon) Inspired Theme */
:root {
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Solar Panel Physical Color Tokens */
  --pv-silicon-deep: #0b1a30;      /* Deep Monocrystalline Silicon Core */
  --pv-silicon-blue: #0e2954;      /* Monocrystalline Solar Cell Blue */
  --pv-wafer-indigo: #133e87;      /* Polycrystalline Crystal Blue */
  --pv-antireflective: #1f51ff;    /* Anti-Reflective Coating Sheen */
  --pv-cyan-reflection: #0077b6;   /* Daylight Solar Glaze */
  --pv-silver-busbar: #cbd5e1;     /* Silver Conductive Grid Contact */
  --pv-photon-gold: #f59e0b;       /* Solar Photon Energy Harvested */
  --pv-sun-flare: #fbbf24;         /* Radiant Sun Ray */
  --pv-eco-green: #10b981;         /* 100% Clean Green Energy */
  --pv-eco-emerald: #059669;       /* Sustainable Environmental Forest */
  --pv-glass-canvas: #f8fafc;      /* Low-Iron Tempered Glass / White Backsheet */
}

/* Universal Typography Spacing: Even, clean, no gaps between alphabets */
html, body, h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea, label, td, th {
  letter-spacing: normal !important;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: "kern" 1, "liga" 1;
  font-feature-settings: "kern" 1, "liga" 1;
}

body {
  font-family: var(--font-family-body);
  background-color: #f8fafc;
  color: #0b1a30;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-family-heading);
  letter-spacing: normal !important;
}

/* Neutralize all Tailwind tracking utilities that introduce artificial gaps or clumps */
.tracking-tighter,
.tracking-tight,
.tracking-normal,
.tracking-wide,
.tracking-wider,
.tracking-widest {
  letter-spacing: normal !important;
}

/* Solar Panel Gradient Text (Silicon to Solar Flare) */
.text-gradient-solar {
  background: linear-gradient(135deg, #0b1a30 0%, #0e2954 35%, #133e87 65%, #0077b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-pv {
  background: linear-gradient(135deg, #0e2954 0%, #1f51ff 50%, #00b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-sun {
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, #065f46 0%, #059669 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-sun-eco {
  background: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-photon {
  background: linear-gradient(135deg, #0e2954 0%, #133e87 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #0e2954 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sun Ray & Green Energy Buttons & Badges */
.btn-eco-green {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-family: var(--font-family-heading);
  font-weight: 800;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.btn-eco-green:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

.badge-sun {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-family-heading);
}

.badge-eco {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-family-heading);
}

/* Solar Cell Styled Card (Tempered Glass with Silver Contact Border) */
.modern-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #0077b6;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px -2px rgba(11, 26, 48, 0.05), 0 2px 6px -1px rgba(11, 26, 48, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modern-card:hover {
  transform: translateY(-4px);
  border-top-color: #f59e0b;
  border-color: #93c5fd;
  box-shadow: 0 20px 25px -5px rgba(14, 41, 84, 0.1), 0 8px 10px -6px rgba(31, 81, 255, 0.06);
}

/* Photovoltaic Wafer Micro-Grid Pattern */
.solar-wafer-grid {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(rgba(14, 41, 84, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 41, 84, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Solar Busbar Divider Line */
.solar-busbar-divider {
  height: 2px;
  background: linear-gradient(90deg, #0b1a30 0%, #0e2954 30%, #0077b6 70%, #f59e0b 100%);
}

/* Photovoltaic Silicon Action Button */
.btn-solar-primary {
  background: linear-gradient(135deg, #0b1a30 0%, #0e2954 45%, #133e87 80%, #0077b6 100%);
  color: #ffffff;
  font-family: var(--font-family-heading);
  font-weight: 700;
  box-shadow: 0 4px 14px 0 rgba(14, 41, 84, 0.35);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-solar-primary:hover {
  background: linear-gradient(135deg, #071120 0%, #0b1a30 45%, #0e2954 80%, #1f51ff 100%);
  box-shadow: 0 6px 20px 0 rgba(31, 81, 255, 0.4);
  transform: translateY(-2px);
}

/* Solar Photon Sunbeam Button (Golden Sun Energy) */
.btn-solar-photon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #08182b;
  font-family: var(--font-family-heading);
  font-weight: 800;
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.btn-solar-photon:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
  color: #05101e;
}

/* Silver Contact Secondary Button */
.btn-solar-secondary {
  background: #ffffff;
  color: #0e2954;
  font-family: var(--font-family-heading);
  font-weight: 700;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.btn-solar-secondary:hover {
  background: #f1f5f9;
  border-color: #0e2954;
  color: #0b1a30;
}

/* Solar Cell Wafer Step Node */
.step-node-light {
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(135deg, #0b1a30 0%, #0e2954 60%, #0077b6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-heading);
  font-weight: 800;
  font-size: 1.125rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(14, 41, 84, 0.3);
  border: 2px solid #cbd5e1;
}

/* Ambient Radial Reflections */
.ambient-light-blue {
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(14, 41, 84, 0.08) 0%, transparent 70%);
  filter: blur(75px);
  pointer-events: none;
  z-index: 0;
}

.ambient-light-cyan {
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 119, 182, 0.08) 0%, transparent 70%);
  filter: blur(75px);
  pointer-events: none;
  z-index: 0;
}

.ambient-light-amber {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.07) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.ambient-light-emerald {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.07) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0e2954;
}

/* Responsive & Print Utilities */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print, .fixed {
    display: none !important;
  }
}
