/* =========================================
   AEC — MAIN STYLE
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    background: #000;
}


/* =========================================
   BACKGROUND
========================================= */

.background {
    position: fixed;
    inset: 0;

    background-image: url("assets/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -3;
}


/*
   Lapisan transparan supaya teks tetap jelas.
   Background asli tetap terlihat.
*/
.background::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.18);

    z-index: -2;
}


/* =========================================
   MAIN CONTAINER
========================================= */

.container {
    width: min(92%, 520px);
    margin: 0 auto;

    padding: 28px 0 35px;

    position: relative;
}


/* =========================================
   HEADER
========================================= */

.header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 18px;

    margin-bottom: 28px;
}


/* PNG ANIME EXOTERIC COMMUNITY */

.aec-title {
    width: min(95%, 500px);
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.18));

    user-select: none;
    -webkit-user-drag: none;
}


/* VIDEO LOGO */

.aec-video {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 22px;

    object-fit: cover;

    filter:
        drop-shadow(0 12px 35px rgba(0, 0, 0, 0.45));

    user-select: none;
}


/* =========================================
   COMMUNITY LINKS
========================================= */

.community-links {
    width: 100%;
    margin-bottom: 55px;
}


/* WhatsApp + Discord */

.link-row {
    width: 100%;

    display: flex;
    gap: 12px;

    margin-bottom: 12px;
}


/* =========================================
   GLASS BUTTON
========================================= */

.glass-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 62px;

    padding: 14px 18px;

    color: #ffffff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.7px;

    /*
       Glass effect
    */
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0.045)
        );

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255, 255, 255, 0.28);

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.22),
        inset 0 1px 1px rgba(255, 255, 255, 0.28);

    transition:
        transform 0.18s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;

    -webkit-tap-highlight-color: transparent;
}


/*
   Tekstur kaca halus
*/

.glass-button::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(255, 255, 255, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 90%,
            rgba(255, 255, 255, 0.08),
            transparent 32%
        );

    opacity: 0.8;

    pointer-events: none;
}


/*
   Shine / pantulan kaca
*/

.glass-button::after {
    content: "";

    position: absolute;

    top: -100%;
    left: -60%;

    width: 45%;
    height: 300%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.18),
            transparent
        );

    transform: rotate(20deg);

    animation: glassShine 5s ease-in-out infinite;

    pointer-events: none;
}


@keyframes glassShine {

    0% {
        left: -70%;
    }

    35% {
        left: 130%;
    }

    100% {
        left: 130%;
    }

}


/* =========================================
   BUTTON CONTENT
========================================= */

.glass-button img {
    position: relative;
    z-index: 2;

    width: 23px;
    height: 23px;

    object-fit: contain;

    margin-right: 9px;

    filter:
        drop-shadow(0 0 5px rgba(255, 255, 255, 0.25));
}


.glass-button span {
    position: relative;
    z-index: 2;
}


/* =========================================
   COMMUNITY BUTTONS
========================================= */

.community-button {
    flex: 1;

    min-width: 0;
}


/* =========================================
   SALURAN
========================================= */

.channel-button {
    width: 100%;
}


/* =========================================
   BUTTON INTERACTION
========================================= */

.glass-button:hover {

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.22),
            rgba(255, 255, 255, 0.07)
        );

    border-color:
        rgba(255, 255, 255, 0.5);

    box-shadow:
        0 14px 42px rgba(0, 0, 0, 0.3),
        0 0 22px rgba(255, 255, 255, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);

    transform: translateY(-2px);
}


/*
   Efek saat ditekan di HP
*/

.glass-button:active {

    transform:
        scale(0.96)
        translateY(1px);

    background:
        rgba(255, 255, 255, 0.2);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(0, 0, 0, 0.15);
}


/* =========================================
   ADMIN
========================================= */

.admins {
    width: 100%;

    margin-bottom: 70px;
}


.section-label {
    text-align: center;

    margin-bottom: 28px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 4px;

    opacity: 0.75;
}


.admin {
    width: 100%;

    text-align: center;

    margin-bottom: 65px;
}


/* Poster */

.admin-poster {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    margin: 0 auto 18px;

    user-select: none;
    -webkit-user-drag: none;

    filter:
        drop-shadow(0 18px 35px rgba(0, 0, 0, 0.45));
}


.admin h2 {
    font-size: 24px;

    letter-spacing: 3px;

    margin-bottom: 5px;

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.5);
}


.admin-role {
    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    opacity: 0.75;

    margin-bottom: 14px;
}


.admin-introduction {
    font-size: 14px;

    line-height: 1.7;

    opacity: 0.92;

    padding: 0 5px;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.7);
}


/* =========================================
   DONATE
========================================= */

.donate {
    width: 100%;

    text-align: center;

    margin-bottom: 45px;
}


    .saweria-logo {
    display: block;
    width: 100%;
    height: auto;

    object-fit: contain;

    border-radius: 20px;

    margin: 0 auto 18px;

    user-select: none;
    -webkit-user-drag: none;

    filter:
        drop-shadow(0 18px 35px rgba(0, 0, 0, 0.45));
}


.donate-button {
    width: 100%;
}


.donate-description {
    margin-top: 13px;

    font-size: 12px;

    line-height: 1.6;

    opacity: 0.78;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.7);
}


/* =========================================
   CONTACT
========================================= */

.contact {
    width: 100%;

    margin-bottom: 65px;
}


.contact-button {
    width: 100%;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 5px;

    text-align: center;

    opacity: 0.75;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.7);
}


.footer strong {
    font-size: 25px;

    letter-spacing: 4px;
}


.footer span {
    font-size: 12px;

    letter-spacing: 1px;
}


.footer small {
    margin-top: 10px;

    font-size: 10px;

    opacity: 0.65;
}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 360px) {

    .container {
        width: 94%;
        padding-top: 20px;
    }

    .link-row {
        gap: 8px;
    }

    .glass-button {
        min-height: 57px;

        padding: 12px 10px;

        font-size: 11px;

        letter-spacing: 0.4px;
    }

    .glass-button img {
        width: 20px;
        height: 20px;

        margin-right: 6px;
    }

    .admin h2 {
        font-size: 21px;
    }

}


/* =========================================
   REDUCE MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .glass-button::after {
        animation: none;
    }

    .glass-button {
        transition: none;
    }

}


/* =========================================
   DECORATIVE PILLARS
========================================= */

.pillars {
    position: fixed;
    inset: 0;

    pointer-events: none;

    z-index: -1;
}

.pillar {
    position: absolute;

    top: 0;
    height: 100vh;
    width: auto;

    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;
}

.pillar-left {
    left: 0;
}

.pillar-right {
    right: 0;

    transform: scaleX(-1);
}

/* ========================================
   MUSIC BUTTON
======================================== */

.music-control {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.music-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 10px 20px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: white;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);

    transition: 0.3s ease;
}

.music-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 0 15px rgba(255, 255, 255, 0.08);
}

.music-button:active {
    transform: scale(0.95);
}

#musicIcon {
    font-size: 16px;
}

#musicText {
    white-space: nowrap;
}


/* ========================================
   MUSIC ON
======================================== */

.music-button.music-on {
    border-color: rgba(255, 255, 255, 0.4);

    background: rgba(255, 255, 255, 0.13);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 18px rgba(255, 255, 255, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Jarak antara tombol SALURAN dan TIKTOK */
.channel-button + .channel-button {
    margin-top: 12px;
}

/* ========================================
   TIKTOK VIDEO BUTTON
======================================== */

.tiktok-button {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 55px;

    margin-top: 12px;
}

/* Video memenuhi tombol */

.tiktok-video {
    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;

    top: 0;
    left: 0;

    z-index: 0;
}

/* Lapisan gelap agar tulisan tetap terlihat */

.tiktok-button::after {
    content: "";

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.35);

    z-index: 1;
}

/* Tulisan berada di atas video */

.tiktok-button span {
    position: relative;

    z-index: 2;

    color: white;

    font-weight: 700;

    letter-spacing: 1px;
}