/* SaberMiIP - Estilos principales */
:root {
  --background: 222 47% 6%;
  --foreground: 210 40% 98%;
  --card: 222 47% 8%;
  --card-foreground: 210 40% 98%;
  --popover: 222 47% 8%;
  --popover-foreground: 210 40% 98%;
  --primary: 217 91% 60%;
  --primary-foreground: 222 47% 6%;
  --secondary: 217 33% 17%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217 33% 17%;
  --muted-foreground: 215 20% 65%;
  --accent: 217 91% 60%;
  --accent-foreground: 222 47% 6%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 98%;
  --border: 217 33% 17%;
  --input: 217 33% 17%;
  --ring: 217 91% 60%;
  --radius: 0.75rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: hsl(222 47% 6%);
  color: hsl(210 40% 98%);
  line-height: 1.6;
  min-height: 100vh;
}

/* Grid background */
.grid-bg {
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effects */
.glow-blue {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.glow-cyan {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

/* Animated background */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Header */
.header {
  border-bottom: 1px solid hsl(217 33% 17%);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.8);
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.nav {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav-link {
  color: hsl(215 20% 65%);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: hsl(210 40% 98%);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 1rem;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  filter: blur(120px);
  animation: pulse-glow 3s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  max-width: 896px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: hsl(217 33% 17%);
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.badge-icon {
  width: 12px;
  height: 12px;
  color: #22d3ee;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.ip-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.ip-value {
  position: relative;
}

.ip-text {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
  .ip-text {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .ip-text {
    font-size: 4.5rem;
  }
}

.ip-glow {
  position: absolute;
  inset: -1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 1rem;
  filter: blur(12px);
  z-index: -1;
}

.copy-btn {
  width: 48px;
  height: 48px;
  border: 1px solid hsl(217 33% 17%);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: hsl(210 40% 98%);
}

.copy-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.5);
}

.hero-description {
  margin-top: 1.5rem;
  color: hsl(215 20% 65%);
  font-size: 1.125rem;
  max-width: 672px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.section {
  padding: 3rem 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: hsl(222 47% 8%);
  border: 1px solid hsl(217 33% 17%);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card-icon {
  width: 16px;
  height: 16px;
}

.card-icon.blue { color: #3b82f6; }
.card-icon.cyan { color: #06b6d4; }
.card-icon.purple { color: #a855f7; }
.card-icon.green { color: #22c55e; }
.card-icon.orange { color: #f97316; }
.card-icon.red { color: #ef4444; }
.card-icon.yellow { color: #eab308; }
.card-icon.pink { color: #ec4899; }

.card-title {
  font-size: 0.875rem;
  color: hsl(215 20% 65%);
  font-weight: 500;
}

.card-value {
  font-size: 1.125rem;
  font-weight: 600;
}

.card-subtitle {
  font-size: 0.875rem;
  color: hsl(215 20% 65%);
  margin-top: 0.25rem;
}

/* Tools Section */
.tools-section {
  padding: 3rem 1rem;
}

.tools-container {
  max-width: 1024px;
  margin: 0 auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsl(217 33% 17%);
  border: none;
  border-radius: 0.5rem;
  color: hsl(210 40% 98%);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.tab-btn:hover {
  background: hsl(217 33% 25%);
}

.tab-btn.active {
  background: hsl(217 91% 60%);
  color: hsl(222 47% 6%);
}

.tool-card {
  background: hsl(222 47% 8%);
  border: 1px solid hsl(217 33% 17%);
  border-radius: 0.75rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tool-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.tool-description {
  color: hsl(215 20% 65%);
  margin-bottom: 1rem;
}

.input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.input {
  flex: 1;
  padding: 0.625rem 1rem;
  background: hsl(222 47% 6%);
  border: 1px solid hsl(217 33% 17%);
  border-radius: 0.5rem;
  color: hsl(210 40% 98%);
  font-size: 0.875rem;
}

.input:focus {
  outline: none;
  border-color: hsl(217 91% 60%);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
}

.btn-green {
  background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
  color: white;
}

.btn-green:hover {
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
}

.btn-purple {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: white;
}

.btn-purple:hover {
  background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
}

.btn-orange {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: white;
}

.btn-orange:hover {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
}

.btn-pink {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  color: white;
}

.btn-pink:hover {
  background: linear-gradient(135deg, #db2777 0%, #e11d48 100%);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Terminal output */
.terminal {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  padding: 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  overflow-x: auto;
}

.terminal-line {
  margin-bottom: 0.25rem;
}

.terminal-prompt {
  color: hsl(215 20% 65%);
  margin-bottom: 0.5rem;
}

.text-green { color: #4ade80; }
.text-cyan { color: #22d3ee; }
.text-blue { color: #60a5fa; }
.text-yellow { color: #facc15; }
.text-red { color: #f87171; }
.text-muted { color: hsl(215 20% 65%); }

/* Info Section */
.info-section {
  padding: 3rem 1rem;
}

.info-card {
  background: hsl(222 47% 8%);
  border: 1px solid hsl(217 33% 17%);
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 896px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.info-card p {
  color: hsl(215 20% 65%);
  margin-bottom: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-grid h4 {
  font-weight: 600;
  color: hsl(210 40% 98%);
  margin-bottom: 0.5rem;
}

.info-grid p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.separator {
  height: 1px;
  background: hsl(217 33% 17%);
  margin: 1rem 0;
}

/* SEO Content */
.seo-content {
  padding: 2rem 1rem;
  max-width: 896px;
  margin: 0 auto;
}

.seo-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.seo-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.seo-content p {
  color: hsl(215 20% 65%);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.seo-content ul, .seo-content ol {
  color: hsl(215 20% 65%);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.seo-content li {
  margin-bottom: 0.5rem;
}

.seo-content a {
  color: #60a5fa;
  text-decoration: none;
}

.seo-content a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  border-top: 1px solid hsl(217 33% 17%);
  padding: 2rem 1rem;
  text-align: center;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: hsl(215 20% 65%);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-link {
  color: hsl(215 20% 65%);
  text-decoration: none;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-link:hover {
  color: hsl(210 40% 98%);
}

.footer-copyright {
  color: hsl(215 20% 65%);
  font-size: 0.75rem;
}

/* Loading spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid #3b82f6;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: hsl(215 20% 65%);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #60a5fa;
}

.breadcrumb-separator {
  color: hsl(215 20% 65%);
}

.breadcrumb-current {
  color: hsl(210 40% 98%);
}

/* Article cards for blog-style pages */
.article-card {
  background: hsl(222 47% 8%);
  border: 1px solid hsl(217 33% 17%);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: hsl(217 91% 60%);
}

.article-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.article-card p {
  color: hsl(215 20% 65%);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.article-card .read-more {
  color: #60a5fa;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.article-card .read-more:hover {
  text-decoration: underline;
}

/* Tag badges */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: hsl(217 33% 17%);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: hsl(215 20% 65%);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.tag:hover {
  background: hsl(217 33% 25%);
}

/* Table styles */
.table-container {
  overflow-x: auto;
  margin: 1rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid hsl(217 33% 17%);
}

.data-table th {
  font-weight: 600;
  color: hsl(210 40% 98%);
  background: hsl(217 33% 17%);
}

.data-table td {
  color: hsl(215 20% 65%);
}

.data-table tr:hover td {
  background: hsl(217 33% 12%);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(222 47% 8%);
}

::-webkit-scrollbar-thumb {
  background: hsl(217 33% 25%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(217 33% 35%);
}

/* Mobile menu */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: hsl(210 40% 98%);
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.hidden { display: none; }

/* Animation for results */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Port scan results grid */
.port-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  max-height: 320px;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .port-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .port-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.port-item {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid;
}

.port-item.open {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

.port-item.closed {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.port-item.filtered {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.3);
}

.port-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.125rem;
}

.port-status {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  display: inline-block;
  margin-top: 0.25rem;
}

.port-service {
  font-size: 0.75rem;
  color: hsl(215 20% 65%);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: hsl(217 33% 17%);
  border-radius: 9999px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Select dropdown */
.select {
  width: 100%;
  padding: 0.625rem 1rem;
  background: hsl(222 47% 6%);
  border: 1px solid hsl(217 33% 17%);
  border-radius: 0.5rem;
  color: hsl(210 40% 98%);
  font-size: 0.875rem;
  cursor: pointer;
}

.select:focus {
  outline: none;
  border-color: hsl(217 91% 60%);
}

/* Badge variants */
.badge-success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.badge-warning {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
}

.badge-error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Related pages section */
.related-pages {
  padding: 2rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.related-pages h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-btn {
  padding: 0.5rem 1rem;
  background: hsl(217 33% 17%);
  border: none;
  border-radius: 0.5rem;
  color: hsl(210 40% 98%);
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover {
  background: hsl(217 33% 25%);
}

.page-btn.active {
  background: hsl(217 91% 60%);
  color: hsl(222 47% 6%);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Language Selector */
.language-selector {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: hsl(222 47% 8%);
  border-bottom: 1px solid hsl(217 33% 17%);
}

.lang-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: hsl(215 20% 65%);
  text-decoration: none;
  transition: all 0.2s;
}

.lang-link:hover {
  background: hsl(217 33% 17%);
  color: hsl(210 40% 98%);
}

.lang-link.active {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
}
