/*
 * EuroHosting design system — Professional Light Edition
 * Light by default. Clean, airy, professional (Linear / Stripe / Vercel docs).
 * Brand: Confident Indigo → Sky Blue
 */

:root {
  --radius: 0.875rem;

  /* Brand: confident indigo → sky blue */
  --brand: oklch(0.55 0.20 260);              /* deep indigo */
  --brand-glow: oklch(0.62 0.18 230);         /* sky blue gradient end */
  --brand-foreground: oklch(1 0 0);           /* white text on brand */

  /* Backgrounds — near-white with cool hint */
  --background: oklch(0.99 0.003 250);        /* near-white */
  --foreground: oklch(0.20 0.03 255);         /* deep slate */
  --surface: oklch(1 0 0);                    /* pure white card */
  --surface-elevated: oklch(0.985 0.005 250);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.20 0.03 255);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.20 0.03 255);

  /* Primary uses brand indigo for CTAs */
  --primary: oklch(0.55 0.20 260);
  --primary-foreground: oklch(1 0 0);

  --secondary: oklch(0.96 0.008 250);
  --secondary-foreground: oklch(0.22 0.03 255);

  --muted: oklch(0.96 0.008 250);
  --muted-foreground: oklch(0.48 0.02 255);

  --accent: oklch(0.94 0.02 255);
  --accent-foreground: oklch(0.22 0.03 255);

  --destructive: oklch(0.60 0.21 25);
  --destructive-foreground: oklch(1 0 0);
  --success: oklch(0.62 0.16 155);
  --success-foreground: oklch(1 0 0);
  --warning: oklch(0.72 0.16 75);
  --warning-foreground: oklch(0.20 0.04 60);

  --border: oklch(0.20 0.03 255 / 10%);
  --input: oklch(0.20 0.03 255 / 14%);
  --ring: oklch(0.55 0.20 260 / 45%);

  /* Gradients — indigo → sky */
  --gradient-brand: linear-gradient(135deg, oklch(0.55 0.20 260) 0%, oklch(0.62 0.18 230) 100%);
  --gradient-hero: radial-gradient(
      ellipse 90% 65% at 50% 0%,
      oklch(0.55 0.20 260 / 0.08) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 20%,
      oklch(0.62 0.18 230 / 0.06) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, oklch(0.995 0.003 250) 0%, oklch(0.99 0.003 250) 100%);
  --gradient-card: linear-gradient(
    135deg,
    oklch(1 0 0) 0%,
    oklch(0.985 0.008 250) 100%
  );
  --gradient-text: linear-gradient(135deg, oklch(0.55 0.20 260) 0%, oklch(0.62 0.18 230) 100%);
  --gradient-mesh: radial-gradient(at 20% 10%, oklch(0.55 0.20 260 / 0.08) 0%, transparent 55%),
                   radial-gradient(at 85% 5%, oklch(0.62 0.18 230 / 0.07) 0%, transparent 50%),
                   radial-gradient(at 50% 100%, oklch(0.55 0.20 260 / 0.05) 0%, transparent 60%);

  /* Shadows — soft, professional */
  --shadow-glow: 0 8px 28px -8px oklch(0.55 0.20 260 / 0.35);
  --shadow-glow-lg: 0 16px 48px -12px oklch(0.55 0.20 260 / 0.30);
  --shadow-card: 0 4px 20px -8px oklch(0.20 0.03 255 / 0.10);
  --shadow-elevated: 0 16px 48px -16px oklch(0.20 0.03 255 / 0.18);

  --sidebar: oklch(1 0 0);
  --sidebar-foreground: oklch(0.22 0.03 255);
  --sidebar-primary: oklch(0.55 0.20 260);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.96 0.008 250);
  --sidebar-accent-foreground: oklch(0.22 0.03 255);
  --sidebar-border: oklch(0.20 0.03 255 / 8%);
  --sidebar-ring: oklch(0.55 0.20 260 / 45%);
}

* {
  border-color: var(--border);
  box-sizing: border-box;
}

html {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  background-image:
    radial-gradient(ellipse 70% 50% at 15% 0%, oklch(0.55 0.20 260 / 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 5%, oklch(0.62 0.18 230 / 0.04) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

::selection {
  background-color: oklch(0.55 0.20 260 / 0.18);
  color: var(--foreground);
}

.glass {
  background: var(--gradient-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid oklch(0.20 0.03 255 / 8%);
}

.glass-strong {
  background: linear-gradient(135deg, oklch(1 0 0 / 0.94) 0%, oklch(0.985 0.005 250 / 0.90) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid oklch(0.20 0.03 255 / 10%);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient-brand {
  background: var(--gradient-brand);
}

.bg-gradient-hero {
  background: var(--gradient-hero);
}

.bg-gradient-mesh {
  background: var(--gradient-mesh);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-glow-lg {
  box-shadow: var(--shadow-glow-lg);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.shadow-elevated {
  box-shadow: var(--shadow-elevated);
}

.border-brand {
  border-color: var(--brand);
}

.ring-brand {
  --tw-ring-color: var(--brand);
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

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

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-shimmer {
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
}

@keyframes shimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}

/* ==========================================================================
   Prose & Content Formatting (Reviews, Blog, Guides)
   ========================================================================== */
.prose {
  color: var(--foreground);
  line-height: 1.75;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 1.75em;
  margin-bottom: 0.6em;
  letter-spacing: -0.02em;
}

.prose h1 {
  font-size: 2rem;
  line-height: 1.25;
}

.prose h2 {
  font-size: 1.5rem;
  line-height: 1.35;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4em;
}

.prose h3 {
  font-size: 1.25rem;
  line-height: 1.4;
}

.prose h4 {
  font-size: 1.05rem;
  line-height: 1.45;
}

.prose p {
  margin-top: 1.1em;
  margin-bottom: 1.1em;
  font-size: 1rem;
}

.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-top: 1em;
  margin-bottom: 1em;
}

.prose li {
  margin-top: 0.35em;
  margin-bottom: 0.35em;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose blockquote {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface-elevated);
  color: var(--muted-foreground);
  margin: 1.5em 0;
  font-style: italic;
}

.prose blockquote p {
  margin: 0;
}

.prose code {
  background: var(--muted);
  color: var(--primary);
  padding: 0.2em 0.45em;
  border-radius: 0.35rem;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prose pre {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5em 0;
  max-width: 100%;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.85rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5em 0;
  display: block;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.prose a:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Responsive Tables with Fluid Touch Scrolling
   ========================================================================== */
.table-responsive-container,
.prose .overflow-x-auto {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: 0.875rem !important;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  margin: 1.75rem 0 !important;
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.06);
}

.table-responsive-container::-webkit-scrollbar,
.prose .overflow-x-auto::-webkit-scrollbar {
  height: 6px;
}

.table-responsive-container::-webkit-scrollbar-track,
.prose .overflow-x-auto::-webkit-scrollbar-track {
  background: var(--surface-elevated);
  border-radius: 9999px;
}

.table-responsive-container::-webkit-scrollbar-thumb,
.prose .overflow-x-auto::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 9999px;
}

.prose table {
  width: 100% !important;
  min-width: 520px;
  border-collapse: collapse !important;
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

.prose th {
  background-color: var(--surface-elevated) !important;
  color: var(--foreground) !important;
  font-weight: 700 !important;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.75rem 1rem !important;
  border-bottom: 2px solid var(--border) !important;
  white-space: nowrap !important;
}

.prose td {
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--foreground) !important;
  vertical-align: middle !important;
}

.prose tr:last-child td {
  border-bottom: none !important;
}

.prose tr:hover td {
  background-color: oklch(0.55 0.20 260 / 0.02) !important;
}

/* ==========================================================================
   Responsive Grid System (Desktop 2-Col, Mobile 1-Col Stack)
   ========================================================================== */
@media (min-width: 1024px) {
  .grid.lg\:grid-cols-\[2fr_1fr\],
  .grid.lg\:grid-cols-\[minmax\(0\,2fr\)_minmax\(0\,1fr\)\] {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
    align-items: start !important;
  }
}

@media (max-width: 1023px) {
  .grid.lg\:grid-cols-\[2fr_1fr\],
  .grid.lg\:grid-cols-\[minmax\(0\,2fr\)_minmax\(0\,1fr\)\] {
    grid-template-columns: 100% !important;
    width: 100% !important;
  }

  .grid.lg\:grid-cols-\[2fr_1fr\] > aside,
  .grid.lg\:grid-cols-\[minmax\(0\,2fr\)_minmax\(0\,1fr\)\] > aside {
    margin-top: 2rem !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   Custom Editorial Review Grid Utilities (Bootstrap-like compatibility)
   ========================================================================== */
.infrawire-editorial-review .row,
.prose .row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-right: -0.5rem !important;
  margin-left: -0.5rem !important;
}

.infrawire-editorial-review .row > *,
.prose .row > * {
  flex-shrink: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-right: 0.5rem !important;
  padding-left: 0.5rem !important;
}

.infrawire-editorial-review .g-3,
.prose .g-3 {
  margin-top: -0.75rem !important;
}
.infrawire-editorial-review .g-3 > *,
.prose .g-3 > * {
  margin-top: 0.75rem !important;
}

.infrawire-editorial-review .g-4,
.prose .g-4 {
  margin-top: -1rem !important;
}
.infrawire-editorial-review .g-4 > *,
.prose .g-4 > * {
  margin-top: 1rem !important;
}

@media (min-width: 768px) {
  .infrawire-editorial-review .col-md-3,
  .prose .col-md-3 {
    flex: 0 0 auto !important;
    width: 25% !important;
  }
  .infrawire-editorial-review .col-md-4,
  .prose .col-md-4 {
    flex: 0 0 auto !important;
    width: 33.33333333% !important;
  }
  .infrawire-editorial-review .col-md-6,
  .prose .col-md-6 {
    flex: 0 0 auto !important;
    width: 50% !important;
  }
}

@media (max-width: 767px) {
  .infrawire-editorial-review .col-6,
  .prose .col-6 {
    flex: 0 0 auto !important;
    width: 50% !important;
  }
}

@media (min-width: 992px) {
  .infrawire-editorial-review .col-lg-8,
  .prose .col-lg-8 {
    flex: 0 0 auto !important;
    width: 66.66666667% !important;
  }
  .infrawire-editorial-review .col-lg-4,
  .prose .col-lg-4 {
    flex: 0 0 auto !important;
    width: 33.33333333% !important;
  }
}

/* ==========================================================================
   Mobile Typography & Layout Fine-Tuning (<640px)
   ========================================================================== */
@media (max-width: 640px) {
  .prose h1 { font-size: 1.45rem !important; line-height: 1.3 !important; }
  .prose h2 { font-size: 1.25rem !important; line-height: 1.35 !important; margin-top: 1.5rem !important; }
  .prose h3 { font-size: 1.1rem !important; line-height: 1.4 !important; }
  .prose p, .prose li { font-size: 0.9375rem !important; line-height: 1.65 !important; }
  .prose pre { padding: 0.75rem !important; font-size: 0.75rem !important; }
  .prose blockquote { padding: 0.6rem 0.85rem !important; margin: 1rem 0 !important; }
  
  .prose table {
    font-size: 0.75rem !important;
  }
  .prose th, .prose td {
    padding: 0.6rem 0.75rem !important;
  }
}
