/* ============================================
   Windows 7 Aero Glass Skeuomorphic Theme
   for Valve Archive 2
   ============================================ */

/* === Core Color Palette === */
html body[data-md-color-scheme="default"] {
    /* Glass/Aero colors */
    --aero-glass-bg: rgba(225, 240, 252, 0.75);
    --aero-glass-border: rgba(151, 181, 214, 0.9);
    --aero-glass-highlight: rgba(255, 255, 255, 0.4);
    --aero-glass-shadow: rgba(0, 0, 0, 0.15);
    
    /* Metal/Chrome colors */
    --metal-light: #e8eef5;
    --metal-mid: #c5d4e6;
    --metal-dark: #7a92b0;
	--metal-darker: #6F7D8E;
    --metal-shine: rgba(255, 255, 255, 0.6);
    
    /* Window chrome */
    --window-title-start: #a6caf0;
    --window-title-end: #5891ce;
    --window-border: #3e6ba0;
    
    /* Text colors */
    --text-primary: #1e3a5f;
    --text-secondary: #4a6b8a;
    --text-light: #ffffff;
    
    /* Accent colors */
    --accent-blue: #2e7dd2;
    --accent-blue-hover: #1c5fa8;
    --accent-glow: rgba(46, 125, 210, 0.5);
}

/* === Body & Base === */
body {
    background: #4580c3 radial-gradient(ellipse at center, #6ba3d9 0%, #4580c3 50%, #2e5a8c 100%);
    background-attachment: fixed;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* === Glass Container Effect === */
.md-container,
.md-content,
.md-sidebar {
    background: var(--aero-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--aero-glass-border);
    border-radius: 8px;
    box-shadow: 
        0 8px 32px var(--aero-glass-shadow),
        inset 0 1px 0 var(--aero-glass-highlight),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* === Header - Window Title Bar === */
.md-header {
	background: linear-gradient(to bottom,
        var(--metal-dark) 0%,
        var(--metal-darker) 100%);
    border-bottom: 1px solid var(--metal-dark);
    box-shadow: 
        0 1px 0 var(--metal-shine) inset,
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.md-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0));
    pointer-events: none;
}

.md-header__inner {
    padding: 0 12px;
}

.md-header__title {
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    font-size: 13px;
    line-height: 32px;
}

/* === Header Buttons - Window Controls === */
.md-header__button {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: all 0.15s ease;
}

.md-header__button:hover {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.15));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.md-header__button:active {
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.05));
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* === Navigation Tabs === */
.md-tabs {
    background: linear-gradient(to bottom,
        var(--metal-light) 0%,
        var(--metal-mid) 100%);
    border-bottom: 1px solid var(--metal-dark);
    box-shadow: 
        0 1px 0 var(--metal-shine) inset,
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.md-tabs__link {
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin: 4px 2px 0;
    padding: 6px 16px;
    color: var(--text-primary);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.md-tabs__link:hover {
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.2));
    box-shadow: 0 0 8px var(--accent-glow);
}

.md-tabs__item--active .md-tabs__link {
    background: var(--aero-glass-bg);
    border-color: var(--aero-glass-border);
    box-shadow: 
        0 -2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* === Sidebar - Panel Glass === */
.md-sidebar {
    margin: 12px;
    padding: 16px;
}

.md-sidebar__scrollwrap {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 8px;
}

/* === Navigation Links === */

.md-nav__title + .md-nav__list
{
	margin-top: 20px;
}

.md-nav__link {
    background: transparent;
    border-radius: 4px;
    color: var(--text-primary);
    padding: 6px 8px;
    transition: all 0.2s ease;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
	margin-top: 0px;
}

.md-nav__link:hover {
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.2));
    border-left: 3px solid var(--accent-blue);
    padding-left: 9px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.md-nav__link--active {
    background: linear-gradient(to right,
        rgba(46, 125, 210, 0.2),
        rgba(46, 125, 210, 0.1));
    border-left: 4px solid var(--accent-blue);
    padding-left: 8px;
    color: var(--accent-blue);
    font-weight: 600;
    box-shadow: 
        inset 2px 0 4px rgba(46, 125, 210, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === Main Content Area === */
.md-content__inner {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    padding: 24px;
    margin: 12px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* === Buttons - Windows 7 Style === */
.md-typeset .md-button {
    background: linear-gradient(to bottom,
        #f0f6fc 0%,
        #e5f0fa 50%,
        #d0e4f7 51%,
        #c5ddf6 100%);
    border: 1px solid #6ba3d9;
    border-radius: 4px;
    color: var(--text-primary);
    padding: 6px 16px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 1px 3px rgba(0, 0, 0, 0.15);
    transition: all 0.15s ease;
}

.md-typeset .md-button:hover {
    background: linear-gradient(to bottom,
        #f5f9fd 0%,
        #eaf4fc 50%,
        #d8e9f9 51%,
        #cde2f8 100%);
    border-color: var(--accent-blue);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 0 8px var(--accent-glow),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

.md-typeset .md-button:active {
    background: linear-gradient(to bottom,
        #c5ddf6 0%,
        #d0e4f7 50%,
        #e5f0fa 51%,
        #f0f6fc 100%);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.3);
}

.md-typeset .md-button--primary {
    background: linear-gradient(to bottom,
        #6bb2f5 0%,
        #4a9de8 50%,
        #2e7dd2 51%,
        #1c6abe 100%);
    border-color: #0f5ca8;
    color: white;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* === Tables - Glass Surface === */
.md-typeset table:not([class]) {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--aero-glass-border);
    border-radius: 6px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.md-typeset table:not([class]) th {
    background: linear-gradient(to bottom,
        var(--metal-light) 0%,
        var(--metal-mid) 100%);
    border-bottom: 2px solid var(--metal-dark);
    color: var(--text-primary);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.md-typeset table:not([class]) td {
    border-bottom: 1px solid rgba(151, 181, 214, 0.3);
    background: rgba(255, 255, 255, 0.5);
}

.md-typeset table:not([class]) tbody tr:hover {
    background: linear-gradient(to right,
        rgba(46, 125, 210, 0.15),
        rgba(46, 125, 210, 0.05));
    box-shadow: inset 0 0 0 1px rgba(46, 125, 210, 0.3);
}

/* === Code Blocks - Recessed Glass === */
.md-typeset pre {
    background: rgba(240, 245, 250, 0.95);
    border: 1px solid rgba(122, 146, 176, 0.4);
    border-radius: 4px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.5);
}

.md-typeset code {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(151, 181, 214, 0.4);
    border-radius: 3px;
    padding: 2px 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* === Admonitions - Warning Panels === */
.md-typeset .admonition {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--aero-glass-border);
    border-left-width: 4px;
    border-radius: 6px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.md-typeset .admonition-title {
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.4));
    border-bottom: 1px solid rgba(151, 181, 214, 0.3);
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* === Footer - Bottom Chrome === */
.md-footer {
    background: linear-gradient(to bottom,
        var(--metal-mid) 0%,
        var(--metal-dark) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 -1px 0 rgba(255, 255, 255, 0.3) inset,
        0 -4px 8px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.md-footer-meta {
    background: linear-gradient(to bottom,
        var(--metal-dark) 0%,
        var(--metal-darker) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

/* === Search Bar - Glass Input === */
.md-search__input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--aero-glass-border);
    border-radius: 4px;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    padding: 6px 12px;
}

.md-search__input:focus {
    border-color: var(--accent-blue);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.1),
        0 0 8px var(--accent-glow);
    outline: none;
}

/* === Image Cards - Raised Glass === */
.md-typeset img {
    border: 1px solid var(--aero-glass-border);
    border-radius: 4px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 4px;
    background: white;
}

/* === Links - Glossy Effect === */
.md-typeset a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.15s ease;
    position: relative;
}

.md-typeset a:hover {
    color: var(--accent-blue-hover);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* === Glass Reflection Effect === */
.md-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-radius: 8px 8px 0 0;
}

/* === Status Bar - Bottom Panel === */
.md-footer__link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 8px 16px;
    transition: all 0.15s ease;
}

.md-footer__link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* === Animations - Smooth Glass === */
@keyframes glassShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.md-header::after,
.md-content::before {
    animation: glassShimmer 3s ease-in-out infinite;
}

/* === Print Styles === */
@media print {
    body {
        background: white;
    }
    
    .md-container,
    .md-content,
    .md-sidebar {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

.md-tabs,
label.md-header__button.md-icon[for="__search"],
label.md-header__button.md-icon[for="__drawer"],
.md-search,
.md-sidebar--primary,
.md-header__button.md-logo,
[dir=ltr] .md-typeset table th[role=columnheader]:after
{
	display: none;
	
}

.md-header__title .md-ellipsis
{
	font-size: 24px;
	margin-top:5px;
}

img
{
	max-height: 300px;
}

.hljs-deletion, .hljs-number, .hljs-quote, .hljs-selector-class, .hljs-selector-id, .hljs-string, .hljs-template-tag, .hljs-type
{
	color: white !important;
}

/* replace the marker for second-level list items */
ul ul li::marker {
  content: "→ ";   /* Unicode arrow + space */
  font-weight: 600; /* optional styling */
}

/* ============================================================
   Windows 7 Aero Glass Skeuomorphic Theme — Dark (Slate Mode)
   ============================================================ */

body[data-md-color-scheme="slate"] {
    --aero-glass-bg: rgba(45, 52, 67, 0.7);
    --aero-glass-border: rgba(90, 110, 130, 0.6);
    --aero-glass-highlight: rgba(255, 255, 255, 0.1);
    --aero-glass-shadow: rgba(0, 0, 0, 0.6);

    --metal-light: #3d4754;
    --metal-mid: #2d3742;
    --metal-dark: #1b222b;
    --metal-darker: #161c22;
    --metal-shine: rgba(255, 255, 255, 0.15);

    --window-title-start: #3c506a;
    --window-title-end: #293a4f;
    --window-border: #1a2533;

    --text-primary: #d7e2ee;
    --text-secondary: #a2b1c6;
    --text-light: #ffffff;

    --accent-blue: #58a2ff;
    --accent-blue-hover: #3c7bd8;
    --accent-glow: rgba(88, 162, 255, 0.45);
}

body[data-md-color-scheme="slate"] body {
    background: #111a25 radial-gradient(ellipse at center, #1c2c3f 0%, #111a25 50%, #0c131c 100%);
    background-attachment: fixed;
    color: var(--text-primary);
}

/* === Glass Panels === */
body[data-md-color-scheme="slate"] .md-container,
body[data-md-color-scheme="slate"] .md-content,
body[data-md-color-scheme="slate"] .md-sidebar {
    background: var(--aero-glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--aero-glass-border);
    border-radius: 8px;
    box-shadow:
        0 8px 32px var(--aero-glass-shadow),
        inset 0 1px 0 var(--aero-glass-highlight),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

/* === Header === */
body[data-md-color-scheme="slate"] .md-header {
	background: linear-gradient(to bottom,
        var(--metal-dark),
        var(--metal-darker));
    border-bottom: 1px solid var(--metal-mid);
    box-shadow:
        0 1px 0 var(--metal-shine) inset,
        0 2px 4px rgba(0,0,0,0.5);
}

body[data-md-color-scheme="slate"] .md-header::after {
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0));
}

body[data-md-color-scheme="slate"] .md-header__title {
    color: var(--text-light);
    text-shadow: 0 1px 2px black;
}

/* === Header Buttons === */
body[data-md-color-scheme="slate"] .md-header__button {
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.12);
}

body[data-md-color-scheme="slate"] .md-header__button:hover {
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.15),
        rgba(255,255,255,0.05));
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 8px rgba(255,255,255,0.2);
}

body[data-md-color-scheme="slate"] .md-header__button:active {
    background: rgba(0,0,0,0.2);
}

/* === Tabs === */
body[data-md-color-scheme="slate"] .md-tabs {
    background: linear-gradient(to bottom,
        var(--metal-mid),
        var(--metal-dark));
    border-bottom: 1px solid var(--metal-darker);
    box-shadow:
        0 1px 0 var(--metal-shine) inset,
        0 2px 4px rgba(0,0,0,0.6);
}

body[data-md-color-scheme="slate"] .md-tabs__link {
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.12),
        rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-primary);
    text-shadow: 0 1px 0 rgba(0,0,0,0.8);
}

body[data-md-color-scheme="slate"] .md-tabs__link:hover {
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.2),
        rgba(255,255,255,0.08));
    box-shadow: 0 0 8px var(--accent-glow);
}

body[data-md-color-scheme="slate"] .md-tabs__item--active .md-tabs__link {
    background: var(--aero-glass-bg);
    border-color: var(--aero-glass-border);
}

/* === Sidebar === */
body[data-md-color-scheme="slate"] .md-sidebar__scrollwrap {
    background: rgba(255,255,255,0.05);
}

/* === Navigation Links === */
body[data-md-color-scheme="slate"] .md-nav__link {
    color: var(--text-primary);
    text-shadow: 0 1px 0 rgba(0,0,0,0.7);
}

body[data-md-color-scheme="slate"] .md-nav__link:hover {
    background: linear-gradient(to right,
        rgba(255,255,255,0.1),
        rgba(255,255,255,0.05));
    border-left: 3px solid var(--accent-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

body[data-md-color-scheme="slate"] .md-nav__link--active {
    background: linear-gradient(to right,
        rgba(88,162,255,0.15),
        rgba(88,162,255,0.07));
    border-left: 4px solid var(--accent-blue);
    color: var(--accent-blue);
}

/* === Content Area === */
body[data-md-color-scheme="slate"] .md-content__inner {
    background: rgba(30, 38, 48, 0.75);
    box-shadow:
        0 4px 16px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

/* === Buttons === */
body[data-md-color-scheme="slate"] .md-typeset .md-button {
    background: linear-gradient(to bottom,
        #3a4a5c,
        #2e3a48 50%,
        #25313e 51%,
        #1f2a36);
    border: 1px solid #4d6a88;
    color: var(--text-light);
    text-shadow: 0 1px 0 black;
}

body[data-md-color-scheme="slate"] .md-typeset .md-button:hover {
    background: linear-gradient(to bottom,
        #4a5d72,
        #3a4a5c);
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-glow);
}

body[data-md-color-scheme="slate"] .md-typeset .md-button--primary {
    background: linear-gradient(to bottom,
        #4f98ff,
        #3c7be6 50%,
        #2c66cf 51%,
        #234faa);
    border-color: #183c80;
}

/* === Tables === */
body[data-md-color-scheme="slate"] table:not([class]) {
    background: rgba(255,255,255,0.05);
}

body[data-md-color-scheme="slate"] table:not([class]) th {
    background: linear-gradient(to bottom,
        var(--metal-mid),
        var(--metal-dark));
    color: var(--text-primary);
	text-shadow: rgba(0, 0, 0, 0.8) 0px 1px 0px;
}

body[data-md-color-scheme="slate"] table:not([class]) td {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

body[data-md-color-scheme="slate"] table:not([class]) tbody tr:hover {
    background: rgba(88,162,255,0.1);
}

/* === Code Blocks === */
body[data-md-color-scheme="slate"] pre {
    background: rgba(18, 24, 31, 0.9);
    border: 1px solid rgba(255,255,255,0.12);
}

body[data-md-color-scheme="slate"] code {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
}

/* === Admonitions === */
body[data-md-color-scheme="slate"] .admonition {
    background: rgba(20, 26, 33, 0.85);
}

/* === Footer === */
body[data-md-color-scheme="slate"] .md-footer {
    background: linear-gradient(to bottom,
        var(--metal-mid),
        var(--metal-dark));
    color: var(--text-light);
}

/* === Search Bar === */
body[data-md-color-scheme="slate"] .md-search__input {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--aero-glass-border);
    color: var(--text-light);
}

/* === Images === */
body[data-md-color-scheme="slate"] img {
    background: #111a25;
    border-color: rgba(255,255,255,0.1);
}

/* === Links === */
body[data-md-color-scheme="slate"] .md-typeset a {
    color: var(--accent-blue);
}

body[data-md-color-scheme="slate"] .md-typeset a:hover {
    color: var(--accent-blue-hover);
}

/* === Reflections === */
body[data-md-color-scheme="slate"] .md-content::before {
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0));
}

/* === Second-level list marker === */
body[data-md-color-scheme="slate"] ul ul li::marker {
    content: "→ ";
    font-weight: 600;
}

a.floating-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 96px;
  height: 96px;
}

a.floating-link img {
  width: 100%;
  height: 100%;
  display: block;
}