/* Scoped styles for minecraft-server-status-checker (prefix: mssc-) */

.mssc-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text, #1f2937);
}

.mssc-header-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mssc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.mssc-badge-offline {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.mssc-badge-accent {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.mssc-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading, #111827);
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}

.mssc-subtitle {
  color: var(--text-muted, #4b5563);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.mssc-nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border, #e5e7eb);
  margin-bottom: 1.5rem;
}

.mssc-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted, #4b5563);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.mssc-tab-btn:hover {
  color: var(--text, #111827);
}

.mssc-tab-btn.mssc-active {
  color: #059669;
  border-bottom-color: #059669;
}

.mssc-panel {
  display: none;
}

.mssc-panel.mssc-active {
  display: block;
}

.mssc-controls-bar {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mssc-form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 680px) {
  .mssc-form-row {
    flex-direction: row;
    align-items: flex-end;
  }
}

.mssc-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.mssc-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #374151);
}

.mssc-input, .mssc-select, .mssc-textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--surface, #ffffff);
  color: var(--text, #111827);
  font-family: inherit;
}

.mssc-input:focus, .mssc-select:focus, .mssc-textarea:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5,150,105,0.15);
}

.mssc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  background: #059669;
  color: #ffffff;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mssc-btn:hover {
  background: #047857;
}

.mssc-btn-secondary {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.mssc-btn-secondary:hover {
  background: #e5e7eb;
}

.mssc-presets-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  align-items: center;
}

.mssc-preset-pill {
  font-size: 0.75rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mssc-preset-pill:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.mssc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 840px) {
  .mssc-grid-split {
    grid-template-columns: 1.2fr 1fr;
  }
}

.mssc-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mssc-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Authentic Minecraft Server List UI preview */
.mssc-mc-server-box {
  background: #111215;
  border: 2px solid #2d2f36;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: #ffffff;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.mssc-server-icon {
  width: 52px;
  height: 52px;
  background: #1e2025;
  border: 2px solid #3c4049;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.mssc-server-main {
  flex: 1;
  min-width: 0;
}

.mssc-server-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.mssc-server-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.mssc-server-ping {
  font-size: 0.8rem;
  color: #10b981;
  font-family: ui-monospace, monospace;
}

.mssc-motd-display {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(0,0,0,0.3);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  min-height: 40px;
}

.mssc-progress-bg {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.mssc-progress-fill {
  height: 100%;
  background: #059669;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.mssc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.mssc-table th, .mssc-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  text-align: left;
}

.mssc-table th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--text-muted, #4b5563);
}

.mssc-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Color palettes toolbar */
.mssc-palette-bar {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.mssc-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 2px #000;
}

.mssc-color-swatch:hover {
  transform: scale(1.1);
}

.mssc-ad-slot {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  margin: 2rem 0;
  color: #9ca3af;
  font-size: 0.85rem;
}
