/* ===================================================== */
/* 1. ESTILOS GENERALES                                  */
/* ===================================================== */

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    color: white;
    text-align: center;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./background.jpeg') no-repeat center center;
    background-size: cover;
    filter: blur(5px) brightness(0.6);
    z-index: -1;
}

.container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    max-width: 500px;
    width: 90vw !important;
    margin: 20px auto;
    padding: 20px;
}


/* ===================================================== */
/* 2. LOGO                                               */
/* ===================================================== */

.logo {
    width: 100px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    display: inline-block;
    overflow: hidden;
}

.logo:hover {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    transition: all 0.5s ease-in-out;
}


/* ===================================================== */
/* 3. TIPOGRAFÍA Y TEXTOS                                */
/* ===================================================== */

h1 {
    font-size: 2.5rem;
    margin: 0 0 15px;
}

p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

#title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: fit-content;
    margin: 0 auto 25px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.2) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3.5s linear infinite;
}

#description {
    margin: 10px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
    margin-bottom: 30px;
}


/* ===================================================== */
/* 4. BOTONES                                            */
/* ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    margin: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

#discordBtn {
    background: #5865f2;
}

#discordBtn:hover {
    background: #4752c4;
}

#copyIP {
    background: #00c853;
}

#copyIP:hover {
    background: #009624;
}


/* ===================================================== */
/* 5. LOADER/SPINNER                                     */
/* ===================================================== */

.loader-container {
    margin-top: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.spinner {
    width: 55px;
    height: 55px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid #ffc400;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px #ffc400, 0 0 30px #ffc400;
    margin: 10px 0;
}

#loaderText {
    margin-top: 15px;
    font-size: 1rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: dots 1.5s steps(3, end) infinite;
}


/* ===================================================== */
/* 6. ANIMACIONES                                        */
/* ===================================================== */

@keyframes shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes shineBtn {
    20% { opacity: 0.6; transform: scale(1.1) rotate(10deg) translateY(-30%) skewX(10deg); }
    40% { opacity: 1; transform: scale(1.3) rotate(25deg) translateY(10%) skewY(10deg); }
    60% { opacity: 0.7; transform: scale(1.1) rotate(-10deg) translateX(40%) translateY(-10%); }
    80% { opacity: 0.4; transform: scale(0.9) rotate(-25deg) translateX(80%) translateY(20%); }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}


.spoilers-widget {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.spoilers-widget h2 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #ffcc00;
}

.spoiler-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.spoiler-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: opacity 0.8s ease-in-out;
}


/* ===================================================== */
/* . DISCORD MEMBERS                               */
/* ===================================================== */

.discord-members {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.discord-members h2 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #00f7ff;
    text-align: center;
}

.discord-members iframe {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}


/* ===================================================== */
/* 9. FOOTER                                             */
/* ===================================================== */

footer {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

footer a {
    color: #00eaff;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}
