/* --- IP Tracer Pro Styles (extracted from iptracer.html) --- */

:root {
  --bg: #0a0a0f;
  --card: #1a1a1f;
  --card-hover: #222228;
  --text: #ffffff;
  --text-secondary: #a0a0a0;
  --muted: #666;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --border: #2a2a2e;
  --border-light: #3a3a3e;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s cubic-bezier(.4,0,.2,1), color 0.4s cubic-bezier(.4,0,.2,1);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--card);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
  transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fade-in {
  animation: fadeIn 0.7s cubic-bezier(.4,0,.2,1);
}

.slide-in {
  animation: slideIn 0.4s cubic-bezier(.4,0,.2,1);
}

/* Header */
.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: background 0.4s cubic-bezier(.4,0,.2,1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 0.3s;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: var(--card-hover);
  border-color: var(--primary);
}

/* Main Container */
.main-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: calc(100vh - 80px);
  transition: padding 0.3s;
}

@media (max-width: 1024px) {
  .main-container {
    padding: 1rem;
    gap: 1rem;
  }
}

/* Removed .tools-panel, .tools-container, .tool-section, .tool-header, .tool-content, and related styles */

.tool-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tool-button {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}

.tool-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 16px rgba(59,130,246,0.12);
}

.tool-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.tool-output {
  margin-top: 1rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  flex: 1;
  min-height: 100px;
  transition: border-color 0.2s;
}

.tool-output::-webkit-scrollbar {
  width: 6px;
}

.tool-output::-webkit-scrollbar-track {
  background: var(--bg);
}

.tool-output::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.tool-output::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* Main Content */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
  border-color: var(--primary);
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.2s;
}

.ip-display {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
  transition: color 0.2s;
}

.ip-display .copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.ip-display .copy-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.08);
}

.search-form {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  transition: gap 0.2s;
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-button {
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px) scale(1.03);
}

/* Results */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  transition: gap 0.2s;
}

.info-item {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.info-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.01);
}

.info-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}

/* Loading States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Status Indicators */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.status.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    padding: 1rem;
  }
  .header-content {
    padding: 0 1rem;
  }
  .card {
    padding: 1.5rem;
  }
  .search-form {
    flex-direction: column;
  }
  .ip-display {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .tools-panel {
    position: static;
    height: auto;
    min-height: 0;
    margin-bottom: 2rem;
    box-shadow: none;
    padding: 1rem;
  }
  .tools-panel h3 {
    font-size: 1.1rem;
    padding: 0.25rem 0;
  }
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  color: var(--text);
  box-shadow: var(--shadow);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), background 0.3s;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--error);
}

.share-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.share-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.08);
} 

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}
.blog-preview {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.5rem;
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 350px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-preview:hover {
  box-shadow: 0 6px 24px rgba(59,130,246,0.12);
  transform: translateY(-4px) scale(1.02);
}
.blog-preview h3 {
  margin-top: 0;
}
.blog-preview a {
  color: var(--primary);
  text-decoration: none;
}
.blog-preview a:hover {
  text-decoration: underline;
} 