/**
 * Badge Component Styles
 *
 * Number indicators, status labels, and counts with configurable variants and shapes.
 * Used for step numbers, notifications, and status indicators.
 *
 * @package HubTerapeutico
 * @since 1.0.0
 */

/* ============================================
   BASE BADGE STYLES
   ============================================ */

.hub-badge {
  /* Display */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  
  /* Typography */
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  
  /* Default size */
  width: 40px;
  height: 40px;
  font-size: var(--font-size-sm);
  
  /* Default shape (circle) */
  border-radius: 50%;
  
  /* Default variant (gray) */
  background: var(--color-gray-200);
  color: var(--color-gray-900);
  
  /* No border by default */
  border: none;
  
  /* Transitions */
  transition: all var(--hub-transition-base, 0.3s ease);
}


/* ============================================
   SIZE VARIANTS
   ============================================ */

.hub-badge--small {
  width: 32px;
  height: 32px;
  font-size: var(--font-size-xs);
}

.hub-badge--medium {
  width: 40px;
  height: 40px;
  font-size: var(--font-size-sm);
}

.hub-badge--large {
  width: 56px;
  height: 56px;
  font-size: var(--font-size-lg);
}


/* ============================================
   SHAPE VARIANTS
   ============================================ */

.hub-badge--square {
  border-radius: 0;
}

.hub-badge--rounded {
  border-radius: var(--radius-base);
}

.hub-badge--circle {
  border-radius: 50%;
}

.hub-badge--pill {
  border-radius: var(--radius-full);
  padding: 6px 16px;
  width: auto;
  height: auto;
}


/* ============================================
   COLOR VARIANTS
   ============================================ */

.hub-badge--default {
  background: var(--color-gray-200);
  color: var(--color-gray-900);
}

.hub-badge--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.hub-badge--success {
  background: #10b981;
  color: var(--color-white);
}

.hub-badge--error {
  background: #ef4444;
  color: var(--color-white);
}

.hub-badge--gradient {
  background: linear-gradient(45deg, #0ab3ba 0%, #0d959c 100%);
  color: var(--color-white);
}


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

@media (max-width: 768px) {
  /* Slightly reduce badge sizes on tablets */
  .hub-badge--large {
    width: 48px;
    height: 48px;
    font-size: var(--font-size-base);
  }

  /* Pill badges keep desktop style at all sizes */
  .hub-badge--pill.hub-badge--large,
  .hub-badge--pill.hub-badge--medium,
  .hub-badge--pill.hub-badge--small {
    width: auto;
    height: auto;
    padding: 6px 16px;
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 480px) {
  /* Further reduce badge sizes on very small screens */
  .hub-badge--large {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-sm);
  }
  
  .hub-badge--small {
    width: 28px;
    height: 28px;
    font-size: var(--font-size-xs);
  }

  /* Pill badges keep desktop style at all sizes */
  .hub-badge--pill.hub-badge--large,
  .hub-badge--pill.hub-badge--medium,
  .hub-badge--pill.hub-badge--small {
    width: auto;
    height: auto;
    padding: 6px 16px;
    font-size: var(--font-size-sm);
  }
}
