/**
 * Infrazor Theme Custom Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Core backgrounds */
  --infrazor-bg: hsl(210, 20%, 98%);
  --infrazor-foreground: hsl(222, 47%, 11%);
  
  /* Cards - clean white */
  --infrazor-card: hsl(0, 0%, 100%);
  --infrazor-card-foreground: hsl(222, 47%, 11%);
  
  /* Primary - Deep Navy (AWS-inspired) */
  --infrazor-primary: hsl(220, 70%, 12%);
  --infrazor-primary-foreground: hsl(0, 0%, 100%);
  
  /* Secondary - Slate */
  --infrazor-secondary: hsl(215, 25%, 27%);
  --infrazor-secondary-foreground: hsl(0, 0%, 100%);
  
  /* Muted */
  --infrazor-muted: hsl(214, 32%, 91%);
  --infrazor-muted-foreground: hsl(215, 16%, 47%);
  
  /* Accent - Coral/Red */
  --infrazor-accent: hsl(12, 80%, 55%);
  --infrazor-accent-foreground: hsl(0, 0%, 100%);
  
  /* Header */
  --infrazor-header-bg: hsl(220, 70%, 8%);
  --infrazor-header-foreground: hsl(0, 0%, 100%);
  
  /* Borders */
  --infrazor-border: hsl(214, 32%, 91%);
  
  /* Success */
  --infrazor-success: hsl(160, 60%, 45%);
  
  /* Radius */
  --infrazor-radius: 0.375rem;
}

/* Base Styles */
html {
  overflow-x: hidden !important;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  background-color: var(--infrazor-bg) !important;
  color: var(--infrazor-foreground) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Space for fixed header */
body {
  padding-top: 64px !important;
}

body.logged-in {
  padding-top: 112px !important; /* 64px header + 48px topbar */
}

/* Header Styles */
#header {
  background-color: var(--infrazor-header-bg) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
}

#header .topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.header .navbar {
  background-color: var(--infrazor-header-bg) !important;
  min-height: 64px !important;
  height: 64px !important;
}

.header .navbar .navbar-brand {
  display: flex;
  align-items: center;
  height: 64px;
}

/* Header Container Width - matching infrahost-redesign */
#header .container {
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

@media (min-width: 1024px) {
  #header .container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

.header .navbar-nav > li > a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

.header .navbar-nav > li > a:hover,
.header .navbar-nav > li > a:focus {
  color: white !important;
}

.header .navbar-nav > .active > a {
  color: var(--infrazor-accent) !important;
}

.header .navbar-nav .dropdown-menu {
  background-color: var(--infrazor-card) !important;
  border-color: var(--infrazor-border) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.header .navbar-nav .dropdown-menu a {
  color: var(--infrazor-card-foreground) !important;
}

.header .navbar-nav .dropdown-menu a:hover {
  background-color: var(--infrazor-muted) !important;
  color: var(--infrazor-accent) !important;
}

/* Logo */
.header .logo,
.header .navbar-brand {
  color: white !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  letter-spacing: -0.02em !important;
  text-decoration: none !important;
}

.header .navbar-brand:hover,
.header .navbar-brand:focus {
  color: white !important;
  text-decoration: none !important;
}

/* Buttons */
.btn-primary,
.btn.btn-primary {
  background-color: var(--infrazor-accent) !important;
  border-color: var(--infrazor-accent) !important;
  color: var(--infrazor-accent-foreground) !important;
  font-weight: 600 !important;
  border-radius: var(--infrazor-radius) !important;
  transition: all 0.2s ease !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background-color: hsl(12, 80%, 50%) !important;
  border-color: hsl(12, 80%, 50%) !important;
  box-shadow: 0 8px 20px -4px hsla(12, 80%, 55%, 0.4) !important;
  transform: translateY(-1px) !important;
}

.btn-outline-primary {
  border-color: var(--infrazor-accent) !important;
  color: var(--infrazor-accent) !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover {
  background-color: var(--infrazor-accent) !important;
  color: var(--infrazor-accent-foreground) !important;
}

/* Cards */
.card,
.panel {
  background-color: var(--infrazor-card) !important;
  border-color: var(--infrazor-border) !important;
  border-radius: var(--infrazor-radius) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.card:hover,
.panel:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px) !important;
}

/* Links */
a {
  color: var(--infrazor-primary) !important;
  transition: color 0.2s ease !important;
}

a:hover,
a:focus {
  color: var(--infrazor-accent) !important;
}

/* Hero Section - Full Width with Background Image */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -64px; /* Offset fixed header */
  padding-top: 64px;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  left: 0;
  right: 0;
}

/* Override container constraints for hero section */
#main-body .container .hero-section,
.primary-content .hero-section,
.row .hero-section {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
}

/* Ensure parent containers don't constrain width */
#main-body .container {
  overflow-x: visible !important;
}

.primary-content {
  overflow-x: visible !important;
}

/* Background Image Wrapper */
.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient Overlays */
.hero-overlay-gradient-1 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, 
    hsla(220, 70%, 8%, 0.95) 0%, 
    hsla(220, 70%, 8%, 0.85) 50%, 
    hsla(220, 70%, 8%, 0.70) 100%);
  z-index: 1;
}

.hero-overlay-gradient-2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, 
    hsla(220, 70%, 8%, 1) 0%, 
    transparent 100%);
  z-index: 2;
}

/* Hero Container */
.hero-container {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .hero-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--infrazor-success);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.hero-badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Hero Title */
.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

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

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

.hero-title-accent {
  color: var(--infrazor-accent);
}

/* Hero Description */
.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 42rem;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

/* Hero CTA */
.hero-cta {
  margin-bottom: 3rem;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
}

/* Hero Stats */
.hero-stats {
  margin-top: 0;
}

.hero-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background-color: hsla(12, 80%, 55%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: var(--infrazor-accent);
  font-size: 1.25rem;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

/* Hero Bottom Gradient */
.hero-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--infrazor-bg) 0%, transparent 100%);
  z-index: 5;
}

/* Network Section - Full Width with Gradient Background */
.network-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, hsl(220, 70%, 10%) 0%, hsl(215, 50%, 18%) 100%);
  color: white;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

/* Override container constraints for network section */
#main-body .container .network-section,
.primary-content .network-section,
.row .network-section {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
}

.network-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .network-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.network-label {
  color: var(--infrazor-accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.network-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
}

.network-title .text-accent {
  color: var(--infrazor-accent);
}

@media (min-width: 768px) {
  .network-title {
    font-size: 2.5rem;
  }
}

.network-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.network-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Network Stats Wrapper */
.network-stats-wrapper {
  position: relative;
  padding: 2rem;
}

.network-stats-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  z-index: 0;
}

.network-stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  z-index: 1;
}

.network-stat-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.network-stat-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.network-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background-color: hsla(12, 80%, 55%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--infrazor-accent);
  font-size: 1.5rem;
}

.network-stat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.network-stat-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

/* Network Decorative Lines */
.network-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(to right, var(--infrazor-accent), rgba(232, 93, 61, 0.5), transparent);
  z-index: 0;
}

.network-line-1 {
  top: 50%;
  left: 0;
  right: 0;
  opacity: 0.3;
}

.network-line-2 {
  top: 25%;
  left: 25%;
  right: 25%;
  opacity: 0.2;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--infrazor-header-foreground);
}

.hero-section h1 .accent {
  color: var(--infrazor-accent);
}

.hero-section p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0rem;
}

/* Feature Cards */
.feature-card {
  background: var(--infrazor-card);
  border: 1px solid var(--infrazor-border);
  border-radius: var(--infrazor-radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 20px 40px -12px hsla(220, 70%, 12%, 0.15);
  transform: translateY(-4px);
}

/* Tiles Section - Equal Height Cards */
.tiles-section .row {
  display: flex;
  flex-wrap: wrap;
}

.tiles-section .col-md-3,
.tiles-section .col-sm-6 {
  display: flex;
}

.tile-card {
  background: var(--infrazor-card);
  border: 1px solid var(--infrazor-border);
  border-radius: var(--infrazor-radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tile-card:hover {
  box-shadow: 0 20px 40px -12px hsla(220, 70%, 12%, 0.15);
  transform: translateY(-4px);
}

.tile-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--infrazor-radius);
  background: linear-gradient(135deg, var(--infrazor-accent) 0%, hsl(16, 75%, 50%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.tile-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--infrazor-card-foreground);
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.tile-text {
  font-size: 0.9rem;
  color: var(--infrazor-muted-foreground);
  margin-bottom: 0;
  flex-grow: 1;
  line-height: 1.5;
}

/* Final CTA Section */
.final-cta-section {
  padding: 6rem 0;
  background-color: var(--infrazor-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.final-cta-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .final-cta-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.final-cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .final-cta-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .final-cta-title {
    font-size: 3rem;
  }
}

.final-cta-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .final-cta-description {
    font-size: 1.25rem;
  }
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.final-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  background-color: var(--infrazor-accent) !important;
  color: white !important;
  border: none !important;
  padding: 0.875rem 1.75rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: var(--infrazor-radius) !important;
  transition: all 0.2s ease !important;
}

.final-cta-btn-primary:hover {
  background-color: hsl(12, 80%, 50%) !important;
  box-shadow: 0 8px 20px -4px hsla(12, 80%, 55%, 0.4) !important;
  transform: translateY(-1px) !important;
  color: white !important;
}

.final-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  padding: 0.875rem 1.75rem !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  border-radius: var(--infrazor-radius) !important;
  transition: all 0.2s ease !important;
}

.final-cta-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: white !important;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--infrazor-radius);
  background: linear-gradient(135deg, var(--infrazor-accent) 0%, hsl(16, 75%, 50%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--infrazor-accent-foreground);
  margin-bottom: 1rem;
}

/* Stats */
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--infrazor-foreground) 0%, var(--infrazor-muted-foreground) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge */
.badge-accent {
  background-color: var(--infrazor-accent);
  color: var(--infrazor-accent-foreground);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Forms */
.form-control {
  border-color: var(--infrazor-border) !important;
  border-radius: var(--infrazor-radius) !important;
}

.form-control:focus {
  border-color: var(--infrazor-accent) !important;
  box-shadow: 0 0 0 3px hsla(12, 80%, 55%, 0.1) !important;
}

/* Footer */
.footer {
  background-color: var(--infrazor-header-bg) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer a:hover {
  color: var(--infrazor-accent) !important;
}

/* Utilities */
.text-accent {
  color: var(--infrazor-accent) !important;
}

.bg-accent {
  background-color: var(--infrazor-accent) !important;
}

.border-accent {
  border-color: var(--infrazor-accent) !important;
}

/* Outline Light Button */
.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.2s ease !important;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: white !important;
}

/* Footer Links Hover */
.footer a:hover {
  color: var(--infrazor-accent) !important;
}

/* Breadcrumb */
.master-breadcrumb {
  background-color: var(--infrazor-bg);
  padding: 1rem 0;
  border-bottom: 1px solid var(--infrazor-border);
}

.master-breadcrumb .container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .master-breadcrumb .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  font-size: 0.875rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 0.5rem;
  color: var(--infrazor-muted-foreground);
}

.breadcrumb-item a {
  color: var(--infrazor-muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--infrazor-accent);
}

.breadcrumb-item.active {
  color: var(--infrazor-foreground);
  font-weight: 500;
}

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

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.125rem;
  }
}

