@import "../global.css";

#header {
    background: url("../../img/header-background.webp") no-repeat fixed center;
    min-height: 800px;
    height: 80vh;
    background-size: cover;
    display: flex;
    align-items: center;
}

#header .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 150px;
    width: 100%;
    height: 620px;
    position: relative;
    gap: 150px;
    z-index: 1;
}

.ip-copied {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    color: var(--white-color);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: max-content;
    white-space: nowrap;
    overflow: hidden;
}

.ip-copied.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ip-copied::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--green-color);
    transform-origin: left;
    transform: scaleX(0);
}

.ip-copied.error::after {
    background: var(--red-color);
}

.ip-copied.active::after {
    animation: progress-bar-shrink 5s linear forwards;
}

.ip-copied.restart-anim::after {
    animation: none !important;
}

@keyframes progress-bar-shrink {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

.ip-copied::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--green-color);
    font-size: 18px;
}

.ip-copied.error::before {
    content: "\f071";
    color: var(--red-color);
}

#header .content .left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#header .content .left .server-name {
    display: flex;
    flex-direction: column;
}

#header .content .left .server-name p {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
}

#header .content .left .server-name h1 {
    color: var(--main-color);
    text-transform: uppercase;
    font-size: 65px;
    font-weight: 900;
}

#header .content .left .server-description {
    color: var(--white-color);
    font-size: 18px;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
}

#header .content .left .buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#header .content .left .buttons .copy-ip {
    background: var(--main-color);
    border: none;
    border-radius: 8px;
    padding: 10px 30px;
    color: var(--background-color);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

#header .content .left .buttons .copy-ip:hover {
    transform: scale(1.05);
}

#header .content .left .buttons .how-to-join {
    background: var(--how-to-join-button-background);
    border: 2px solid var(--description-color);
    border-radius: 8px;
    padding: 10px 30px;
    color: var(--description-color);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

#header .content .left .buttons .how-to-join:hover {
    transform: scale(1.05);
}

#header .content .right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#header .content .right img {
    margin-top: 60px;
}

#header .content .right .logo-img {
    max-width: 150px;
    animation: float 4s ease-in-out infinite;
}

#header .content .right .stats {
    display: flex;
    flex-direction: row;
    gap: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    transition: all 0.3s ease;
}

#header .content .right .stats:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

#header .content .right .stats .stat {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

#header .content .right .stats .stat .icon {
    border-radius: 10px;
    background: rgba(255, 170, 0, 0.2);
    padding: 15px;
    transition: .2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header .content .right .stats .stat .icon i {
    font-size: 28px;
    color: var(--main-color);
}

#header .content .right .stats .stat:hover .icon {
    transform: scale(1.05);
    background: var(--main-color);
}

#header .content .right .stats .stat:hover .icon i {
    color: var(--white-color);
}

#header .content .right .stats .stat .texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#header .content .right .stats .stat .texts h5 {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

#header .content .right .stats .stat .texts p {
    color: var(--description-color);
    font-size: 18px;
    font-weight: 400;
}

#header .content .right .stats .stat .texts p span {
    color: var(--green-color);
    font-weight: 600;
}

#header .server-name p,
#header .server-name h1,
#header .server-description,
#header .stat-title,
#header .stat p,
#header .how-to-join {
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.7);
}

#about {
    position: relative;
}

#about .wave-top {
    position: relative;
    bottom: 69px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

#about .wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
    transform: rotateY(180deg);
}

#about .wave-top .shape-fill {
    fill: var(--background-color);
}

#about .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}

#about .content .left {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 40px;
}

#about .content .left .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

#about .content .left .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#about .content .left .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}

#about .content .left .about-us {
    color: var(--description-color);
    font-size: 17px;
    max-width: 80%;
    line-height: 1.6;
}

#about .content .left .server-stats {
    color: var(--description-color);
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1rem;
}

#about .content .left .server-stats .stat {
    text-align: center;
    flex: 1;
}

#about .content .left span {
    color: var(--main-color);
}

#about .content .right {
    display: flex;
    justify-content: end;
    align-items: center;
    height: 100%;
    position: relative;
    width: 100%;
}

#about .content .right img {
    width: auto;
    max-height: 250px;
    position: relative;
    z-index: 1;
    top: 10px;
    right: 120px;
}

#about .content .right .img-background {
    position: absolute;
    width: 210px;
    height: calc(100% - 40px);
    border-radius: 40px 3px;
    background: var(--main-color);
    z-index: 0;
    bottom: 5px;
}

#features {
    position: relative;
    background: var(--background-color);
}

#features .content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

#features .content .game {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

#features .content .game:nth-child(even) .feature-img-wrapper {
    order: 1;
}

#features .content .game .feature-img-wrapper {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#features .content .game .feature-img-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

#features .content .game .feature-img-wrapper img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

#features .content .game .feature-img-wrapper:hover img {
    transform: scale(1.05);
}

#features .content .game .info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#features .content .game .info .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

#features .content .game .info .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#features .content .game .info .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}

#features .content .game .info .game-description {
    color: var(--description-color);
    font-size: 17px;
    line-height: 1.6;
}

#features .content .game .info .game-description code {
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: #2c2c2c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
}

#features .wave-bot {
    position: relative;
    top: 69px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

#features .wave-bot svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
    transform: rotateY(180deg);
}

#features .wave-bot .shape-fill {
    fill: var(--background-color);
}

#discord {
    background: url("../../img/discord-section-background.webp") no-repeat fixed center;
    height: 100%;
    background-size: cover;
    display: flex;
    align-items: center;
}

#discord .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 50px;
    position: relative;
    z-index: 1;
}

#discord .content .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
    text-align: center;
}

#discord .content .section-title span {
    color: var(--main-color);
}

#discord .content .join-discord {
    background: var(--main-color);
    border-radius: 2rem;
    padding: 10px 30px;
    color: var(--background-color);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    border: none;
}

#discord .content .join-discord:hover {
    transform: scale(1.05);
}

#discord .content .join-discord a {
    text-decoration: none;
    color: var(--background-color);
}

#discord .section-title,
#discord .section-title span {
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.7);
}

#faq {
    position: relative;
    background: var(--background-color);
}

#faq .wave-top {
    position: relative;
    bottom: 21px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

#faq .wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
    transform: rotateY(180deg);
}

#faq .wave-top .shape-fill {
    fill: var(--background-color);
}

#faq .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#faq .content .info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#faq .content .info .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

#faq .content .info .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#faq .content .info .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}

#faq .content .info .section-title span {
    color: var(--main-color);
}

#faq .content .info .section-description {
    color: var(--description-color);
    font-size: 17px;
    line-height: 1.6;
}

#faq .content .accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#faq .content .accordion .accordion-item {
    background: var(--stats-background);
    border-radius: 8px;
}

#faq .content .accordion .accordion-item .accordion-item-header {
    padding: 20px 50px 20px 20px;
    line-height: 1.6;
    font-weight: 600;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    color: var(--white-color);
    font-size: 17px;
}

#faq .content .accordion .accordion-item .accordion-item-header::after {
    content: "\002B";
    font-size: 20px;
    position: absolute;
    right: 20px;
}

#faq .content .accordion .accordion-item .accordion-item-header.active::after {
    content: "\2212";
}

#faq .content .accordion .accordion-item .accordion-item-body {
    max-height: 0;
    overflow: hidden;
    transition: 0.2s ease-in-out;
}

#faq .content .accordion .accordion-item .accordion-item-body .accordion-item-body-content {
    padding: 20px;
    line-height: 1.6;
    border-top: 1px solid var(--stats-background);
    color: var(--description-color);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@media screen and (max-width: 1625px) {
    #header .content {
        padding: 150px 90px;
        align-items: start;
        justify-content: center;
    }
}

@media screen and (max-width: 1551px) {
    #about .content .left .about-us {
        max-width: 90%;
    }
}

@media screen and (max-width: 1183px) {
    #about .content {
        flex-direction: column;
        gap: 40px;
    }

    #about .content .left .about-us {
        max-width: 100%;
    }

    #about .content .right {
        display: none;
    }
}

@media screen and (max-width: 1141px) {
    #features .content .game {
        flex-direction: column;
        gap: 40px;
    }

    #features .content .game:nth-child(even) .feature-img-wrapper {
        order: 0;
    }

    #features .content .game .feature-img-wrapper img {
        height: auto;
    }
}

@media screen and (max-width: 976px) {
    #header {
        background-position: 10% center;
    }
    #header .content {
        flex-direction: column;
        padding: 150px 30px;
        height: 100%;
        gap: 40px;
    }

    #header .content .left {
        gap: 30px;
        justify-content: left;
    }

    #header .content .left .server-name p {
        font-size: 18px;
    }

    #header .content .left .server-name h1 {
        font-size: 40px;
    }

    #header .content .right {
        width: 100%;
    }

    #header .content .right .stats {
        width: 100%;
        margin-top: 0;
    }

    #header .content .right .logo-img {
        display: none;
    }

    @media screen and (min-height: 745px) {
        #header .content {
            justify-content: center;
        }

        #header .content .left {
            height: fit-content;
            justify-content: center;
            gap: 15px;
        }

        #header .content .right {
            height: fit-content;
            justify-content: center;
            gap: 30px;
        }
    }

    #about {
        scroll-margin-top: 50px;
    }
}

@media screen and (max-width: 831px) {
    #about .wave-top {
        bottom: 29px;
    }

    #about .wave-top svg {
        height: 30px;
    }

    #features .wave-bot {
        top: 29px;
    }

    #features .wave-bot svg {
        height: 30px;
    }

    #faq .wave-top {
        bottom: 9px;
    }

    #faq .wave-top svg {
        height: 30px;
    }
}

@media screen and (max-width: 621px) {
    #header .content .right .stats {
        justify-content: space-between;
    }

    #about .content .left .server-stats {
        font-size: 14px;
        gap: 1.2rem;
    }

    #discord .content .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}
