/* Search Console Pro Custom CSS */
@font-face {
  font-display: swap;
  font-family: 'Space Grotesk';
  font-style: normal;
  src: url('/fonts/space-grotesk-v21-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/fira-code-v22-latin-regular.woff2') format('woff2');
}

:root {
  /* Main color palette */
  --primary: #4CAF50;
  --primary-dark: #388E3C;
  --secondary: #607D8B;
  --secondary-dark: #455A64;
  --accent: #00BCD4;
  --accent-soft: rgba(0, 188, 212, 0.3);
  --terminal-bg: #1E1E1E;
  --terminal-text: #F0F0F0;
  --success: #0cce6b;
  --warning: #FFC107;
  --error: #F44336;

  /* Theme colors */
  --background: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F5F5F5;
  --surface-3: #EEEEEE;
  --text: #212121;
  --text-secondary: #757575;
  --text-tertiary: #9E9E9E;
  --border: rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  /* Global sizes */
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

      --container-width: 800px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #121212;
    --surface: #1E1E1E;
    --surface-2: #2C2C2C;
    --surface-3: #3C3C3C;
    --text: #FFFFFF;
    --text-secondary: #E0E0E0;
    --text-tertiary: #BDBDBD;
    --border: rgba(255, 255, 255, 0.12);
    --primary: #66BB6A;
    --primary-dark: #4CAF50;
  }
}

main {
background: unset;
}

/* Search Console Pro Hero Section */
.scp-hero {
  position: relative;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  border-radius: var(--border-radius-lg);
  padding: var(--sp-8) var(--sp-4);
  padding-top: var(--sp-8);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  padding: var(--sp-8) var(--sp-4);
  margin-bottom: var(--sp-16);
}

.terminal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.07;
  overflow: hidden;
  pointer-events: none;
}

.terminal-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--terminal-text) 1px, transparent 1px);
  background-size: 30px 30px;
}

.terminal-line {
  position: absolute;
  height: 2px;
  background: var(--primary);
  left: 0;
  right: 0;
  opacity: 0.5;
}

.terminal-line:nth-child(1) {
  top: 20%;
  animation: scan 3s linear infinite;
}

.terminal-line:nth-child(2) {
  top: 50%;
  animation: scan 5s linear infinite;
  animation-delay: 1s;
}

.terminal-line:nth-child(3) {
  top: 80%;
  animation: scan 4s linear infinite;
  animation-delay: 2s;
}

@keyframes scan {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(30px);
  }
  100% {
    transform: translateY(0);
  }
}

.scp-hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  margin-top: var(--sp-8);
}

.hero-cta {
  display: flex;
  align-items: center;
  margin-top: var(--sp-6);
}

.scp-hero-content {
  padding: var(--sp-4);
}

.scp-hero-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 50px;
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scp-hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: var(--sp-3);
  color: white;
  font-weight: 700;
  line-height: 1.2;
}

.scp-hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: var(--sp-4);
  line-height: 1.4;
}

.scp-hero-description {
  font-size: 1.125rem;
  margin-bottom: var(--sp-6);
  opacity: 0.9;
  max-width: 90%;
  line-height: 1.6;
}

.scp-hero-image {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scp-hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: perspective(800px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.scp-hero-image img:hover {
  transform: perspective(800px) rotateY(0);
}

/* Buttons */
.scp-cta {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--border-radius);
  text-decoration: none;
  margin-right: var(--sp-4);
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.scp-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(76, 175, 80, 0.5);
  color: white;
  text-decoration: none;
}

.scp-secondary-cta {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.scp-secondary-cta:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: white;
  text-decoration: none;
}

/* Content Styles */
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: var(--sp-8) 0 var(--sp-4);
  color: var(--text);
  position: relative;
  padding-bottom: var(--sp-2);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

[dir="rtl"] h2::after {
  left: auto;
  right: 0;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: var(--sp-6) 0 var(--sp-3);
  color: var(--text);
}

main ul, main ol {
  margin: var(--sp-4) 0;
  padding-left: var(--sp-6);
}

main li {
  margin-bottom: var(--sp-2);
  position: relative;
}

/* Term highlight */
strong {
  color: var(--primary);
  font-weight: 600;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-6) 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

th {
  background: var(--surface-2);
  padding: var(--sp-3);
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

td {
  padding: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

tr:hover {
  background: var(--surface-3);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .scp-hero-container {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .scp-hero-content {
    order: 2;
    text-align: center;
  }

  .scp-hero-image {
    order: 1;
    margin-bottom: var(--sp-6);
  }

  .scp-hero-description {
    max-width: 100%;
  }

  .scp-hero-title {
    font-size: 2.5rem;
  }

  .scp-cta, .scp-secondary-cta {
    display: block;
    margin: var(--sp-3) auto;
    max-width: 80%;
  }

  h2 {
    font-size: 1.75rem;
  }

  .scp-hero {
    padding: var(--sp-6) var(--sp-3);
  }
}

/* RTL Support */
[dir="rtl"] .scp-hero-content {
  text-align: right;
}

[dir="rtl"] main ul, [dir="rtl"] main ol {
  padding-right: var(--sp-6);
  padding-left: 0;
}

[dir="rtl"] th {
  text-align: right;
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scp-hero-badge,
.scp-hero-title,
.scp-hero-subtitle,
.scp-hero-description,
.scp-cta,
.scp-secondary-cta {
  animation: fadeUp 0.6s ease forwards;
}

.scp-hero-badge { animation-delay: 0.1s; }
.scp-hero-title { animation-delay: 0.2s; }
.scp-hero-subtitle { animation-delay: 0.3s; }
.scp-hero-description { animation-delay: 0.4s; }
.scp-cta, .scp-secondary-cta { animation-delay: 0.5s; }

.scp-hero-image img {
  animation: fadeUp 0.6s ease 0.3s forwards;
  opacity: 0;
}