/* ============================================================
   EnergiaBarata.eu — Custom Styles
   Shared across all pages (extracted from inline <style> blocks)
   ============================================================ */

/* === Base === */
html { scroll-behavior: smooth; }

/* === Brand Gradients === */
.gradient-primary { background: linear-gradient(135deg, #00A651 0%, #008C42 100%); }
.gradient-secondary { background: linear-gradient(135deg, #00D966 0%, #00A651 100%); }
.gradient-text { background: linear-gradient(135deg, #00A651 0%, #00D966 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-title { background: linear-gradient(135deg, #2d8a2d 0%, #d4a017 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-gradient { background: linear-gradient(135deg, #004D2C 0%, #00A651 50%, #008C42 100%); }

/* === Brand Colors === */
.bg-dark-blue { background-color: #004D2C; }
.text-primary { color: #00A651; }
.text-secondary { color: #00D966; }
.border-primary { border-color: #00A651; }
.border-secondary { border-color: #00D966; }
.hover-primary:hover { color: #00A651; }
.hover-secondary:hover { color: #00D966; }
.text-yellow { color: #fdc814; }

/* === Card Hover Effects === */
.card-hover { transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0, 166, 81, 0.2); }

.btn-hover { transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.btn-hover:hover { transform: scale(1.05); }

.text-shadow { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }

/* === Animations === */
.fade-in { animation: fadeIn 0.6s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* === Homepage Components === */
.feature-icon { transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.feature-icon:hover { transform: scale(1.1) rotate(5deg); }

.silo-card { transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid #e5e7eb; }
.silo-card:hover { transform: translateY(-6px); box-shadow: 0 16px 30px -5px rgba(0, 166, 81, 0.15); border-color: #00A651; }

.trust-badge { transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.trust-badge:hover { transform: translateY(-4px); }

.post-card { transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1); }

.category-badge { font-size: 0.7rem; letter-spacing: 0.05em; }

.tool-card-border { border-left: 4px solid #00A651; }

/* === FAQ Component === */
.faq-icon { transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1), padding 400ms cubic-bezier(0.4, 0, 0.2, 1); }
.faq-answer.open { max-height: 500px; }
.faq-icon.open { transform: rotate(180deg); }

/* === Energia Hub === */
.silo-badge { display: inline-block; padding: 2px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* === Blog === */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.filter-btn { transition: all 200ms ease; }
.filter-btn:hover { transform: translateY(-2px); }
.filter-btn.active { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Skip Navigation Link */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: #004D2C;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 14px;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-nav:focus {
  top: 0;
  outline: 3px solid #fdc814;
  outline-offset: 2px;
}

/* Screen reader only (visually hidden labels) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible Focus Indicators (override focus:outline-none) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #f59e0b !important;
  outline-offset: 2px !important;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
