/* DNS Lookup Tool Page Styles */
.dns-lookup-tool-page {
  padding-top: 6rem;
  min-height: 100vh;
  background-color: var(--color-dark);
  color: var(--color-white);
}

.tool-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--color-white-5);
  background: linear-gradient(135deg, var(--color-gray) 0%, var(--color-darker) 100%);
}

.tool-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-white-60);
}

.tool-breadcrumb-link {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.tool-breadcrumb-link:hover {
  color: var(--color-white);
}

.tool-breadcrumb-separator {
  color: var(--color-white-40);
}

.tool-breadcrumb-current {
  color: var(--color-white);
}

.tool-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.tool-subtitle {
  font-size: 1.125rem;
  color: var(--color-white-60);
  max-width: 700px;
  line-height: 1.6;
}

.tool-content {
  padding: 3rem 0;
}

.tool-form-section {
  margin-bottom: 2rem;
}

.tool-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--border-radius);
  color: #fca5a5;
  margin-bottom: 2rem;
}

.tool-error svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.tool-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.tool-loading.hidden {
  display: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-white-10);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tool-loading p {
  color: var(--color-white-60);
  font-size: 1rem;
}

.tool-info-section {
  margin-top: 4rem;
  padding: 2rem;
  background-color: var(--color-gray);
  border: 1px solid var(--color-white-5);
  border-radius: var(--border-radius);
}

.tool-info-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.tool-info-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.tool-info-section p {
  color: var(--color-white-60);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tool-info-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--color-white-60);
  line-height: 1.8;
}

.tool-info-list li {
  margin-bottom: 0.5rem;
}

/* DNS Lookup Form */
.dns-lookup-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.form-input-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.form-input {
  flex: 1;
  padding: 0.875rem 1rem;
  background-color: var(--color-gray);
  border: 1px solid var(--color-white-10);
  border-radius: var(--border-radius);
  color: var(--color-white);
  font-size: 1rem;
  transition: all var(--transition-speed);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(13, 103, 254, 0.1);
}

.form-input::placeholder {
  color: var(--color-white-40);
}

.form-submit-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-blue));
  border: none;
  border-radius: var(--border-radius);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  white-space: nowrap;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 103, 254, 0.3);
}

.form-submit-btn:active {
  transform: translateY(0);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-submit-btn svg {
  width: 20px;
  height: 20px;
}

.form-hint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-white-60);
  line-height: 1.6;
}

/* Record Types Selection */
.dns-record-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--color-gray);
  border: 1px solid var(--color-white-5);
  border-radius: var(--border-radius);
}

.dns-type-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-speed);
  border-radius: calc(var(--border-radius) / 2);
}

.dns-type-checkbox:hover {
  background-color: var(--color-darker);
}

.dns-type-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.dns-type-checkbox span {
  font-size: 0.875rem;
  color: var(--color-white);
}

/* Results */
.dns-lookup-results {
  margin-top: 2rem;
}

.dns-lookup-result-card {
  background-color: var(--color-gray);
  border: 1px solid var(--color-white-5);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.dns-lookup-result-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-white);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-white-5);
}

.dns-lookup-result-title svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Record Type Header */
.dns-record-type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-white-5);
}

.dns-record-type-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
}

.dns-type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-blue));
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-white);
  font-family: monospace;
}

.dns-record-count {
  font-size: 0.875rem;
  color: var(--color-white-60);
  font-weight: 500;
}

/* DNS Records Table */
.dns-records-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.dns-records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.dns-records-table thead {
  background-color: var(--color-darker);
}

.dns-records-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--color-white);
  border-bottom: 2px solid var(--color-white-5);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dns-records-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-white-5);
  color: var(--color-white);
}

.dns-records-table tbody tr:hover {
  background-color: var(--color-darker);
}

.dns-records-table tbody tr:last-child td {
  border-bottom: none;
}

.dns-records-table code {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  background-color: var(--color-darker);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--color-white-5);
}

.dns-record-data {
  word-break: break-all;
  max-width: 500px;
  display: block;
}

.dns-txt-preview {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dns-txt-type-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background-color: rgba(13, 103, 254, 0.2);
  border: 1px solid rgba(13, 103, 254, 0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  font-family: monospace;
}

.dns-no-records {
  text-align: center;
  padding: 2rem;
  color: var(--color-white-60);
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tool-title {
    font-size: 2rem;
  }

  .tool-subtitle {
    font-size: 1rem;
  }

  .form-input-wrapper {
    flex-direction: column;
  }

  .form-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .dns-record-types {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .dns-lookup-result-card {
    padding: 1.5rem;
  }

  .dns-record-type-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .dns-records-table {
    font-size: 0.875rem;
  }

  .dns-records-table th,
  .dns-records-table td {
    padding: 0.5rem;
  }

  .dns-record-data {
    max-width: 100%;
    font-size: 0.8125rem;
  }
}

/* Light theme support */
[data-theme='light'] .dns-lookup-tool-page {
  background-color: var(--color-dark);
}

[data-theme='light'] .dns-lookup-result-card,
[data-theme='light'] .tool-info-section {
  background-color: var(--color-gray);
  border-color: var(--color-gray-light);
}

[data-theme='light'] .dns-record-types {
  background-color: var(--color-gray);
  border-color: var(--color-gray-light);
}

