/* OceanCanvas docs — the ocean is alive, the docs should feel it */

:root {
  --md-primary-fg-color: #050E1A;
  --md-primary-bg-color: #E0E0E0;
  --md-accent-fg-color: #5DCAA5;
  --ocean-deep: #030B10;
  --ocean-surface: #050E1A;
  --ocean-mid: #0F6E56;
  --ocean-warm: #EF9F27;
  --ocean-teal: #5DCAA5;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0a0f16;
  --md-default-fg-color--light: rgba(255, 255, 255, 0.65);
  --md-typeset-a-color: var(--ocean-teal);
}

/* Header — deep ocean with wave gradient */
.md-header {
  background: linear-gradient(135deg, #020810 0%, #042C53 50%, #0F6E56 100%);
  border-bottom: 1px solid rgba(93, 202, 165, 0.15);
}

.md-header__title {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(93, 202, 165, 0.3);
}

/* Sidebar */
.md-sidebar {
  background: var(--ocean-deep);
}

.md-nav__link {
  font-size: 0.82rem;
  transition: color 0.2s;
}

.md-nav__link:hover {
  color: var(--ocean-teal) !important;
}

.md-nav__link--active {
  color: var(--ocean-teal) !important;
  border-left: 2px solid var(--ocean-teal);
  padding-left: 10px;
}

/* Content — deeper ocean atmosphere */
.md-content {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(4, 44, 83, 0.25) 0%, transparent 40%),
    radial-gradient(ellipse at 10% 90%, rgba(15, 110, 86, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(93, 202, 165, 0.03) 0%, transparent 70%),
    linear-gradient(180deg, #0a0f16 0%, #061020 50%, #0a0f16 100%);
}

/* Body text — warmer white */
.md-typeset {
  color: rgba(220, 230, 240, 0.85);
}

/* Bold text — teal tint */
.md-typeset strong {
  color: rgba(93, 202, 165, 0.9);
  font-weight: 600;
}

/* h1 — gradient underline */
.md-typeset h1 {
  font-weight: 500;
  font-size: 2.2em;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--ocean-teal), var(--ocean-warm), transparent) 1;
  padding-bottom: 12px;
}

/* h2 — teal */
.md-typeset h2 {
  color: var(--ocean-teal);
  font-weight: 500;
  border-bottom: 1px solid rgba(93, 202, 165, 0.15);
  padding-bottom: 8px;
}

/* h3 — warm amber */
.md-typeset h3 {
  color: var(--ocean-warm);
}

/* Emphasis — lighter, airy */
.md-typeset em {
  color: rgba(175, 169, 236, 0.85);
}

/* Lists — teal markers */
.md-typeset ul > li::marker {
  color: var(--ocean-teal);
}

.md-typeset ol > li::marker {
  color: var(--ocean-warm);
}

/* Blockquotes */
.md-typeset blockquote {
  border-left: 3px solid var(--ocean-teal);
  background: rgba(4, 44, 83, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
}

/* Tables */
.md-typeset table:not([class]) {
  border: 1px solid rgba(93, 202, 165, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: linear-gradient(135deg, #042C53, #0F6E56);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.md-typeset table:not([class]) td {
  border-color: rgba(93, 202, 165, 0.06);
}

.md-typeset table:not([class]) tr:hover td {
  background: rgba(4, 44, 83, 0.2);
}

/* Code */
.md-typeset code {
  background: rgba(4, 44, 83, 0.4);
  color: var(--ocean-teal);
  border: 1px solid rgba(93, 202, 165, 0.1);
  border-radius: 3px;
}

.md-typeset pre {
  background: var(--ocean-deep) !important;
  border: 1px solid rgba(93, 202, 165, 0.1);
  border-radius: 6px;
}

/* Links */
.md-typeset a {
  color: var(--ocean-teal);
  transition: color 0.2s;
}

.md-typeset a:hover {
  color: var(--ocean-warm);
}

/* HR — wave gradient */
.md-typeset hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(4, 44, 83, 0.5) 15%,
    rgba(93, 202, 165, 0.3) 50%,
    rgba(4, 44, 83, 0.5) 85%,
    transparent 100%
  );
  margin: 2em 0;
}

/* Admonitions */
.md-typeset .admonition {
  border-left-color: var(--ocean-teal);
  background: rgba(4, 44, 83, 0.15);
  border-radius: 4px;
}

/* Images */
.md-typeset img {
  border-radius: 6px;
  border: 1px solid rgba(93, 202, 165, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.md-footer {
  background: var(--ocean-deep);
  border-top: 1px solid rgba(93, 202, 165, 0.1);
}

.md-footer-meta {
  background: var(--ocean-deep);
}

/* Search */
.md-search__input {
  background: rgba(4, 44, 83, 0.3) !important;
  border: 1px solid rgba(93, 202, 165, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ocean-deep); }
::-webkit-scrollbar-thumb { background: rgba(93, 202, 165, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(93, 202, 165, 0.4); }

/* Selection */
::selection {
  background: rgba(239, 159, 39, 0.3);
  color: white;
}

/* Header shadow on scroll */
.md-header[data-md-state="shadow"] {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════ */
/* Hero section — the ocean greets you            */
/* ═══════════════════════════════════════════════ */

.oc-hero {
  text-align: center;
  padding: 60px 20px 40px;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(4, 44, 83, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 40%, rgba(15, 110, 86, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(186, 117, 23, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, #020810 0%, #042C53 40%, #0F6E56 70%, #030B10 100%);
  border-radius: 0 0 8px 8px;
  margin: -20px -20px 0;
  position: relative;
}

.oc-hero h1 {
  font-size: 3.5em !important;
  font-weight: 300 !important;
  letter-spacing: 0.15em !important;
  color: rgba(255, 255, 255, 0.95) !important;
  border: none !important;
  text-shadow: 0 0 40px rgba(93, 202, 165, 0.4), 0 0 80px rgba(4, 44, 83, 0.6);
  margin-bottom: 8px !important;
}

.oc-hero > p:first-of-type {
  font-size: 1.3em;
  color: var(--ocean-teal);
  margin-bottom: 4px;
}

.oc-hero > p:nth-of-type(2) {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin-bottom: 24px;
}

.oc-hero .md-button {
  margin: 0 8px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.oc-hero .md-button--primary {
  background: var(--ocean-teal);
  border-color: var(--ocean-teal);
  color: #030B10;
}

.oc-hero .md-button--primary:hover {
  background: var(--ocean-warm);
  border-color: var(--ocean-warm);
}

.oc-hero .md-button:not(.md-button--primary) {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

.oc-hero .md-button:not(.md-button--primary):hover {
  border-color: var(--ocean-teal);
  color: var(--ocean-teal);
}

/* Animated wave separator */
.oc-wave {
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--ocean-deep));
  position: relative;
  overflow: hidden;
  margin: -20px -20px 30px;
}

.oc-wave::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 30px;
  background:
    radial-gradient(ellipse at 25% 100%, rgba(93, 202, 165, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 100%, rgba(239, 159, 39, 0.08) 0%, transparent 50%);
  animation: wave-drift 8s ease-in-out infinite;
}

@keyframes wave-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5%); }
}

/* Closing section — the ocean's last word */
.oc-closing {
  text-align: center;
  padding: 40px 20px;
  margin: 20px -20px -20px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(4, 44, 83, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, var(--ocean-deep), #042C53, var(--ocean-deep));
}

.oc-closing em {
  font-size: 1.2em;
  color: var(--ocean-teal) !important;
  text-shadow: 0 0 30px rgba(93, 202, 165, 0.3);
}
