/*
====================================================
 Shiva & Sally Connect
 Hoja de estilos principal
====================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');


/*==================================================
  Variables
==================================================*/

:root {

    --color-text: #f2f5f8;
    --color-text-muted: rgba(242, 245, 248, 0.75);

    --color-steam: #66c0f4;

    --radius: 6px;

    --text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.6),
        0 2px 12px rgba(0, 0, 0, 0.4);

}


/*==================================================
  Base
==================================================*/

*,
*::before,
*::after {

    box-sizing: border-box;

}

html {

    height: 100%;

}

body {

    margin: 0;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 2rem;

    color: var(--color-text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            ellipse at center,
            rgba(8, 10, 14, .55) 0%,
            rgba(8, 10, 14, .25) 45%,
            rgba(8, 10, 14, 0) 75%
        ),
        url("../img/fondo.webp") center center / cover no-repeat fixed;

}


/*==================================================
  Contenedor (agrupa y centra, ya no es tarjeta)
==================================================*/

.join-card {

    width: min(100%, 480px);

    text-align: center;

}


/*==================================================
  Logo
==================================================*/

.logo {

    display: block;

    width: 120px;

    max-width: 100%;

    height: auto;

    margin: 0 auto 1.5rem;

    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));

}


/*==================================================
  Títulos
==================================================*/

h1 {

    margin: 0;

    font-family: "Creepster", system-ui, sans-serif;

    font-size: 2.4rem;

    font-weight: 700;

    letter-spacing: -0.01em;

    text-shadow: var(--text-shadow);

}

h1 a {

    color: inherit;

    text-decoration: none;

    transition: opacity .15s ease;

}

h1 a:hover,
h1 a:focus-visible {

    opacity: 0.8;

}

h2 {

    margin-top: 0;

    font-size: 0.85rem;

    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: var(--color-text-muted);

    text-shadow: var(--text-shadow);

}


/*==================================================
  Texto
==================================================*/

p {

    line-height: 1.6;

    color: var(--color-text-muted);

    text-shadow: var(--text-shadow);

}

.status-message {

    margin-top: 1rem;

    font-size: 1.05rem;

    color: var(--color-text);

    text-shadow: var(--text-shadow);

}


/*==================================================
  Dirección del servidor
==================================================*/

.server {

    margin: 2rem 0;

}

.server-address {

    display: inline-block;

    padding: .7rem 1.1rem;

    border-radius: var(--radius);

    border: 1px solid rgba(255, 255, 255, 0.15);

    background: rgba(8, 10, 14, .55);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    font-size: 0.95rem;

    font-family: ui-monospace, "SF Mono", Consolas, monospace;

    letter-spacing: 0.02em;

    color: var(--color-steam);

    user-select: all;

}


/*==================================================
  Botones — estilo "mira táctica"
  Solo esquinas marcadas, sin caja completa,
  para que el fondo se vea a través del botón.
==================================================*/

.actions {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 1.1rem;

    margin-top: 2rem;

}

.game-list {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 1.1rem;

    margin-top: 2rem;

}

button,
.game-button {

    position: relative;

    -webkit-appearance: none;
    appearance: none;

    -webkit-tap-highlight-color: transparent;

    -webkit-user-select: none;
    user-select: none;

    display: inline-flex;

    justify-content: center;

    align-items: center;

    width: auto;

    min-width: 200px;

    padding: .7rem .9rem;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 10px;

    /* Relleno de "vidrio": gradiente diagonal muy sutil */
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.16) 0%,
            rgba(255, 255, 255, 0.04) 45%,
            rgba(255, 255, 255, 0.10) 100%
        );

    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);

    color: var(--color-text);

    font-family: "Creepster", system-ui, sans-serif;

    font-size: 1.3rem;

    font-weight: 600;

    letter-spacing: 0.02em;

    text-decoration: none;

    text-shadow: var(--text-shadow);

    cursor: pointer;

    overflow: hidden;

    /* Brillo superior (como el filo de una gota) + sombra interior de profundidad */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -8px 12px -8px rgba(0, 0, 0, 0.35),
        0 6px 16px rgba(0, 0, 0, 0.25);

    transition:
        color .15s ease,
        border-color .15s ease,
        box-shadow .2s ease,
        transform .15s ease;

}

/* Reflejo tipo "gota" que se desliza al pasar el ratón */
button::before,
.game-button::before {

    content: "";

    position: absolute;

    top: -50%;
    left: -30%;

    width: 60%;
    height: 200%;

    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );

    transform: rotate(20deg) translateX(-120%);

    transition: transform .6s ease;

    pointer-events: none;

}

button:hover::before,
.game-button:hover::before {

    transform: rotate(20deg) translateX(220%);

}

button:hover,
.game-button:hover,
button:focus-visible,
.game-button:focus-visible {

    border-color: rgba(255, 255, 255, 0.4);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -8px 12px -8px rgba(0, 0, 0, 0.35),
        0 8px 22px rgba(0, 0, 0, 0.3);

    transform: translateY(-1px);

}

button:active,
.game-button:active {

    transform: translateY(0);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 4px 10px rgba(0, 0, 0, 0.3);

}

button::selection,
.game-button::selection {

    background: rgba(255, 255, 255, 0.3);

    color: inherit;

}

button:focus-visible,
.game-button:focus-visible {

    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;

}


/*==================================================
  Pie de página
==================================================*/

footer {

    margin-top: 2.5rem;

    text-align: center;

}

footer p {

    margin: 0;

    font-size: 0.78rem;

    letter-spacing: 0.02em;

    color: var(--color-text-muted);

    text-shadow: var(--text-shadow);

}


/*==================================================
  Responsive
==================================================*/

@media (max-width: 600px) {

    body {

        padding: 1.5rem;

    }

    .logo {

        width: 100px;

    }

    h1 {

        font-size: 2.1rem;

    }

}


/*==================================================
  Accesibilidad
==================================================*/

@media (prefers-reduced-motion: reduce) {

    * {

        animation: none !important;

        transition: none !important;

        scroll-behavior: auto !important;

    }

}
