/* ============================================================================
   PREMIUM DNS LOOKUP TOOL - STYLES
   ============================================================================ */

.dns-premium-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.dns-premium-header {
  background: linear-gradient(135deg, #1a365d 0%, #0d1b2a 100%);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 24px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-icon {
  font-size: 40px;
  background: rgba(59, 130, 246, 0.2);
  padding: 12px;
  border-radius: 12px;
}

.title-text h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.title-text .subtitle {
  margin: 4px 0 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.badges {
  display: flex;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.badge.live {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Search Section */
.dns-search-section {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.input-group {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 0 16px;
  transition: border-color 0.2s;
}

.input-group:focus-within {
  border-color: #3b82f6;
}

.input-icon {
  font-size: 20px;
  margin-right: 12px;
  opacity: 0.6;
}

.premium-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 0;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.premium-input::placeholder {
  color: #64748b;
}

.input-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 16px;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.action-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.action-btn.clear {
  display: none;
}

.lookup-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lookup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Quick Options */
.quick-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.option-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #94a3b8;
  transition: color 0.2s;
}

.option-toggle:hover {
  color: #e2e8f0;
}

.option-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
}

/* DNS Types Section */
.dns-types-section {
  margin-bottom: 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.dns-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 10px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
}

.type-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #e2e8f0;
}

.type-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #3b82f6;
}

.type-btn.all-types.active {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
}

.type-code {
  font-size: 14px;
  font-weight: 700;
  font-family: monospace;
}

.type-name {
  font-size: 10px;
  opacity: 0.8;
}

/* Results Dashboard */
.results-dashboard {
  min-height: 400px;
}

.dashboard-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: rgba(30, 41, 59, 0.4);
  border-radius: 16px;
  border: 2px dashed rgba(148, 163, 184, 0.2);
}

.placeholder-content {
  text-align: center;
  padding: 40px;
}

.placeholder-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.placeholder-content h3 {
  margin: 0 0 8px 0;
  color: #e2e8f0;
  font-size: 20px;
}

.placeholder-content p {
  margin: 0 0 24px 0;
  color: #64748b;
}

.quick-examples {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.example-label {
  font-size: 12px;
  color: #64748b;
}

.example-btn {
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  color: #3b82f6;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.example-btn:hover {
  background: rgba(59, 130, 246, 0.2);
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

.loading-text {
  text-align: center;
  margin-bottom: 24px;
}

.loading-text h3 {
  margin: 0 0 8px 0;
  color: #e2e8f0;
  font-size: 20px;
}

.loading-status {
  color: #64748b;
  margin: 0;
}

.loading-progress {
  width: 100%;
  max-width: 300px;
  height: 4px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

/* Error State */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px;
  text-align: center;
}

.error-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.error-state h3 {
  margin: 0 0 8px 0;
  color: #ef4444;
}

.error-state p {
  color: #94a3b8;
  margin: 0 0 24px 0;
}

.retry-btn {
  padding: 12px 32px;
  background: #3b82f6;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.retry-btn:hover {
  background: #2563eb;
}

/* Results Container */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  border-left: 4px solid;
}

.summary-card.blue { border-left-color: #3b82f6; }
.summary-card.purple { border-left-color: #8b5cf6; }
.summary-card.green { border-left-color: #10b981; }
.summary-card.gray { border-left-color: #64748b; }

.card-icon {
  font-size: 32px;
}

.card-content {
  flex: 1;
}

.card-value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.card-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* DNSSEC Panel */
.dnssec-panel {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid;
}

.dnssec-panel.enabled { border-left-color: #10b981; }
.dnssec-panel.disabled { border-left-color: #ef4444; }

.dnssec-panel .panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-icon {
  font-size: 24px;
}

.panel-title {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
}

.dnssec-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 8px;
}

.detail-label {
  color: #64748b;
}

.detail-value {
  color: #e2e8f0;
  font-weight: 500;
}

.dnssec-warning {
  padding: 16px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
}

.dnssec-warning p {
  margin: 0 0 12px 0;
  color: #e2e8f0;
}

.learn-more {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

/* Record Sections */
.record-section {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.type-icon {
  font-size: 20px;
}

.type-name {
  font-weight: 600;
  color: #e2e8f0;
}

.record-count {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.section-desc {
  font-size: 12px;
  color: #64748b;
}

.collapse-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

.record-section.collapsed .section-content {
  display: none;
}

.record-section.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

/* Records Table */
.records-table {
  width: 100%;
  border-collapse: collapse;
}

.records-table th,
.records-table td {
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.records-table th {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.records-table td {
  font-size: 13px;
  color: #e2e8f0;
}

.records-table tr:hover td {
  background: rgba(59, 130, 246, 0.05);
}

.records-table .mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
}

.records-table .mono.ipv6 {
  font-size: 11px;
}

.records-table .txt-value {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Propagation Panel */
.propagation-panel {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 20px;
}

.propagation-panel .panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-status {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.panel-status.success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.panel-status.partial {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.propagation-resolvers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resolver-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 8px;
  border-left: 3px solid;
}

.resolver-item.success {
  border-left-color: #10b981;
}

.resolver-item.failed {
  border-left-color: #ef4444;
}

.resolver-name {
  font-weight: 600;
  color: #e2e8f0;
}

.resolver-location {
  font-size: 12px;
  color: #64748b;
}

.resolver-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.latency {
  color: #10b981;
  font-weight: 600;
}

.records {
  font-size: 12px;
  color: #64748b;
}

.error {
  color: #ef4444;
}

/* History Dropdown */
.history-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 100;
  margin-top: 8px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.history-header h4 {
  margin: 0;
  font-size: 14px;
  color: #e2e8f0;
}

.clear-history {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s;
}

.clear-history:hover {
  color: #ef4444;
}

.history-list {
  max-height: 300px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.history-item:hover {
  background: rgba(59, 130, 246, 0.1);
}

.history-domain {
  color: #e2e8f0;
  font-size: 14px;
}

.history-arrow {
  color: #64748b;
}

.no-history {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.toast-error {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}

.toast-info {
  background: rgba(59, 130, 246, 0.9);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .dns-premium-wrapper {
    padding: 12px;
  }
  
  .dns-premium-header {
    padding: 20px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .title-section {
    flex-direction: column;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .lookup-btn {
    width: 100%;
    justify-content: center;
  }
  
  .dns-type-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .detail-row {
    flex-direction: column;
    gap: 4px;
  }
}
