/**
 * DarkHoster Hosting Plans Section Styles
 * Clean 3-tier card system with prominent pricing, clear hierarchy, and WHMCS compatibility
 */

.dh-hosting-section {
  padding: 5rem 0;
  background-color: var(--dh-bg);
  border-bottom: 1px solid var(--dh-border);
}

.dh-hosting-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dh-hosting-title {
  margin: 0;
  color: var(--dh-text);
}

.dh-hosting-subtitle {
  margin: 0;
  color: var(--dh-text-secondary);
}

/* 3-Column Grid */
.dh-hosting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

/* Plan Card */
.dh-hosting-card {
  background-color: var(--dh-surface);
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--dh-transition),
              border-color var(--dh-transition),
              background-color var(--dh-transition),
              box-shadow var(--dh-transition);
}

.dh-hosting-card:hover {
  transform: translateY(-3px);
  border-color: var(--dh-border-hover);
  background-color: var(--dh-surface-hover);
  box-shadow: var(--dh-shadow-sm);
}

/* Featured / Recommended Plan Variant */
.dh-hosting-card-featured {
  border-color: rgba(79, 140, 255, 0.4);
  background-color: #111823;
}

.dh-hosting-card-featured:hover {
  border-color: rgba(79, 140, 255, 0.6);
  background-color: #151e2c;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Optional Plan Badge */
.dh-plan-badge-wrapper {
  margin-bottom: 1rem;
}

.dh-plan-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--dh-font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: var(--dh-primary);
  padding: 4px 10px;
  border-radius: 9999px;
  line-height: 1;
}

/* Plan Header */
.dh-plan-top {
  margin-bottom: 1.25rem;
}

.dh-plan-name {
  font-family: var(--dh-font-sans);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dh-text);
  margin: 0 0 6px 0;
  letter-spacing: -0.015em;
}

.dh-plan-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--dh-text-muted);
  margin: 0;
  min-height: 2.6em;
}

/* Price Block */
.dh-plan-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--dh-border);
}

.dh-plan-price {
  font-family: var(--dh-font-sans);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dh-text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.dh-plan-period {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dh-text-muted);
}

/* Key Specs Highlights */
.dh-plan-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.dh-plan-spec-item {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dh-text-secondary);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dh-border);
  padding: 4px 10px;
  border-radius: var(--dh-radius-sm);
  white-space: nowrap;
}

/* Features List */
.dh-plan-features {
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

.dh-plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--dh-text-secondary);
}

.dh-plan-feature-icon {
  color: var(--dh-primary);
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 1px;
}

/* CTA Action */
.dh-plan-action {
  margin-top: auto;
}

.dh-plan-button {
  width: 100%;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
  .dh-hosting-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 767px) {
  .dh-hosting-section {
    padding: 3.5rem 0;
  }

  .dh-hosting-header {
    margin-bottom: 2.5rem;
  }

  .dh-hosting-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .dh-hosting-card {
    padding: 1.75rem 1.25rem;
  }

  .dh-plan-price {
    font-size: 2.125rem;
  }
}

@media (max-width: 360px) {
  .dh-hosting-card {
    padding: 1.5rem 1rem;
  }

  .dh-plan-name {
    font-size: 1.25rem;
  }

  .dh-plan-price {
    font-size: 1.875rem;
  }
}
