/* =========================================================
   VAYBE LIVE — CORE
   assets/css/core.css

   Bu dosya SADECE:
   - reset
   - sayfa zemini
   - ana iskelet
   - sidebar / main kolon ayrımı
   - topbar / games / overlays satırları
   - ortak temel davranış

   Görsel modül tasarımları kendi CSS dosyalarında kalacaktır.
========================================================= */

:root {
    --vaybe-bg: #02050a;
    --vaybe-bg-2: #050b13;

    --vaybe-panel: rgba(8, 15, 25, 0.92);
    --vaybe-border: rgba(255, 255, 255, 0.08);

    --vaybe-cyan: #25f4ee;
    --vaybe-pink: #fe2c55;
    --vaybe-purple: #8b5cff;
    --vaybe-green: #42ff9b;

    --vaybe-text: #f7fbff;
    --vaybe-muted: #8190a3;

    --sidebar-width: 300px;
    --app-gap: 14px;
    --app-padding: 14px;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    background: var(--vaybe-bg);
}

body {
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    color: var(--vaybe-text);

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    background:
        radial-gradient(
            circle at 10% 12%,
            rgba(37, 244, 238, 0.10),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 18%,
            rgba(254, 44, 85, 0.09),
            transparent 28%
        ),
        radial-gradient(
            circle at 65% 100%,
            rgba(139, 92, 255, 0.08),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #02050a 0%,
            #06101a 48%,
            #02050a 100%
        );
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   BACKGROUND GRID
========================================================= */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.016) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.016) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    opacity: 0.7;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            rgba(0,0,0,0.35),
            transparent
        );

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            black,
            rgba(0,0,0,0.35),
            transparent
        );
}


/* =========================================================
   AMBIENT LIGHT
========================================================= */

body::after {
    content: "";

    position: fixed;

    z-index: 0;

    width: 55vw;
    height: 55vw;

    left: 30%;
    top: -40vw;

    border-radius: 50%;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(37,244,238,0.10),
            rgba(37,244,238,0.025) 38%,
            transparent 68%
        );

    filter: blur(30px);

    animation:
        vaybeCoreGlow 8s ease-in-out infinite alternate;
}


/* =========================================================
   APPLICATION SHELL
========================================================= */

.vaybe-app {
    position: relative;

    z-index: 1;

    width: 100vw;
    height: 100vh;

    display: grid;

    grid-template-columns:
        var(--sidebar-width)
        minmax(0, 1fr);

    gap: var(--app-gap);

    padding: var(--app-padding);

    overflow: hidden;
}


/* =========================================================
   MAIN COLUMN
========================================================= */

.vaybe-main {
    position: relative;

    min-width: 0;
    min-height: 0;

    width: 100%;
    height: 100%;

    display: grid;

    /*
       Üst alan sabit.
       Kalan ekran Games + Overlays arasında bölünür.
    */

    grid-template-rows:
        190px
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 12px;

    overflow: hidden;
}


/* =========================================================
   SECTION SAFETY
========================================================= */

.vaybe-main > section {
    min-width: 0;
    min-height: 0;

    width: 100%;

    overflow: hidden;
}


/* =========================================================
   SIDEBAR SAFETY
========================================================= */

.vaybe-app > aside {
    min-width: 0;
    min-height: 0;

    height: 100%;

    overflow: hidden;
}


/* =========================================================
   COMMON PANEL FOUNDATION

   Burada yalnızca panel iskeleti vardır.
   İç tasarım modül CSS dosyasına aittir.
========================================================= */

.vaybe-sidebar,
.vaybe-topbar,
.vaybe-games-section,
.vaybe-overlays-section {
    position: relative;

    min-width: 0;
    min-height: 0;

    border:

        1px solid

        var(--vaybe-border);

    border-radius: 26px;

    background:

        linear-gradient(
            145deg,
            rgba(11,20,33,0.91),
            rgba(4,9,16,0.94)
        );

    box-shadow:

        0 20px 55px
        rgba(0,0,0,0.28),

        inset 0 1px 0
        rgba(255,255,255,0.045);

    isolation: isolate;
}


/* =========================================================
   COMMON PANEL REFLECTION
========================================================= */

.vaybe-sidebar::after,
.vaybe-topbar::after,
.vaybe-games-section::after,
.vaybe-overlays-section::after {
    content: "";

    position: absolute;

    z-index: -1;

    inset: 0;

    border-radius: inherit;

    pointer-events: none;

    background:

        linear-gradient(
            125deg,
            rgba(255,255,255,0.035),
            transparent 22%,
            transparent 75%,
            rgba(255,255,255,0.015)
        );
}


/* =========================================================
   SCROLLBAR

   Ana ekran scroll kullanmaz.
   Gelecekte modül içi scrollbar gerekirse stil hazır.
========================================================= */

* {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(37,244,238,0.35)
        rgba(255,255,255,0.03);
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background:
        rgba(255,255,255,0.025);
}

*::-webkit-scrollbar-thumb {
    border-radius: 20px;

    background:
        rgba(37,244,238,0.30);
}


/* =========================================================
   MISSING MODULE ERROR
========================================================= */

.vaybe-missing-module {
    min-height: 100px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 20px;

    border:

        1px solid

        rgba(254,44,85,0.35);

    border-radius: 20px;

    background:

        linear-gradient(
            145deg,
            rgba(254,44,85,0.08),
            rgba(8,15,25,0.92)
        );

    color: white;

    text-align: center;
}

.vaybe-missing-module strong {
    color: var(--vaybe-pink);

    font-size: 13px;

    letter-spacing: 2px;
}

.vaybe-missing-module span {
    color: #a7b3c0;

    font-size: 11px;
}


/* =========================================================
   SELECTION
========================================================= */

::selection {
    color: #021012;

    background: var(--vaybe-cyan);
}


/* =========================================================
   FOCUS
========================================================= */

button:focus-visible,
a:focus-visible {
    outline:

        2px solid

        rgba(37,244,238,0.75);

    outline-offset: 2px;
}


/* =========================================================
   CORE ANIMATION
========================================================= */

@keyframes vaybeCoreGlow {

    0% {
        transform:
            translate3d(-4%,0,0)
            scale(0.92);

        opacity: 0.6;
    }

    100% {
        transform:
            translate3d(5%,7%,0)
            scale(1.08);

        opacity: 1;
    }
}


/* =========================================================
   1600px
========================================================= */

@media (max-width: 1600px) {

    :root {
        --sidebar-width: 280px;
        --app-gap: 11px;
        --app-padding: 11px;
    }

    .vaybe-main {
        grid-template-rows:
            175px
            minmax(0,1fr)
            minmax(0,1fr);

        gap: 10px;
    }
}


/* =========================================================
   LOW HEIGHT DESKTOP
========================================================= */

@media (max-height: 900px) {

    :root {
        --sidebar-width: 270px;
        --app-gap: 9px;
        --app-padding: 9px;
    }

    .vaybe-main {
        grid-template-rows:
            160px
            minmax(0,1fr)
            minmax(0,1fr);

        gap: 8px;
    }

    .vaybe-sidebar,
    .vaybe-topbar,
    .vaybe-games-section,
    .vaybe-overlays-section {
        border-radius: 21px;
    }
}


/* =========================================================
   SMALLER DESKTOP
========================================================= */

@media (max-width: 1250px) {

    :root {
        --sidebar-width: 240px;
    }

    .vaybe-main {
        grid-template-rows:
            155px
            minmax(0,1fr)
            minmax(0,1fr);
    }
}


/* =========================================================
   MOBILE / TABLET FALLBACK

   Ana hedef masaüstü Launcher arayüzüdür.
========================================================= */

@media (max-width: 900px) {

    html,
    body {
        height: auto;

        min-height: 100%;

        overflow-x: hidden;
        overflow-y: auto;
    }

    .vaybe-app {
        width: 100%;

        height: auto;
        min-height: 100vh;

        display: block;

        padding: 8px;
    }

    .vaybe-app > aside {
        height: auto;

        min-height: 150px;

        margin-bottom: 8px;
    }

    .vaybe-main {
        height: auto;

        display: flex;

        flex-direction: column;

        gap: 8px;
    }

    .vaybe-main > section {
        min-height: 300px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;
    }
}