/* =====================================================
   OS REFORMADORES: CSS PREMIUM COM EFEITOS DE BRILHO
   ═════════════════════════════════════════════════ */

/* === VARIÁVEIS CSS === */
:root {
  --color-primary: #000;
  --color-bg: #f5f5f7;
  --color-text: #1d1d1f;
  --color-accent: #0071e3;
  --color-reformer: #7c3aed;
  --color-urgent: #ef4444;

  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 12px 32px rgba(0, 0, 0, 0.15);

  --transition-fast: 150ms cubic-bezier(0.17, 0.67, 0.83, 0.67);
  --transition-smooth: 300ms ease-out;
}

/* =====================================================
   SEÇÃO: MISSÕES URGENTES (TOP 3)
   ═════════════════════════════════════════════════ */

.urgent-missions-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8eb 100%);
  margin: 40px 0;
}

.urgent-missions-container {
  max-width: 1400px;
  margin: 0 auto;
}

.urgent-missions-header {
  text-align: center;
  margin-bottom: 60px;
}

.urgent-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px 0;
  letter-spacing: -1px;
}

.urgent-subtitle {
  font-size: 16px;
  color: #555;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

.urgent-missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.urgent-missions-cta {
  text-align: center;
  padding: 20px;
  background: rgba(239, 68, 68, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--color-urgent);
}

.urgent-missions-cta p {
  font-size: 14px;
  color: #555;
  margin: 0;
  font-weight: 500;
}

/* =====================================================
   SEÇÃO: GRID DE REFORMADORES (15 NOVOS)
   ═════════════════════════════════════════════════ */

.reformers-grid-section {
  padding: 80px 20px;
  background: white;
  margin: 40px 0;
}

.reformers-container {
  max-width: 1400px;
  margin: 0 auto;
}

.reformers-header {
  text-align: center;
  margin-bottom: 60px;
}

.reformers-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px 0;
  letter-spacing: -1px;
}

.reformers-subtitle {
  font-size: 16px;
  color: #555;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

.reformers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* =====================================================
   SEÇÃO: SERVIÇOS FUNDACIONAIS (15 ORIGINAIS)
   ═════════════════════════════════════════════════ */

.foundational-services-section {
  padding: 80px 20px;
  background: #fafafa;
  margin: 40px 0;
}

.foundational-container {
  max-width: 1400px;
  margin: 0 auto;
}

.foundational-header {
  text-align: center;
  margin-bottom: 60px;
}

.foundational-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px 0;
  letter-spacing: -1px;
}

.foundational-subtitle {
  font-size: 16px;
  color: #555;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

.foundational-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* =====================================================
   CARD: SERVIÇO PREMIUM
   ═════════════════════════════════════════════════ */

.service-card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: 1px solid #e5e5e7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* === CARD REFORMADOR (PREMIUM) === */
.reformer-card {
  border: 2px solid var(--color-reformer);
  background: linear-gradient(135deg, white 0%, rgba(124, 58, 237, 0.02) 100%);
}

/* === CARD URGENTE === */
.urgent-card {
  border: 2px solid var(--color-urgent);
  background: linear-gradient(135deg, white 0%, rgba(239, 68, 68, 0.02) 100%);
}

/* === HOVER EFFECT === */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--color-accent);
}

.reformer-card:hover {
  border-color: var(--color-reformer);
  background: linear-gradient(135deg, white 0%, rgba(124, 58, 237, 0.08) 100%);
}

.urgent-card:hover {
  border-color: var(--color-urgent);
  background: linear-gradient(135deg, white 0%, rgba(239, 68, 68, 0.08) 100%);
}

/* === AURA/BRILHO === */
.service-aura {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0) 0%, rgba(0, 113, 227, 0.1) 50%, transparent 100%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.reformer-card .service-aura {
  background: radial-gradient(circle, rgba(124, 58, 237, 0) 0%, rgba(124, 58, 237, 0.15) 50%, transparent 100%);
}

.urgent-card .service-aura {
  background: radial-gradient(circle, rgba(239, 68, 68, 0) 0%, rgba(239, 68, 68, 0.15) 50%, transparent 100%);
}

.service-card:hover .service-aura,
.service-card.hovered .service-aura {
  opacity: 1;
}

/* === BADGE === */
.service-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  z-index: 2;
}

.badge-standard {
  background: rgba(0, 113, 227, 0.1);
  color: var(--color-accent);
}

.badge-reformer {
  background: rgba(124, 58, 237, 0.2);
  color: var(--color-reformer);
}

.badge-urgent {
  background: rgba(239, 68, 68, 0.2);
  color: var(--color-urgent);
  font-weight: 700;
}

/* === CONTEÚDO DO CARD === */
.service-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.service-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.service-description {
  font-size: 13px;
  color: #555;
  margin: 0 0 16px 0;
  line-height: 1.6;
  flex: 1;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e5e5e7;
  font-size: 12px;
}

.service-category {
  color: #999;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-credits {
  background: var(--color-bg);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--color-text);
  font-weight: 600;
}

/* === CTA BUTTON === */
.service-cta-btn {
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.reformer-card .service-cta-btn {
  background: var(--color-reformer);
}

.urgent-card .service-cta-btn {
  background: var(--color-urgent);
}

.service-cta-btn:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.4);
}

.reformer-card .service-cta-btn:hover {
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.urgent-card .service-cta-btn:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.cta-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.service-cta-btn:hover .cta-arrow {
  transform: translateX(2px);
}

/* === LINE BOTTOM (ACCENT COLOR) === */
.service-line-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  transition: height var(--transition-smooth);
}

.service-card:hover .service-line-bottom {
  height: 6px;
}

/* =====================================================
   MODAL: CONFIRMAÇÃO DE ATIVAÇÃO
   ═════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  animation: fadeIn 200ms ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
  max-width: 400px;
  width: 90%;
  overflow: hidden;
  animation: slideUp 300ms ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all var(--transition-fast);
  z-index: 1000;
}

.modal-close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid #e5e5e7;
  position: relative;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.modal-body {
  padding: 24px;
}

.service-preview {
  background: var(--color-bg);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.preview-title,
.preview-credits {
  font-size: 14px;
  color: var(--color-text);
  margin: 8px 0;
}

.preview-title strong,
.preview-credits strong {
  font-weight: 600;
  color: var(--color-text);
}

.credits-cost {
  font-size: 24px;
  color: var(--color-reformer);
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.btn-cancel,
.btn-confirm {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cancel {
  background: var(--color-bg);
  color: var(--color-text);
}

.btn-cancel:hover {
  background: #ddd;
}

.btn-confirm {
  background: var(--color-reformer);
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

/* =====================================================
   RESPONSIVE: MOBILE
   ═════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .urgent-title,
  .reformers-title,
  .foundational-title {
    font-size: 28px;
  }

  .urgent-missions-grid,
  .reformers-grid,
  .foundational-grid {
    gap: 16px;
  }

  .service-card {
    padding: 16px;
  }

  .service-title {
    font-size: 16px;
  }

  .service-description {
    font-size: 12px;
  }

  .urgent-missions-section,
  .reformers-grid-section,
  .foundational-services-section {
    padding: 40px 16px;
  }
}

@media (max-width: 480px) {
  .urgent-missions-grid,
  .reformers-grid,
  .foundational-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .modal-content {
    width: 95%;
  }
}

/* =====================================================
   UTILITIES: ANIMAÇÕES E EFEITOS
   ═════════════════════════════════════════════════ */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
  }
}

/* Aplicar glow aos cards urgentes */
.urgent-card.urgent-card {
  animation: glow 3s ease-in-out infinite;
}

/* =====================================================
   TEMA CLARO/ESCURO (FUTURE)
   ═════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1a1a;
    --color-text: #f5f5f7;
  }

  .service-card {
    background: #1a1a1a;
    border-color: #333;
  }

  .service-description {
    color: #bbb;
  }

  .urgentslash-missions-cta {
    background: rgba(239, 68, 68, 0.1);
  }
}
