/**
 * Kakashi Documentation - Dark Theme Only
 * Optimized for accessibility with high contrast ratios
 */

/* Dark mode as default - light mode removed */
:root {
  /* Primary - Bright/Dark Reds from logo */
  --ifm-color-primary: #E53939; /* Bright Red */
  --ifm-color-primary-dark: #C02424; /* Dark Red */
  --ifm-color-primary-darker: #8B1515;
  --ifm-color-primary-darkest: #5E0E0E;
  --ifm-color-primary-light: #FF5C5C;
  --ifm-color-primary-lighter: #FF8A8A;
  --ifm-color-primary-lightest: #FFB3B3;

  /* Secondary - Cyan accent from logo */
  --ifm-color-secondary: #2BA3C7;
  --ifm-color-secondary-dark: #2389A7;
  --ifm-color-secondary-darker: #1E7892;
  --ifm-color-secondary-darkest: #175B70;
  --ifm-color-secondary-light: #4EC0DF;
  --ifm-color-secondary-lighter: #7DD4EA;
  --ifm-color-secondary-lightest: #A6E4F2;

  /* Backgrounds from logo */
  --ifm-background-color: #0F1115; /* Background Black */
  --ifm-background-surface-color: #2E2F33; /* Dark Gray */
  --ifm-background-color-emphasis: #1A1C21;

  /* Text */
  --ifm-color-content: #f8f9fa;
  --ifm-color-content-secondary: #c9ced6;
  --ifm-color-content-inverse: #000000;

  /* Code and UI */
  --ifm-code-font-size: 95%;
  --ifm-code-background: #2E2F33;
  --ifm-code-color: #2BA3C7; /* Cyan for code */
  --docusaurus-highlighted-code-line-bg: rgba(229, 57, 57, 0.15);

  /* Borders/Dividers */
  --ifm-border-color: #3A3F45;
  --ifm-divider-color: #464B52;

  /* Links (cyan base, red hover) */
  --ifm-link-color: #2BA3C7;
  --ifm-link-decoration: none;
  --ifm-link-hover-color: #E53939;
  --ifm-link-hover-decoration: underline;
}

/* Force dark theme for all elements */
html[data-theme] {
  color-scheme: dark;
}

/* Enhanced Hero Section */
.hero--primary {
  background: linear-gradient(135deg, #0F1115 0%, #1A1C21 30%, #2E2F33 70%, #E53939 100%);
  position: relative;
}

/* Performance Metrics */
.hero__performance {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.performance-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(229, 57, 57, 0.1);
  border: 2px solid rgba(229, 57, 57, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.performance-metric:hover {
  background: rgba(229, 57, 57, 0.15);
  border-color: rgba(229, 57, 57, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 57, 57, 0.2);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #E53939;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.metric-label {
  font-size: 0.9rem;
  color: #c9ced6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  font-weight: 500;
}

.hero--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(229, 57, 57, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero__title {
  color: #f8f9fa !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.hero__subtitle {
  color: #f8f9fa !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Enhanced Buttons */
.button--secondary {
  background-color: #E53939 !important;
  border-color: #E53939 !important;
  color: #f8f9fa !important;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(229, 57, 57, 0.3);
}

.button--secondary:hover {
  background-color: #C02424 !important;
  border-color: #C02424 !important;
  color: #f8f9fa !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(229, 57, 57, 0.4);
}

/* Enhanced Navigation */
.navbar {
  background-color: #0F1115 !important;
  border-bottom: 2px solid #E53939;
  box-shadow: 0 2px 8px rgba(229, 57, 57, 0.15);
}

.navbar__brand {
  color: #E53939 !important;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.navbar__link {
  color: #ffffff !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar__link:hover {
  color: #E53939 !important;
  text-decoration: none;
}

.navbar__link--active {
  color: #E53939 !important;
  font-weight: 600;
}

/* Enhanced Footer */
.footer--dark {
  background-color: #0F1115 !important;
  border-top: 2px solid #E53939;
}

.footer__link-item {
  color: #2BA3C7 !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer__link-item:hover {
  color: #E53939 !important;
  text-decoration: underline;
}

.footer__copyright {
  color: #f8f9fa !important;
  font-weight: 400;
}

/* Enhanced Code Blocks */
.prism-code {
  border-left: 4px solid #E53939 !important;
  background-color: #2E2F33 !important;
  border-radius: 0 4px 4px 0;
}

code {
  background-color: #2E2F33 !important;
  color: #2BA3C7 !important;
  border: 1px solid #3A3F45;
  border-radius: 3px;
  padding: 2px 6px;
}

pre {
  background-color: #2E2F33 !important;
  border: 1px solid #3A3F45;
  border-radius: 6px;
}

/* Enhanced Sidebar */
.menu__link {
  color: #ffffff !important;
  font-weight: 400;
  transition: all 0.2s ease;
  border-radius: 4px;
  margin: 2px 0;
}

.menu__link:hover {
  color: #E53939 !important;
  background-color: rgba(229, 57, 57, 0.1) !important;
  text-decoration: none;
}

.menu__link--active {
  color: #E53939 !important;
  background-color: rgba(229, 57, 57, 0.15) !important;
  font-weight: 600;
  border-left: 3px solid #E53939;
}

/* Enhanced Table of Contents */
.table-of-contents__link {
  color: #e0e0e0 !important;
  font-weight: 400;
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 4px 8px;
  margin: 2px 0;
}

.table-of-contents__link:hover {
  color: #E53939 !important;
  background-color: rgba(229, 57, 57, 0.1) !important;
  text-decoration: none;
}

.table-of-contents__link--active {
  color: #E53939 !important;
  background-color: rgba(229, 57, 57, 0.15) !important;
  font-weight: 600;
  border-left: 3px solid #E53939;
}

/* Enhanced Cards and Content */
.card {
  background-color: #0F1115 !important;
  border: 1px solid #3A3F45;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: #E53939;
  box-shadow: 0 4px 12px rgba(229, 57, 57, 0.2);
}

/* Enhanced Tables */
table {
  background-color: #0F1115 !important;
  border: 1px solid #3A3F45;
  border-radius: 6px;
}

th {
  background-color: #2E2F33 !important;
  color: #ffffff !important;
  border-bottom: 2px solid #E53939;
}

td {
  border-bottom: 1px solid #3A3F45;
  color: #e0e0e0 !important;
}

/* Enhanced Forms */
input, textarea, select {
  background-color: #0F1115 !important;
  border: 1px solid #3A3F45 !important;
  color: #ffffff !important;
  border-radius: 4px;
}

input:focus, textarea:focus, select:focus {
  border-color: #E53939 !important;
  box-shadow: 0 0 0 2px rgba(229, 57, 57, 0.2) !important;
}

/* Enhanced Links */
a {
  color: #2BA3C7 !important;
  transition: color 0.2s ease;
}

a:hover {
  color: #E53939 !important;
  text-decoration: underline;
}

/* Enhanced Headings */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
  border-bottom: 2px solid #333333;
  padding-bottom: 8px;
}

h1::after, h2::after, h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: #E53939;
}

/* Enhanced Blockquotes */
blockquote {
  background-color: #0F1115 !important;
  border-left: 4px solid #E53939;
  color: #e0e0e0 !important;
  padding: 16px;
  margin: 16px 0;
  border-radius: 0 4px 4px 0;
}

/* Enhanced Lists */
ul, ol {
  color: #e0e0e0 !important;
}

li::marker {
  color: #e67e22 !important;
}

/* Enhanced Search */
.searchBox {
  background-color: #0F1115 !Important;
  border: 1px solid #3A3F45;
  border-radius: 6px;
}

.searchBox input {
  background-color: transparent !important;
  color: #ffffff !important;
}

.searchBox input::placeholder {
  color: #999999 !important;
}

/* Enhanced Pagination */
.pagination-nav__link {
  background-color: #0F1115 !important;
  border: 1px solid #3A3F45;
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.pagination-nav__link:hover {
  border-color: #E53939;
  background-color: rgba(229, 57, 57, 0.1) !important;
}

.pagination-nav__label {
  color: #E53939 !important;
}

/* Enhanced Breadcrumbs */
.breadcrumbs__link {
  color: #2BA3C7 !important;
}

.breadcrumbs__link:hover {
  color: #E53939 !important;
}

.breadcrumbs__item--active .breadcrumbs__link {
  color: #ffffff !important;
}

/* Enhanced Admonitions */
.admonition {
  background-color: #0F1115 !important;
  border: 1px solid #3A3F45;
  border-radius: 6px;
}

.admonition-heading {
  color: #E53939 !important;
  font-weight: 600;
}

/* Enhanced Tabs */
.tabs__item {
  color: #e0e0e0 !important;
  background-color: #0F1115 !important;
  border: 1px solid #3A3F45;
  transition: all 0.2s ease;
}

.tabs__item--active {
  color: #E53939 !important;
  background-color: #2E2F33 !important;
  border-color: #E53939;
}

.tabs__item:hover {
  color: #E53939 !important;
  background-color: rgba(229, 57, 57, 0.1) !important;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #090A0D;
}

::-webkit-scrollbar-thumb {
  background: #E53939;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C02424;
}

/* Enhanced Focus States */
*:focus {
  outline: 2px solid #E53939 !important;
  outline-offset: 2px;
}

/* Enhanced Selection */
::selection {
  background-color: #E53939 !important;
  color: #ffffff !important;
}

::-moz-selection {
  background-color: #E53939 !important;
  color: #ffffff !important;
}
