/* Self-Hosted Fonts */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-v20-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-v20-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/orbitron-v35-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/orbitron-v35-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/orbitron-v35-latin-700.woff2') format('woff2'); }

:root { --menu-width: 200px; --accent-color: #00C9FF; --bg-main: #1a202c; --bg-article: #1f2937; --border-color: #4a5568; --text-color: #e2e8f0; --text-muted: #a8b5c7; --code-bg: #2d3748; }
html { height: 100%; width: 100%; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-main); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3e%3crect width='10' height='10' fill='%231a202c'/%3e%3cpath d='M0 0L10 10M10 0L0 10' stroke='%232d3748' stroke-width='0.2'/%3e%3c/svg%3e"); background-repeat: repeat; min-height: 100vh; margin: 0; padding: 0; box-sizing: border-box; color: var(--text-color); display: flex; flex-direction: row; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.left-menu { width: var(--menu-width); min-width: var(--menu-width); height: 100vh; position: fixed; top: 0; left: 0; background: rgba(10, 10, 10, 0.9); box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3); padding: 0 20px; box-sizing: border-box; z-index: 1001; font-weight: 600; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.left-menu ul { list-style: none; padding: 0; margin: 0; }
.left-menu li { margin-bottom: 20px; }
.left-menu a { font-family: 'Orbitron', sans-serif; font-size: 24px; font-weight: 400; color: #00C9FF; text-decoration: none; text-shadow: 0 0 2px #00C9FF, 0 0 3px rgba(0, 201, 255, 0.6); display: block; padding: 8px 0; transition: color 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease; }
.left-menu a:hover, .left-menu a:focus  { color: #fff; text-shadow: 0 0 6px #fff, 0 0 8px rgba(255, 255, 255, 0.5); outline: none; }
.left-menu a.active-page-link { color: #fff; text-shadow: 0 0 8px #fff, 0 0 12px rgba(255, 255, 255, 0.7); background-color: rgba(0, 190, 255, 0.1); border-radius: 5px; padding-left: 10px; padding-right: 10px; }

.mobile-header, .menu-overlay { display: none; }
.main-content-wrapper { flex-grow: 1; padding: 40px; display: flex; flex-direction: column; min-height: 100vh; box-sizing: border-box; width: calc(100% - var(--menu-width)); margin-left: var(--menu-width); }
.page-container { width: 100%; max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; flex-grow: 1; }
.breadcrumbs { margin-bottom: 2rem; align-self: flex-start; }
.breadcrumbs ol { display: flex; list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: '>'; margin: 0 0.75rem; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-color); }
.page-container h1 { font-family: 'Orbitron', sans-serif; color: #00C9FF; text-align: center; margin-top: 0; margin-bottom: 30px; text-shadow: 0 0 5px #00C9FF, 0 0 10px rgba(0, 201, 255, 0.4); font-size: 2.8em; }
.search-page-form { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 600px; margin: 0 auto; }
.search-box { width: 100%; display: flex; background-color: var(--bg-article); border: 1px solid var(--border-color); border-radius: 30px; padding: 10px 20px; box-sizing: border-box; margin-bottom: 20px; transition: border-color 0.2s, box-shadow 0.2s; }
.search-box:focus-within { border-color: var(--accent-color); box-shadow: 0 0 10px rgba(0, 201, 255, 0.3); }
.search-box input[type="text"] { flex: 1; border: none; background: none; color: white; font-size: 18px; outline: none; font-family: 'Inter', sans-serif; }
.search-page-form button { padding: 12px 25px; background: var(--accent-color); color: var(--bg-main); border: none; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: 600; font-family: 'Orbitron', sans-serif; text-transform: uppercase; letter-spacing: 1px; transition: background-color 0.3s ease, transform 0.2s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.search-page-form button:hover { background: #fff; transform: translateY(-2px); }

@media (max-width: 992px) {
    :root { --menu-width: 250px; } 
    body { flex-direction: column; padding: 0; } 
    body.menu-open { overflow: hidden; }
    .main-content-wrapper { padding: 80px 20px 40px; width: 100%; box-sizing: border-box; margin-left: 0; }
    .mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 60px; background-color: #1a202c; border-bottom: 1px solid #4a5568; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box; }
    .hamburger-btn { background: none; border: none; padding: 10px; cursor: pointer; z-index: 1002; }
    .hamburger-btn .line { display: block; width: 24px; height: 3px; background-color: #e2e8f0; margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
    .mobile-title { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; color: var(--accent-color); }
    .left-menu { transform: translateX(-100%); transition: transform 0.3s ease-in-out; height: 100vh; width: var(--menu-width); min-width: var(--menu-width); }
    .left-menu.menu-open { transform: translateX(0); }
    .menu-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
    .menu-overlay.menu-open { opacity: 1; pointer-events: auto; }
    .page-container { justify-content: flex-start; }
    .page-container h1 { font-size: 2em; }
}