
/* =====================================
   GLOBAL
===================================== */

[data-bs-theme=dark] {
    --bs-body-bg: #0b0e16;
    --bs-body-bg-rgb: 11, 14, 22;
    --bs-tertiary-bg: #0c0f18;
    --bs-tertiary-bg-rgb: 12, 15, 24;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    background: #141928;
    overflow-x: hidden;
}

#app {
    flex-shrink: 0;
}

a {
    text-decoration: none;
}

h1 {
    text-align: center;
    font-weight: 700;
    letter-spacing: .5px;
}

.content {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.color-inherit {
    color: inherit !important;
}


/* =====================================
   PARTICLES
===================================== */

#particles-js {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}


/* =====================================
   NAVBAR
===================================== */

.navbar .nav-item {
    margin-left: .7rem;
    margin-right: .7rem;
}

.navbar .navbar-nav .nav-link {
    color: #fff;
    font-weight: 600;
}


/* =====================================
   HOMEPAGE HERO
===================================== */

.home-background {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-position: center !important;
}

.home-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, .15) 65%,
        #141928 100%
    );
}

.home-background > div:not(#particles-js) {
    position: relative;
    z-index: 2;
}

.home-background > div > .container {
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 2;
}

/* LOGO */

.home-background img:not(.server-play-image) {
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35));
}

/* DESCRIPTION */

.home-background .position-relative.text-center.text-light {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px 25px 35px !important;
}

.home-background .position-relative.text-center.text-light > p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .8);
    margin-bottom: 25px;
}


/* =====================================
   SOCIAL LINKS
===================================== */

.home-links .home-link {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 12px;
    backdrop-filter: blur(6px);
}

.home-background .home-links {
    margin-top: 15px;
}


/* =====================================
   HOMEPAGE SERVER CARDS
===================================== */

.home-background .server-card {
    height: 100%;
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, .2);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 15px;
}

.home-background .server-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 15px;
    margin-bottom: 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .055);
    font-size: .9rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #45c477;
    box-shadow: 0 0 10px rgba(69, 196, 119, .5);
}

.server-status.offline .status-dot {
    background: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, .5);
}

.home-background .server-players {
    color: #9fa1a5;
    font-size: .9rem;
}

.home-background .server-address-copy {
    display: inline-block;
    cursor: pointer;
}

.home-background .server-play-image {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}


/* =====================================
   HOMEPAGE CONTENT
===================================== */

.home-content {
    position: relative;
    z-index: 2;
    padding-top: 65px;
}


/* =====================================
   SECTION TITLES
===================================== */

.home-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.home-section-title h1,
.home-section-title h2 {
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.title-line {
    width: 65px;
    height: 3px;
    margin: auto;
    background: rgba(255, 255, 255, .65);
    border-radius: 5px;
}


/* =====================================
   INFORMATION CARDS
===================================== */

.home-section-information .element {
    height: 100%;
    padding: 3rem;
    text-align: center;
    background: rgba(0, 0, 0, .2);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.home-section-information .element::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 4px;
    background: rgba(255, 255, 255, .16);
}

.home-section-information .element i {
    font-size: 3rem;
}

.home-section-information .element h3 {
    font-size: 2rem;
    margin-top: .8rem;
    font-weight: 500;
}

.home-section-information .element p {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 300;
    color: #9fa1a5;
    line-height: 1.7;
}


/* =====================================
   SECOND SECTION CARDS
===================================== */

.home-section-information .info-card,
.home-section-information .server-card {
    position: relative;
    height: 100%;
    padding: 38px 28px;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, .055),
        rgba(0, 0, 0, .18)
    );
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    backdrop-filter: blur(12px);
}

.info-card::before,
.server-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: rgba(255, 255, 255, .25);
    opacity: .7;
}

.info-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
}

.info-icon i {
    font-size: 2.1rem;
    color: var(--bs-primary);
}

.info-card h3,
.server-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.info-card p {
    color: #9fa1a5;
    font-size: .98rem;
    line-height: 1.8;
    font-weight: 300;
    margin: 0;
}


/* =====================================
   MESSAGE
===================================== */

.message-card {
    padding: 25px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .09);
}


/* =====================================
   NEWS
===================================== */

.home-news {
    display: flex;
    justify-content: center;
}

.news-button {
    border-radius: 7px;
    padding: 15px 35px;
    font-weight: 600;
}


/* =====================================
   YOUTUBE VIDEO
===================================== */

.home-video {
    padding-bottom: 35px;
}

.home-video .ratio {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
}

.home-video .ratio iframe {
    border-radius: 12px;
}


/* =====================================
   PROFILE DROPDOWN
===================================== */

.navbar .user-dropdown-menu {
    min-width: 250px !important;
    padding: 10px !important;
    margin-top: 15px !important;
    background: rgba(11, 14, 22, .88) !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .3) !important;
}

/* PROFILE HEADER */

.navbar .user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
}

.navbar .user-avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: #fff;
    font-size: 19px;
}

.navbar .user-avatar-large {
    width: 45px;
    height: 45px;
    font-size: 23px;
}

.navbar .user-info strong {
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
}

.navbar .user-info span {
    color: rgba(255, 255, 255, .55) !important;
    font-size: 12px;
}

/* SEPARATOR */

.navbar .user-dropdown-divider {
    height: 1px;
    margin: 8px 4px;
    background: rgba(255, 255, 255, .13);
}

/* DROPDOWN LINKS */

.navbar .user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    margin: 2px 0;
    color: rgba(255, 255, 255, .85) !important;
    font-size: 14px;
    background: transparent !important;
    border-radius: 7px;
}

.navbar .user-dropdown-menu .dropdown-item i {
    width: 18px;
    color: rgba(255, 255, 255, .6);
    font-size: 16px;
    text-align: center;
}

/* STATIC HOVER COLORS */

.navbar .user-dropdown-menu .dropdown-item:hover,
.navbar .user-dropdown-menu .dropdown-item:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, .1) !important;
}

.navbar .user-dropdown-menu .dropdown-item:hover i {
    color: #fff;
}

/* LOGOUT */

.navbar .user-dropdown-menu .logout-item {
    color: #e58b8b !important;
}

.navbar .user-dropdown-menu .logout-item i {
    color: #e58b8b;
}

.navbar .user-dropdown-menu .logout-item:hover {
    background: rgba(220, 53, 69, .12) !important;
}

/* USERNAME */

.navbar .user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
}

.navbar .user-dropdown-toggle::after {
    margin-left: 4px;
}

/* PROFILE MENU OPENING ANIMATION */

.user-dropdown-menu {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
}

.user-dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 768px) {

    .home-background {
        min-height: 85vh;
    }

    .home-background > div > .container {
        min-height: calc(85vh - 80px);
    }

    .home-background .position-relative.text-center.text-light > p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .home-section-information .element {
        padding: 2rem 1.5rem;
    }

    .home-section-information .element h3 {
        font-size: 1.6rem;
    }

    .home-links .home-link {
        width: 44px;
        height: 44px;
    }

    .home-content {
        padding-top: 40px;
    }

    .home-section-title {
        margin-bottom: 28px;
    }

    .home-section-information .info-card,
    .home-section-information .server-card {
        padding: 30px 22px;
    }

    .info-icon {
        width: 65px;
        height: 65px;
    }

    .info-icon i {
        font-size: 1.8rem;
    }

    .info-card h3,
    .server-card h3 {
        font-size: 1.3rem;
    }

    .home-background .server-play-image {
        width: 140px;
    }
}


/* =====================================
   ACCESSIBILITY
===================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .user-dropdown-menu {
        transition: none;
    }
}