/* Renamed from site.css — base styles for the project
   Keep global layout, theme variables and large component groups here.
   Individual components and utilities should live in separate files under
   /wwwroot/css/components and /wwwroot/css/utilities.
*/

@import url('../lib/inter/inter.css');

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
.btn:focus,
 .btn:active:focus,
 .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(99, 102, 241, 0.4);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--theme-body-text);
  background: linear-gradient(180deg, var(--theme-body-bg) 0%, var(--theme-body-bg-alt) 100%);
  background-attachment: fixed;
}

.fullscreen-body {
    margin-bottom: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.fullscreen-body main {
    min-height: 100vh;
    width: 100vw;
}

/* Custom scrollbar for modern look */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  border-radius: 10px;
  border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

:root[data-theme='light'] ::-webkit-scrollbar-track {
  background: #eef2ff;
}

:root[data-theme='light'] ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  border-color: #eef2ff;
}

:root[data-theme='light'] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
}

/* Modern typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted-900);
}

:root[data-theme='light'] h1,
:root[data-theme='light'] h2,
:root[data-theme='light'] h3,
:root[data-theme='light'] h4,
:root[data-theme='light'] h5,
:root[data-theme='light'] h6 {
  color: #0f172a;
}

:root[data-theme='light'] p {
  color: #334155;
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.25rem; font-weight: 800; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
}

p {
  line-height: 1.7;
  color: #475569;
}

a {
  color: var(--brand-500);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-600);
}

/* Accessibility: Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: #6366f1; /* Using hex directly to ensure visibility before variable load if any */
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.2s ease;
  border-bottom-right-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-to-content:focus {
  top: 0;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Theme variables for modern premium look */
:root {
  --brand-500: #818cf8; /* softer indigo */
  --brand-600: #6366f1;
  --brand-700: #4f46e5;
  --brand-50: #f5f7ff;
  --brand-100: #eef2ff;
  --muted-100: #f8fafc;
  --muted-200: #e2e8f0;
  --muted-800: #1e293b;
  --muted-900: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.9);
  --accent: #818cf8;
  --accent-gradient: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.015);
  --theme-body-bg: #0f172a;
  --theme-body-bg-alt: #020617;
  --theme-body-text: #e2e8f0;
  --theme-text-muted: #94a3b8;
  --theme-text: #f8fafc;
}

:root[data-theme='light'] {
  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --card-bg: #ffffff;
  --accent: #2563eb;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --theme-body-bg: #edf2f7;
  --theme-body-bg-alt: #e2e8f0;
  --theme-body-text: #0f172a;
  --theme-text-muted: #475569;
  --theme-text: #0f172a;
}

:root[data-theme='light'] {
  color-scheme: light;
}

.hero {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.02) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(10px);
}

.card {
  border: none;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card h5, .card h3 {
  color: var(--muted-900);
  font-weight: 700;
  letter-spacing: -0.01em;
}

footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--muted-200);
  padding: 2rem 0;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.02);
}

/* Make images in hero look consistent */
.hero img {
  max-width: 100%;
  height: auto;
}

/* Split Viewport Layout */
.split-viewport {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

@media (max-width: 768px) {
    .split-viewport {
        flex-direction: column;
        min-height: auto;
    }

}

/* Interaction: Grow on hover */

.split-link {
    color: white;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    transition: border-color 0.3s;
}

.split-link:hover {
    color: white;
    border-color: white;
}
