/*
|--------------------------------------------------------------------------
| JOELSTORE - LAYOUT CSS
|--------------------------------------------------------------------------
| Desktop / Tablet / Mobile
|--------------------------------------------------------------------------
*/

:root {
    --js-bg: #191a1c;
    --js-bg-soft: #1d1e20;
    --js-panel: #242528;
    --js-panel-2: #292a2c;

    --js-border: #343538;

    --js-text: #f7f7f7;
    --js-muted: #a7a9ad;

    --js-orange: #ff7415;
    --js-green: #62e68d;
    --js-red: #ff7777;

    --js-radius: 12px;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;

    scroll-behavior: smooth;

    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;

    margin: 0;

    overflow-x: hidden;

    background: var(--js-bg);

    color: var(--js-text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;

    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
video,
iframe {
    max-width: 100%;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(
        1200px,
        calc(100% - 40px)
    );

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   MAIN
========================================================= */

.main-container {
    width: 100%;

    min-height:
        calc(100vh - 170px);

    background: var(--js-bg);
}

.main-container > .container {
    min-width: 0;
}


/* =========================================================
   FLASH MESSAGE
========================================================= */

.flash-message {
    margin-top: 18px;

    padding: 13px 15px;

    border-radius: 10px;

    background: var(--js-panel);

    border: 1px solid var(--js-border);

    font-size: 12px;

    line-height: 1.5;
}

.flash-success {
    color: var(--js-green);
}

.flash-error {
    color: var(--js-red);
}


/* =========================================================
   PANEL
========================================================= */

.panel {
    background: var(--js-panel);

    border: 1px solid var(--js-border);

    border-radius: var(--js-radius);
}


/* =========================================================
   PROMO BANNER
========================================================= */

.promo-banner {
    width: 100%;

    background:
        linear-gradient(
            90deg,
            #241b16,
            #2b211a,
            #241b16
        );

    border-top:
        1px solid rgba(255,116,21,.15);

    border-bottom:
        1px solid rgba(255,116,21,.15);
}

.promo-banner-inner {
    position: relative;

    min-height: 62px;

    display: flex;

    align-items: center;
}

.promo-banner-link {
    width: 100%;

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 9px 42px 9px 0;
}

.promo-banner-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(255,116,21,.12);

    border:
        1px solid rgba(255,116,21,.25);

    border-radius: 10px;

    font-size: 19px;
}

.promo-banner-content {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 2px;
}

.promo-banner-content small {
    color: var(--js-orange);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .8px;
}

.promo-banner-content strong {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 13px;
}

.promo-banner-content span {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: var(--js-muted);

    font-size: 10px;
}

.promo-banner-action {
    margin-left: auto;

    flex: 0 0 auto;

    padding: 7px 11px;

    border-radius: 7px;

    background: var(--js-orange);

    color: #fff;

    font-size: 10px;

    font-weight: 800;
}

.promo-banner-close {
    position: absolute;

    right: 0;

    top: 50%;

    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    background: transparent;

    color: #aaa;

    font-size: 21px;

    line-height: 1;
}

.promo-banner-close:hover {
    color: #fff;
}


/* =========================================================
   FLOATING PROMO
========================================================= */

.floating-promo {
    position: fixed;

    right: 18px;

    bottom: 78px;

    z-index: 2800;

    width:
        min(
            370px,
            calc(100vw - 36px)
        );

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(18px)
        scale(.97);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}

.floating-promo.show {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}

.floating-promo-link {
    position: relative;

    min-height: 65px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        10px 42px 10px 10px;

    background:
        rgba(35,36,39,.98);

    border:
        1px solid #3a3b3e;

    border-radius: 13px;

    box-shadow:
        0 12px 35px rgba(0,0,0,.35);
}

.floating-promo-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(255,116,21,.12);

    border-radius: 9px;

    font-size: 18px;
}

.floating-promo-content {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;
}

.floating-promo-content strong {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 11px;
}

.floating-promo-content span {
    color: var(--js-muted);

    font-size: 8px;
}

.floating-promo-arrow {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-left: auto;

    border-radius: 50%;

    background: var(--js-orange);

    color: #fff;

    font-size: 13px;
}

.floating-promo-close {
    position: absolute;

    top: -8px;

    right: -7px;

    z-index: 2;

    width: 25px;
    height: 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        2px solid var(--js-bg);

    border-radius: 50%;

    background: #343538;

    color: #fff;

    font-size: 15px;

    line-height: 1;
}

.floating-promo-close:hover {
    background: #44464a;
}


/* =========================================================
   FLOATING CHAT
========================================================= */

.floating-chat {
    position: fixed;

    right: 18px;

    bottom: 18px;

    z-index: 2900;
}

.floating-chat a {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--js-orange);

    color: #fff;

    font-size: 21px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.3);

    transition:
        transform .2s ease;
}

.floating-chat a:hover {
    transform:
        translateY(-2px)
        scale(1.03);
}


/* =========================================================
   SCROLL TOP
========================================================= */

.scroll-top-btn {
    position: fixed;

    right: 18px;

    bottom: 82px;

    z-index: 2850;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid #3b3d40;

    border-radius: 10px;

    background:
        rgba(36,37,40,.96);

    color: #fff;

    font-size: 19px;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(10px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.scroll-top-btn.show {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}

.scroll-top-btn:hover {
    color: var(--js-orange);

    border-color: var(--js-orange);
}


/* =========================================================
   MUSIC PLAYER
========================================================= */

.floating-music {
    position: fixed;

    left: 18px;

    bottom: 18px;

    z-index: 2750;
}

.floating-music-player {
    min-height: 44px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 7px 8px;

    background:
        rgba(29,30,32,.97);

    border:
        1px solid #37383b;

    border-radius: 12px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.3);
}

.music-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        rgba(255,116,21,.12);

    font-size: 14px;
}

.music-info {
    width: 115px;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 2px;
}

.music-info strong {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #eee;

    font-size: 10px;
}

.music-info small {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #777;

    font-size: 8px;
}

.music-btn,
.music-close {
    width: 29px;
    height: 29px;

    flex: 0 0 29px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 8px;

    background: #292a2d;

    color: #ddd;

    font-size: 11px;
}

.music-btn:hover {
    color: var(--js-orange);

    background: #323438;
}

.music-close:hover {
    color: #ff7777;
}


/* =========================================================
   MODAL
========================================================= */

.modal-backdrop {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(0,0,0,.72);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}

.modal-backdrop.show {
    opacity: 1;

    visibility: visible;
}

.locale-modal {
    position: relative;

    width: min(
        430px,
        100%
    );

    max-height:
        calc(100vh - 40px);

    overflow-y: auto;

    padding: 22px;

    background: #222326;

    border:
        1px solid #37383b;

    border-radius: 15px;

    box-shadow:
        0 20px 70px rgba(0,0,0,.5);
}

.modal-close {
    position: absolute;

    top: 12px;

    right: 12px;

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 8px;

    background: #2d2e31;

    color: #aaa;

    font-size: 21px;
}

.modal-close:hover {
    color: #fff;
}

.modal-title {
    color: #fff;

    font-size: 15px;

    font-weight: 850;
}

.locale-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 8px;

    margin-top: 12px;
}

.locale-option {
    width: 100%;

    min-height: 44px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 9px 11px;

    border:
        1px solid #343538;

    border-radius: 9px;

    background: #292a2d;

    color: #ddd;

    text-align: left;

    font-size: 12px;
}

.locale-option:hover {
    border-color:
        rgba(255,116,21,.55);
}

.locale-option.selected {
    border-color:
        var(--js-orange);

    background:
        rgba(255,116,21,.08);
}

.locale-option b {
    margin-left: auto;

    color: var(--js-orange);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    margin-top: 50px;

    padding:
        45px 0 20px;

    background:
        #151618;

    border-top:
        1px solid #28292b;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 35px;
}

.footer-logo {
    margin-bottom: 10px;

    color: #fff;

    font-size: 22px;

    font-weight: 950;

    font-style: italic;
}

.footer-logo span {
    color: var(--js-orange);
}

.footer-about p {
    max-width: 370px;

    margin: 7px 0;

    color: #888;

    font-size: 11px;

    line-height: 1.7;
}

.footer-grid h4 {
    margin:
        0 0 11px;

    color: #eee;

    font-size: 12px;
}

.footer-grid a {
    display: block;

    margin: 8px 0;

    color: #85868a;

    font-size: 11px;

    transition:
        color .2s ease;
}

.footer-grid a:hover {
    color: var(--js-orange);
}

.copyright {
    margin-top: 35px;

    padding-top: 17px;

    border-top:
        1px solid #28292b;

    color: #666;

    font-size: 10px;

    text-align: center;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .container {
        width:
            calc(100% - 30px);
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .container {
        width:
            calc(100% - 20px);
    }

    .promo-banner-inner {
        min-height: 58px;
    }

    .promo-banner-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        font-size: 16px;
    }

    .promo-banner-content strong {
        font-size: 11px;
    }

    .promo-banner-content span {
        font-size: 8px;
    }

    .promo-banner-action {
        display: none;
    }

    .floating-promo {
        right: 10px;

        bottom: 72px;

        width:
            calc(100vw - 20px);
    }

    .floating-chat {
        right: 12px;

        bottom: 14px;
    }

    .scroll-top-btn {
        right: 12px;

        bottom: 70px;
    }

    .floating-music {
        left: 10px;

        bottom: 14px;
    }

    .music-info {
        width: 85px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .site-footer {
        margin-top: 40px;

        padding:
            35px 0
            calc(
                20px +
                env(safe-area-inset-bottom)
            );
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .container {
        width:
            calc(100% - 16px);
    }

    .promo-banner-content span {
        display: none;
    }

    .promo-banner-content strong {
        font-size: 10px;
    }

    .promo-banner-content small {
        font-size: 7px;
    }

    .floating-promo {
        bottom: 70px;
    }

    .floating-promo-link {
        min-height: 57px;

        padding:
            8px 38px 8px 8px;
    }

    .floating-promo-icon {
        width: 33px;
        height: 33px;

        flex-basis: 33px;
    }

    .floating-promo-content strong {
        font-size: 9px;
    }

    .floating-promo-content span {
        font-size: 7px;
    }

    .floating-music-player {
        min-height: 40px;

        padding: 6px;
    }

    .music-info {
        width: 70px;
    }

    .music-icon {
        width: 28px;
        height: 28px;

        flex-basis: 28px;
    }

    .music-btn,
    .music-close {
        width: 27px;
        height: 27px;

        flex-basis: 27px;
    }

    .locale-modal {
        max-height:
            calc(100vh - 20px);

        padding: 18px;
    }

}


/* =========================================================
   EXTRA SMALL
========================================================= */

@media (max-width: 360px) {

    .container {
        width:
            calc(100% - 12px);
    }

    .floating-music {
        left: 8px;
    }

    .music-info {
        display: none;
    }

    .floating-promo {
        right: 8px;

        width:
            calc(100vw - 16px);
    }

    .floating-chat {
        right: 9px;
    }

    .scroll-top-btn {
        right: 9px;
    }

}


/* =========================================================
   TOUCH
========================================================= */

@media (hover: none) and (pointer: coarse) {

    a,
    button,
    input,
    select,
    textarea {
        -webkit-tap-highlight-color:
            transparent;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }

}