/**
 * Hello Plataforma · Dashboard Components
 *
 * Estilos de los 5 componentes del Dashboard Home:
 * - Alert pagos pendientes
 * - Earnings card oscura
 * - Stats grid
 * - Quick actions
 * - Recent activity
 */


/* ============================================================
   1. ALERT PAGOS PENDIENTES
   ============================================================ */

.hp-alert-pending {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--hp-gradient-purple-button);
  border-radius: var(--hp-radius-card);
  color: #FFFFFF;
  text-decoration: none;
  margin-bottom: var(--hp-space-4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 8px 24px -8px rgba(105, 73, 158, 0.40);
  transition: transform var(--hp-duration-normal) var(--hp-ease),
              box-shadow var(--hp-duration-normal) var(--hp-ease);
  position: relative;
  overflow: hidden;
}

.hp-alert-pending::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hp-alert-pending:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 12px 28px -6px rgba(105, 73, 158, 0.50);
  color: #FFFFFF;
}

.hp-alert-pending-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hp-alert-pending-icon i {
  font-size: 22px;
  color: #FFFFFF;
}

.hp-alert-pending-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hp-alert-pending-title {
  font-family: var(--hp-font-base);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #FFFFFF;
  line-height: 1.3;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.hp-alert-pending-sub {
  font-family: var(--hp-font-base);
  font-size: 11px;
  font-weight: 400;
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

.hp-alert-pending-chevron {
  font-size: 22px;
  color: #FFFFFF;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}


/* ============================================================
   2. EARNINGS CARD (HERO OSCURA)
   ============================================================ */

.hp-earnings-card {
  margin-bottom: var(--hp-space-4);
  padding: 22px;
}

.hp-earnings-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.hp-earnings-period-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(212, 191, 232, 0.25);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: 16px;
  font-family: var(--hp-font-base);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(10px);
  transition: background-color var(--hp-duration-normal) var(--hp-ease);
}

.hp-earnings-period-pill:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hp-earnings-period-pill i {
  font-size: 11px;
}

.hp-earnings-amount {
  font-family: var(--hp-font-base);
  font-size: 44px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -1.8px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.hp-earnings-currency {
  font-size: 18px;
  color: rgba(212, 191, 232, 0.6);
  font-weight: 400;
  margin-left: 4px;
  letter-spacing: 0;
}

.hp-earnings-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.hp-earnings-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--hp-font-base);
  font-size: 11px;
  font-weight: 600;
}

.hp-earnings-change.is-positive {
  background: rgba(74, 222, 128, 0.15);
  border: 0.5px solid rgba(74, 222, 128, 0.30);
  color: #4ADE80;
}

.hp-earnings-change.is-negative {
  background: rgba(239, 68, 68, 0.15);
  border: 0.5px solid rgba(239, 68, 68, 0.30);
  color: #EF4444;
}

.hp-earnings-change i {
  font-size: 13px;
}

.hp-earnings-context {
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: rgba(212, 191, 232, 0.55);
  font-weight: 400;
}


/* ============================================================
   3. STATS GRID
   ============================================================ */

.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: var(--hp-space-6);
}

.hp-stat-card {
  background: var(--hp-bg-primary);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  box-shadow:
    0 0 0 0.5px var(--hp-border-purple),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 3px rgba(105, 73, 158, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hp-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212, 191, 232, 0.40) 0%, rgba(168, 135, 208, 0.20) 100%);
  border: 0.5px solid rgba(149, 117, 205, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.hp-stat-icon i {
  font-size: 18px;
  color: var(--hp-purple-deep);
}

.hp-stat-value {
  font-family: var(--hp-font-base);
  font-size: 22px;
  font-weight: 700;
  color: var(--hp-text-primary);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.5px;
}

.hp-stat-label {
  font-family: var(--hp-font-base);
  font-size: 10px;
  color: var(--hp-text-tertiary);
  font-weight: 500;
  margin: 2px 0 0;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.hp-stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--hp-font-base);
  font-size: 10px;
  font-weight: 600;
  margin: 4px 0 0;
}

.hp-stat-delta-positive {
  color: var(--hp-green-success);
}

.hp-stat-delta-negative {
  color: var(--hp-red-error);
}

.hp-stat-delta i {
  font-size: 11px;
}


/* ============================================================
   4. QUICK ACTIONS
   ============================================================ */

.hp-quick-actions {
  margin-bottom: var(--hp-space-6);
}

.hp-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--hp-space-3);
}

.hp-section-action {
  margin-left: auto;
  font-family: var(--hp-font-base);
  font-size: 11px;
  font-weight: 600;
  color: var(--hp-purple-deep);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.hp-section-action:hover {
  color: var(--hp-purple-anchor);
}

.hp-quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hp-quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--hp-bg-primary);
  border-radius: 14px;
  text-decoration: none;
  border: 0.5px solid var(--hp-border-purple);
  transition: transform var(--hp-duration-normal) var(--hp-ease),
              border-color var(--hp-duration-normal) var(--hp-ease),
              box-shadow var(--hp-duration-normal) var(--hp-ease);
}

.hp-quick-action:hover {
  border-color: rgba(149, 117, 205, 0.40);
  transform: translateX(2px);
  box-shadow: 0 4px 12px -4px rgba(105, 73, 158, 0.15);
}

.hp-quick-action--primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8FD 100%);
  border-color: rgba(149, 117, 205, 0.30);
  box-shadow:
    0 0 0 0.5px rgba(149, 117, 205, 0.25),
    0 4px 12px -4px rgba(105, 73, 158, 0.10);
}

.hp-quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 191, 232, 0.40) 0%, rgba(168, 135, 208, 0.20) 100%);
  border: 0.5px solid rgba(149, 117, 205, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-quick-action-icon i {
  font-size: 20px;
  color: var(--hp-purple-deep);
}

.hp-quick-action--primary .hp-quick-action-icon {
  background: var(--hp-gradient-purple-button);
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(105, 73, 158, 0.25);
}

.hp-quick-action--primary .hp-quick-action-icon i {
  color: #FFFFFF;
}

.hp-quick-action-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hp-quick-action-label {
  font-family: var(--hp-font-base);
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-text-primary);
  line-height: 1.3;
}

.hp-quick-action-sub {
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: var(--hp-text-tertiary);
  font-weight: 400;
  line-height: 1.3;
}

.hp-quick-action-chevron {
  font-size: 18px;
  color: var(--hp-text-tertiary);
  flex-shrink: 0;
  transition: transform var(--hp-duration-normal) var(--hp-ease),
              color var(--hp-duration-normal) var(--hp-ease);
}

.hp-quick-action:hover .hp-quick-action-chevron {
  color: var(--hp-purple-deep);
  transform: translateX(2px);
}


/* ============================================================
   5. RECENT ACTIVITY
   ============================================================ */

.hp-recent-activity {
  margin-bottom: var(--hp-space-6);
}

.hp-activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hp-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--hp-bg-primary);
  border-radius: 12px;
  box-shadow: 0 0 0 0.5px var(--hp-border-purple);
}

.hp-activity-content {
  flex: 1;
  min-width: 0;
}

.hp-activity-text {
  font-family: var(--hp-font-base);
  font-size: 13px;
  margin: 0;
  color: var(--hp-text-primary);
  line-height: 1.35;
}

.hp-activity-text strong {
  font-weight: 600;
}

.hp-activity-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: var(--hp-text-tertiary);
  margin: 3px 0 0;
  font-weight: 400;
  line-height: 1.2;
}

.hp-activity-meta i {
  font-size: 12px;
  color: var(--hp-purple-deep);
}

.hp-activity-amount {
  font-family: var(--hp-font-base);
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-text-primary);
  margin: 0;
  flex-shrink: 0;
  letter-spacing: -0.2px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 768px) {
  .hp-stats-grid {
    gap: 12px;
  }

  .hp-stat-card {
    padding: 18px 14px;
  }

  .hp-stat-value {
    font-size: 26px;
  }

  .hp-earnings-amount {
    font-size: 52px;
  }

  .hp-quick-action {
    padding: 16px 18px;
  }
}
