/**
 * DarkHoster Core Components
 * Container, Button System, Badges, and Shared UI Elements
 */

/* 1. Container System */
.dh-container {
  width: 100%;
  max-width: var(--dh-container);
  margin-left: auto;
  margin-right: auto;
  /* Responsive horizontal padding across 320px - 1920px */
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 480px) {
  .dh-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .dh-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1200px) {
  .dh-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* 2. Global Button System */
.dh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  font-family: var(--dh-font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border-radius: var(--dh-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dh-transition-fast),
              border-color var(--dh-transition-fast),
              color var(--dh-transition-fast),
              box-shadow var(--dh-transition-fast),
              transform var(--dh-transition-fast);
}

.dh-button:focus-visible {
  outline: 2px solid var(--dh-primary);
  outline-offset: 2px;
}

.dh-button:active:not(:disabled) {
  transform: translateY(1px);
}

.dh-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button Sizing Variants */
.dh-button-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.8125rem;
}

.dh-button-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 1rem;
  border-radius: var(--dh-radius-md);
}

/* Button Appearance Variants */
.dh-button-primary {
  background-color: var(--dh-primary);
  color: #ffffff;
  border-color: var(--dh-primary);
}

.dh-button-primary:hover {
  background-color: var(--dh-primary-hover);
  border-color: var(--dh-primary-hover);
  color: #ffffff;
}

.dh-button-secondary {
  background-color: var(--dh-surface);
  color: var(--dh-text);
  border-color: var(--dh-border);
}

.dh-button-secondary:hover {
  background-color: var(--dh-surface-hover);
  border-color: var(--dh-border-hover);
  color: #ffffff;
}

.dh-button-outline {
  background-color: transparent;
  color: var(--dh-text);
  border-color: var(--dh-border);
}

.dh-button-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--dh-border-hover);
  color: #ffffff;
}

.dh-button-text {
  background-color: transparent;
  color: var(--dh-text-secondary);
  border-color: transparent;
  padding-left: 10px;
  padding-right: 10px;
}

.dh-button-text:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.04);
}

/* 3. Surface Card Container */
.dh-card {
  background-color: var(--dh-surface);
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-md);
  padding: 24px;
  transition: border-color var(--dh-transition), background-color var(--dh-transition);
}

.dh-card:hover {
  border-color: var(--dh-border-hover);
  background-color: var(--dh-surface-hover);
}

/* 4. Status Indicator Dot */
.dh-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: var(--dh-success);
}

.dh-status-dot-pulse {
  box-shadow: 0 0 0 0 rgba(53, 201, 138, 0.7);
  animation: dhPulse 2s infinite;
}

@keyframes dhPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(53, 201, 138, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(53, 201, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(53, 201, 138, 0);
  }
}
