/* ==========================================================================
   Supersquid Theme - Global Base Styles
   ========================================================================== */

/* Base Variables */
:root {
    --color-primary: #0A0A23;
    --color-accent: #001d76;
    --color-bg: #080e2b;
    --color-text: #1a1a1a;
    --color-text-light: #666666;

    /* Typography System */
    --font-base: "DM Sans", "Helvetica Neue", Arial, sans-serif;
    --font-extra: "Domine", Times New Roman, serif;

    /* Type Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.1rem;
    --text-xl: 1.15rem;
    --text-2xl: 1.25rem;
    --text-3xl: 1.5rem;
    --text-4xl: 2rem;
    --text-5xl: 2.5rem;

    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-bold: 600;

    /* Line Heights */
    --leading-tight: 1.2;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;

    --max-width: 1600px;
}

* {
    -webkit-tap-highlight-color: transparent;
    --font-base: "DM Sans", "Helvetica Neue", Arial, sans-serif;
    font-family: var(--font-base);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

/* Mobile Layout Fixes (100dvh) */
html,
body {
    height: 100dvh;
    overflow: hidden;
}

#app-root {
    height: 100dvh;
    width: 100%;
    display: flex;
    overflow: hidden;
}

body,
button {
    margin: 0;
    font-family: var(--font-base);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--contrast-color);
    background-color: transparent;
    transition: opacity 0.3s ease, background 0.6s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Links */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    text-decoration: none;
}

/* Containers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #e25725;
    text-decoration: none;
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

section {
    width: 100%;
    overflow: hidden;
}

/* Main Layout Shell */
.main-wrapper.superSquidMain {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(8, 14, 43, 0.2) transparent;
}

.main-wrapper.superSquidMain::-webkit-scrollbar {
    width: 6px;
}

.main-wrapper.superSquidMain::-webkit-scrollbar-track {
    background: transparent;
}

.main-wrapper.superSquidMain::-webkit-scrollbar-thumb {
    background: rgba(8, 14, 43, 0.2);
    border-radius: 6px;
}

#region-header {
    width: 100%;
    margin: 0;
    padding: 0;
}

#region-content {
    width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#region-content-inner {
    width: 100%;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

@media (max-width: 768px) {
    .main-wrapper.superSquidMain {
        width: 100%;
        max-width: 100%;
    }

    #region-header {
        width: 100%;
        margin: 0;
    }

    #region-content {
        width: 100%;
        margin: 0;
    }
}
