/* ==========================================
   UI COMPONENTS - COOPERATIVA JEP & VIRTUAL
   ========================================== */

@import url('variables.css');

/* Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-bounce);
  border: 1px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-600) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 103, 84, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 103, 84, 0.4);
  background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-500) 100%);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-500) 100%);
  color: #0b1326;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-400) 100%);
}

.btn-outline {
  background: transparent;
  border-color: var(--emerald-600);
  color: var(--emerald-600);
}

[data-theme="dark"] .btn-outline {
  border-color: var(--emerald-500);
  color: var(--emerald-500);
}

.btn-outline:hover {
  background: var(--emerald-600);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* Card Component */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-emerald);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--emerald-100);
  color: var(--emerald-800);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  transition: all var(--transition-normal);
}

[data-theme="dark"] .card-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-500);
}

.card:hover .card-icon {
  background: var(--emerald-700);
  color: #ffffff;
}

/* Hero Section Special Styling */
.hero {
  position: relative;
  padding: 100px 0 80px;
  background: radial-gradient(circle at 80% 20%, rgba(0, 103, 84, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.badge-emerald {
  background: var(--emerald-100);
  color: var(--emerald-800);
  border: 1px solid rgba(0, 103, 84, 0.2);
}

[data-theme="dark"] .badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-500);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-gold {
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* JEP Virtual Portal Card Banner */
.jep-portal-box {
  background: linear-gradient(145deg, var(--emerald-900), var(--emerald-800));
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.jep-portal-box h3 {
  color: #ffffff;
}

.jep-portal-box p {
  color: #cbd5e1;
}

.portal-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--emerald-500);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: #6ee7b7;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-500);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-500);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Interactive Simulator Layout */
.simulator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--emerald-600);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(0, 103, 84, 0.15);
  outline: none;
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border-color);
  outline: none;
  accent-color: var(--emerald-600);
  cursor: pointer;
}

.sim-result-box {
  background: linear-gradient(135deg, rgba(0, 103, 84, 0.05), rgba(212, 175, 55, 0.05));
  border: 1px solid var(--emerald-600);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}

.sim-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--emerald-600);
  line-height: 1.1;
}

[data-theme="dark"] .sim-amount {
  color: var(--emerald-500);
}

/* Accordion FAQ */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  background: var(--bg-card);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.accordion-header {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  color: var(--text-secondary);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 0 24px 24px;
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 15, 29, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 560px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--transition-bounce);
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Stats Pill Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--emerald-600);

}
[data-theme="dark"] .stat-number {
  color: var(--emerald-500);
}
