/* ========================================
   Sunblaze Energy — Theme Styles
   Colors: Crimson #9a0306, Gold #efae09
   Dark: #0f172a, Gradient CTAs
   ======================================== */

/* --- Global --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Gradient Text Headings --- */
.sunblaze-gradient-text {
  background: linear-gradient(to right, #fb923c, #ef4444, #eab308);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sunblaze-gradient-text-warm {
  background: linear-gradient(to right, #fb923c, #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Nav Links --- */
.wp-block-navigation a {
  color: #9a0306 !important;
  text-decoration: none;
  transition: color 0.15s ease;
}

.wp-block-navigation a:hover {
  color: #fb923c !important;
}

/* --- Block Style: Card --- */
.is-style-sunblaze-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.is-style-sunblaze-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* --- Block Style: Check List --- */
.is-style-sunblaze-check-list {
  list-style: none;
  padding-left: 0;
}

.is-style-sunblaze-check-list li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.5em;
}

.is-style-sunblaze-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #efae09;
}

.has-dark-background-color .is-style-sunblaze-check-list li::before,
.has-cta-primary-gradient-background .is-style-sunblaze-check-list li::before {
  color: #facc15;
}

/* --- Footer Links --- */
.is-style-sunblaze-footer-links {
  list-style: none;
  padding-left: 0;
}

.is-style-sunblaze-footer-links li {
  margin-bottom: 0.4rem;
}

.is-style-sunblaze-footer-links a {
  color: #9ca3af !important;
  text-decoration: none;
  transition: color 0.15s ease;
}

.is-style-sunblaze-footer-links a:hover {
  color: #fb923c !important;
}

/* --- Buttons --- */
.wp-block-button__link {
  transition: background 0.2s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-1px);
}

/* Gradient CTA button */
.is-style-sunblaze-primary .wp-block-button__link {
  background: linear-gradient(to right, #ea580c, #dc2626) !important;
}

.is-style-sunblaze-primary .wp-block-button__link:hover {
  background: linear-gradient(to right, #ea580c, #b91c1c) !important;
}

/* Secondary round CTA */
.is-style-sunblaze-cta-round .wp-block-button__link {
  background: linear-gradient(to right, #f97316, #dc2626, #f97316) !important;
  border-radius: 9999px;
  padding: 1rem 3rem;
  font-size: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.is-style-sunblaze-cta-round .wp-block-button__link:hover {
  background: linear-gradient(to right, #ea580c, #b91c1c, #ea580c) !important;
}

/* Outline buttons on dark bg */
.is-style-outline .wp-block-button__link {
  border: 2px solid currentColor;
  background: transparent !important;
}

/* --- Star Ratings --- */
.sunblaze-stars {
  color: #facc15;
  letter-spacing: 2px;
}

/* --- Decorative Divider --- */
.sunblaze-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, #9a0306, transparent);
  border: none;
  margin: 2rem 0;
}

/* --- Solar Calculator --- */
.sunblaze-calculator {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background: #1e293b;
  border-radius: 6px;
  text-align: center;
  color: #fff;
}

.sunblaze-calculator h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #fff;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.calculator-form label {
  font-weight: 700;
  font-size: 0.875rem;
  color: #d1d5db;
}

.calculator-form input[type="number"] {
  width: 100%;
  max-width: 280px;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  text-align: center;
  border: 2px solid #374151;
  border-radius: 6px;
  outline: none;
  background: #0f172a;
  color: #fff;
  transition: border-color 0.15s ease;
}

.calculator-form input[type="number"]:focus {
  border-color: #efae09;
}

.calculator-form button {
  background: linear-gradient(to right, #ea580c, #dc2626);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.calculator-form button:hover {
  background: linear-gradient(to right, #ea580c, #b91c1c);
}

.calculator-results {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #374151;
}

.result-label {
  font-weight: 400;
  color: #9ca3af;
}

.result-value {
  font-weight: 900;
  font-size: 1.25rem;
  color: #efae09;
}

.calculator-disclaimer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #6b7280;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1, .has-hero-font-size {
    font-size: 2.5rem !important;
  }

  h2, .has-xx-large-font-size {
    font-size: 2rem !important;
  }

  .wp-block-columns {
    flex-direction: column;
  }

  .result-row {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }

  .is-style-sunblaze-cta-round .wp-block-button__link {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  h1, .has-hero-font-size {
    font-size: 2rem !important;
  }
}
