/* ===================================
   API Server Pricing Page Styles
   =================================== */

/* CSS Custom Properties */
:root {
  --primary-blue: #00a0ff;
  --primary-blue-dark: #0080cc;
  --accent-orange: #fb9218;

  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-lighter: #f3f4f6;

  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  --border-light: #e5e7eb;
  --border-lighter: #f3f4f6;

  --shadow-primary: 0 4px 12px rgba(0, 160, 255, 0.1);
  --transition-standard: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --border-radius-lg: 8px;
  --border-radius-xl: 12px;
}

/* Page Header */
.page-header {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  padding: 100px 0px 30px 0px;
  margin: 0!important;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Consultation Button */
.consultation-btn {
  background: var(--accent-orange) !important;
  color: var(--bg-white) !important;
  border: none !important;
  padding: 16px 32px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: var(--border-radius-xl) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: var(--transition-standard) !important;
  box-shadow: 0 4px 15px rgba(251, 146, 24, 0.3) !important;
  cursor: pointer !important;
}

.consultation-btn:hover {
  transform: scale(1.05);
  background: var(--primary-blue) !important;
  color: var(--bg-white) !important;
  text-decoration: none !important;
}

/* Matrix Table */
.header-cell {
  background: var(--bg-lighter);
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #d0d7de;
}

.matrix-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-primary);
  margin-bottom: 30px;
}

.matrix-table th:first-child,
.matrix-table td:first-child {
  width: 30%;
}

.matrix-table th:not(:first-child),
.matrix-table td:not(:first-child) {
  width: 35%;
}

.matrix-table th,
.matrix-table td {
  min-height: 80px;
  padding: 20px 15px;
  position: relative;
}

.matrix-table thead {
  background: linear-gradient(315.58deg, #00a0ff 0, #9747ff 165.02%);
  color: var(--bg-white);
}

.matrix-table thead th {
  text-align: center;
  font-weight: 600;
  font-size: 1.2em;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding: 25px 15px;
  vertical-align: top;
  line-height: 1.3;
}

.hosting-description {
  font-size: 0.9em;
  font-weight: 500;
  margin-top: 8px;
  opacity: 0.9;
  line-height: 1.4;
}

.table-corner-cell {
  padding: 55px 15px!important;
}

.license-label {
  font-size: 1.1em;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}

/* Section Headers */
.section-header {
  background: var(--bg-lighter);
}

/* Feature Rows */
.feature-row {
  border-bottom: 1px solid var(--border-lighter);
  transition: var(--transition-standard);
}

.feature-row:hover {
  background: #f9fbff !important;
}

.feature-name {
  background: var(--bg-light) !important;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 12px 15px;
  text-align: left;
  border-right: 2px solid #e0e6ed;
}

.feature-cell {
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid var(--border-light);
}

/* Price Cells */
.price-cell {
  padding: 25px 15px;
  text-align: center;
  vertical-align: middle;
  background: var(--bg-light);
  border-right: 1px solid var(--border-light);
  transition: var(--transition-standard);
  min-height: 80px;
}

.price-display {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 5px;
}

.price-amount {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary-blue);
}

.price-period {
  font-size: 0.8em;
  color: var(--text-muted);
  font-weight: 400;
}

/* Help Icons & Tooltips */
.help-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--primary-blue);
  color: var(--bg-white);
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 4px;
  cursor: help;
  position: relative;
  transition: var(--transition-standard);
  vertical-align: baseline;
  z-index: 1;
}

.help-icon:hover {
  background: var(--primary-blue-dark);
  transform: scale(1.1);
}

.tooltip-custom {
  position: absolute;
  text-align: left;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  padding: 10px 15px;
  background: var(--bg-white);
  color: var(--text-primary);
  border: 2px solid var(--primary-blue);
  border-radius: 6px;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.5;
  white-space: normal;
  width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-standard);
  z-index: 1000;
  pointer-events: none;
}

.tooltip-custom::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--primary-blue);
}

.help-icon:hover .tooltip-custom {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .matrix-wrapper {
    padding: 0 10px;
    overflow-x: auto;
  }

  .matrix-table {
    font-size: 0.9em;
    min-width: 500px;
  }

  .matrix-table th,
  .matrix-table td {
    padding: 10px 8px !important;
  }

  .price-amount {
    font-size: 1.5em;
  }

  .price-display {
    flex-direction: column;
    gap: 2px;
  }

  .tooltip-custom {
    width: 200px;
    font-size: 12px;
    padding: 8px 12px;
  }

  .page-header {
    padding: 80px 0px 20px 0px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .page-header p {
    font-size: 16px;
  }
}
