/* =========================
   NAVEGACIÓN GLOBAL
   ========================= */

.global-navigation {
    z-index: 1000;
}

#global-guest-auth,
#global-user-auth {
    align-items: center;
    gap: 12px;
}

#global-guest-auth {
    display: flex;
}

#global-user-auth {
    display: none;
}


/* =========================
   RANKING
   PROTECCIÓN DE CONTENIDO
   ========================= */

/*
 * Evita que nombres, mensajes o webs muy largos
 * rompan el diseño del ranking.
 */

.ranking-row {
    min-width: 0;
}

.ranking-row-left {
    min-width: 0;
    flex: 1 1 auto;
}

.ranking-row-profile-content {
    min-width: 0;
    max-width: 100%;
}

.ranking-row-right {
    flex: 0 0 auto;
}


/* NOMBRES */

.ranking-row-name,
.first-place-name,
.podium-name {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* FILAS NORMALES */

.ranking-row-name {
    display: block;
}


/* PODIO */

.first-place-name,
.podium-name {
    display: block;
    text-align: center;
}


/* =========================
   RANKING - MENSAJE / WEB
   ========================= */

/*
 * Clases antiguas conservadas por compatibilidad.
 */

.ranking-profile-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    max-width: 440px;
}

.ranking-profile-message {
    margin: 0;
    color: #aaa;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

.ranking-profile-url {
    color: #d6b85a;
    font-size: 13px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ranking-profile-url:hover {
    color: gold;
    text-decoration: underline;
}

.ranking-row-left .ranking-profile-details {
    align-items: flex-start;
    margin-top: 5px;
    margin-left: 0;
}

.ranking-row-left .ranking-profile-message {
    text-align: left;
}


/* =========================
   RANKING - DETALLES ACTUALES
   ========================= */

/*
 * Estas son las clases que utiliza actualmente
 * script.js para mensaje + URL.
 */

.profile-ranking-details {
    min-width: 0;
    max-width: 100%;
}

.profile-ranking-message {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-ranking-url {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* FILAS */

.ranking-row-details {
    min-width: 0;
    max-width: 100%;
}


/* PODIO */

.first-place-details,
.podium-details {
    min-width: 0;
    max-width: 100%;
}


/* =========================
   RANKING - REDES SOCIALES
   ========================= */

.ranking-project-share {
    flex: 0 0 auto;
    min-width: 0;
}


/*
 * Evitamos que las redes desaparezcan porque
 * otro elemento de la fila ocupe todo el ancho.
 */

.ranking-row-right .ranking-project-share {
    flex-shrink: 0;
}


/* =========================
   PAYMENT CONSENT
   ========================= */

.payment-consent {
    width: 100%;
    margin: 18px 0 4px;
    padding: 16px;

    display: flex;
    flex-direction: column;
    gap: 14px;

    box-sizing: border-box;

    border: 1px solid #292929;
    border-radius: 10px;

    background:
            linear-gradient(
                    145deg,
                    rgba(255, 255, 255, 0.025),
                    rgba(255, 255, 255, 0.008)
            );
}

.payment-consent-option {
    width: 100%;

    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin: 0;

    color: #aaa;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;

    cursor: pointer;
}

.payment-consent-option input[type="checkbox"] {
    width: 17px;
    min-width: 17px;
    height: 17px;

    margin: 1px 0 0;

    accent-color: #d6b85a;

    cursor: pointer;
}

.payment-consent-option span {
    min-width: 0;
    flex: 1;
}

.payment-consent-option a {
    color: #d6b85a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.payment-consent-option a:visited {
    color: #d6b85a;
}

.payment-consent-option a:hover {
    color: gold;
}


/* =========================
   CONSENTIMIENTO
   FORMULARIO CONTRIBUTE
   ========================= */

.ranking-contribution-consent {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 9px;

    margin-top: 8px;
    padding-top: 10px;

    border-top: 1px solid #292929;
}

.ranking-contribution-consent
.payment-consent-option {
    font-size: 11px;
    line-height: 1.45;
}

.ranking-contribution-consent
.payment-consent-option
input[type="checkbox"] {
    width: 15px;
    min-width: 15px;
    height: 15px;
}


/* =========================
   HALL OF FAME
   ========================= */

.hall-page-new {
    width: min(1180px, 94%);
    margin: 0 auto;
    padding: 70px 0 100px;
}

.hall-hero {
    text-align: center;
    margin-bottom: 45px;
}

.hall-hero-label {
    margin: 0 0 8px;
    color: #d6b85a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hall-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    letter-spacing: -2px;
}

.hall-hero-description {
    max-width: 650px;
    margin: 15px auto 0;
    color: #999;
    line-height: 1.6;
}


/* TABS */

.hall-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 auto 50px;
    padding: 6px;
    border: 1px solid #292929;
    border-radius: 12px;
    background: #090909;
}

.hall-tab {
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #888;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s ease;
}

.hall-tab:hover {
    color: white;
    border-color: #333;
}

.hall-tab.active {
    color: #111;
    background: #d6b85a;
    border-color: #d6b85a;
}


/* CABECERA CATEGORÍA */

.hall-category-header {
    margin-bottom: 28px;
    text-align: center;
}

.hall-category-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.hall-category-header p {
    margin: 0;
    color: #888;
}


/* GRID */

.hall-achievement-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px, 1fr)
        );
    gap: 18px;
}


/* TARJETA */

.hof-card {
    position: relative;
    min-height: 280px;
    padding: 25px;
    border: 1px solid #292929;
    border-radius: 14px;
    background:
            linear-gradient(
                    145deg,
                    rgba(255, 255, 255, 0.035),
                    rgba(255, 255, 255, 0.01)
            );
    overflow: hidden;

    text-align: center;
}

.hof-card.achieved {
    border-color: rgba(214, 184, 90, 0.55);
}

.hof-card.achieved::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
            radial-gradient(
                    circle at top,
                    rgba(214, 184, 90, 0.11),
                    transparent 48%
            );
}

.hof-card.locked {
    opacity: 0.55;
}

.hof-card-icon {
    position: relative;
    margin-bottom: 14px;
    font-size: 26px;
    text-align: center;
}

.hof-card-title {
    position: relative;
    margin: 0 0 22px;
    color: white;
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
}

.hof-card.achieved .hof-card-title {
    color: #f1d77c;
}


/* GANADOR */

.hof-winner {
    position: relative;
    padding-top: 18px;
    border-top: 1px solid #292929;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.hof-winner-name {
    display: inline-block;
    margin-bottom: 8px;
    max-width: 100%;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hof-winner-name:hover {
    color: gold;
}

.hof-winner-message {
    margin: 0 0 8px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-align: center;
}

.hof-winner-url {
    display: inline-block;
    margin-bottom: 12px;
    max-width: 100%;
    color: #d6b85a;
    font-size: 13px;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
}

.hof-winner-url:hover {
    color: gold;
    text-decoration: underline;
}

.hof-winner-total {
    margin: 5px 0;
    color: #ddd;
    font-size: 13px;
    text-align: center;
}

.hof-date {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: 12px;
    text-align: center;
}


/* BLOQUEADO */

.hof-locked-content {
    position: relative;
    display: flex;
    min-height: 145px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hof-locked-text {
    color: #666;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* =========================
   PERFIL PÚBLICO USUARIO
   ========================= */

.profile-page {
    padding-top: 50px;
}

.user-public-message {
    max-width: 600px;
    margin: 15px auto;
    color: #bbb;
    font-size: 17px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.user-public-url {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 20px;
    color: #d6b85a;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.user-public-url:hover {
    color: gold;
    text-decoration: underline;
}

.user-stats-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 25px;
}

.user-stat-card {
    padding: 18px 12px;
    border: 1px solid #292929;
    border-radius: 10px;
    background: #0b0b0b;
    text-align: center;
}

.user-stat-value {
    display: block;
    margin-bottom: 5px;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.user-stat-label {
    color: #777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================
   FOOTER GLOBAL
   ========================= */

.global-footer {
    width: 100%;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
            linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.015),
                    rgba(0, 0, 0, 0.25)
            );
}

.global-footer-inner {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 42px 0 34px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;

    text-align: center;
}

.global-footer-brand {
    color: white;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;

    transition:
            color 0.2s ease,
            transform 0.2s ease;
}

.global-footer-brand:visited {
    color: white;
}

.global-footer-brand:hover {
    color: gold;
    transform: translateY(-1px);
}

.global-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 22px;
}

.global-footer-links a {
    position: relative;

    color: #888;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;

    transition:
            color 0.2s ease;
}

.global-footer-links a:visited {
    color: #888;
}

.global-footer-links a:hover {
    color: gold;
}

.global-footer-links a:not(:last-child)::after {
    content: "·";

    position: absolute;
    right: -14px;

    color: #444;
    pointer-events: none;
}

.global-footer-copyright {
    margin: 2px 0 0;

    color: #555;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 850px) {

    .hall-tabs {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .global-footer {
        margin-top: 60px;
    }
}


@media (max-width: 600px) {

    .hall-page-new {
        padding-top: 40px;
    }

    .hall-tabs {
        grid-template-columns: 1fr;
    }

    .hall-tab {
        min-height: 48px;
    }

    .hall-achievement-grid {
        grid-template-columns: 1fr;
    }

    .user-stats-grid {
        grid-template-columns: 1fr;
    }


    /* RANKING */

    .ranking-row-left {
        min-width: 0;
    }

    .ranking-row-profile-content {
        min-width: 0;
    }

    .ranking-row-name {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .ranking-row-left
    .ranking-profile-details {
        max-width: 180px;
    }

    .ranking-row-left
    .ranking-profile-message {
        font-size: 12px;
    }

    .profile-ranking-message,
    .profile-ranking-url {
        max-width: 100%;
        overflow-wrap: anywhere;
    }


    /* PAYMENT CONSENT */

    .payment-consent {
        margin-top: 15px;
        padding: 13px;
        gap: 12px;
    }

    .payment-consent-option {
        gap: 9px;
        font-size: 11px;
        line-height: 1.5;
    }

    .payment-consent-option input[type="checkbox"] {
        width: 16px;
        min-width: 16px;
        height: 16px;
    }

    .ranking-contribution-consent {
        gap: 8px;
        padding-top: 9px;
    }

    .ranking-contribution-consent
    .payment-consent-option {
        font-size: 10px;
    }


    /* FOOTER */

    .global-footer {
        margin-top: 45px;
    }

    .global-footer-inner {
        width: 90%;
        padding: 34px 0 28px;
        gap: 20px;
    }

    .global-footer-brand {
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    .global-footer-links {
        flex-direction: column;
        gap: 13px;
    }

    .global-footer-links a {
        font-size: 11px;
    }

    .global-footer-links a:not(:last-child)::after {
        display: none;
    }

    .global-footer-copyright {
        font-size: 11px;
    }
}
/* =========================
   HOME - ENTER THE RANKING
   ========================= */

.hero-join-form {
    display: none;

    width: min(560px, 92vw);
    margin: 28px auto 0;
    padding: 28px;

    box-sizing: border-box;

    border: 1px solid #2f2f2f;
    border-radius: 14px;

    background:
            linear-gradient(
                    145deg,
                    rgba(255, 255, 255, 0.035),
                    rgba(255, 255, 255, 0.012)
            );

    text-align: left;

    box-shadow:
            0 18px 55px
            rgba(0, 0, 0, 0.28);
}

.hero-join-form h2 {
    margin: 0 0 22px;
    text-align: center;
}

.hero-join-form > label {
    display: block;
    margin: 14px 0 7px;
}

.hero-join-form > input,
.hero-join-form .money-input-container {
    width: 100%;
    box-sizing: border-box;
}

.hero-join-form > button[type="submit"] {
    width: 100%;
    margin-top: 18px;
}

.hero-ranking-button[aria-expanded="true"] {
    border-color: #d6b85a;
}


/* =========================
   RANKING - CONTRIBUTE FORM
   ========================= */

.ranking-contribution-form {
    position: relative;

    width: min(
            420px,
            calc(100vw - 32px)
    );

    max-width: 420px;

    padding: 18px;

    box-sizing: border-box;

    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;

    gap: 12px;

    border: 1px solid #333;
    border-radius: 12px;

    background: #0b0b0b;

    box-shadow:
            0 18px 45px
            rgba(0, 0, 0, 0.42);

    z-index: 30;
}


/* CANTIDAD */

.ranking-contribution-form
> input[type="text"] {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;
}


/* CONSENTIMIENTOS */

.ranking-contribution-consent {
    width: 100%;

    margin: 0;
    padding: 12px 0 0;

    box-sizing: border-box;

    gap: 12px;
}

.ranking-contribution-consent
.payment-consent-option {
    width: 100%;

    align-items: flex-start;

    gap: 10px;

    font-size: 12px;
    line-height: 1.5;

    text-align: left;
}

.ranking-contribution-consent
.payment-consent-option
input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;

    margin-top: 2px;
}


/* BOTÓN ADD */

.ranking-contribution-form
> button[type="submit"] {
    width: 100%;
    min-height: 40px;

    margin: 2px 0 0;
}


/* BOTÓN CERRAR */

.ranking-contribution-close {
    position: absolute;

    top: 7px;
    right: 8px;

    width: 30px;
    height: 30px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    background: transparent;

    color: #888;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.ranking-contribution-close:hover {
    color: #fff;
}


/* ERROR */

.ranking-contribution-error {
    width: 100%;

    margin: 0;

    text-align: left;
}


/* =========================
   RESPONSIVE
   FORMULARIOS DE PAGO
   ========================= */

@media (max-width: 600px) {

    .hero-join-form {
        width: 100%;

        margin-top: 22px;

        padding: 20px 16px;
    }


    .ranking-contribution-form {
        width:
                min(
                        360px,
                        calc(100vw - 24px)
                );

        max-width: 100%;

        padding: 16px 14px;
    }


    .ranking-contribution-consent
    .payment-consent-option {
        font-size: 11px;
    }
}

/* =========================
   FIX CHECKBOX + TEXTO
   CONTRIBUTE
   ========================= */

.ranking-contribution-consent
.payment-consent-option {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

    gap: 10px;
}

.ranking-contribution-consent
.payment-consent-option
input[type="checkbox"] {
    flex: 0 0 16px;

    width: 16px;
    min-width: 16px;
    max-width: 16px;

    height: 16px;

    margin: 2px 0 0;

    padding: 0;
}

.ranking-contribution-consent
.payment-consent-option
span {
    flex: 1 1 auto;

    min-width: 0;

    margin: 0;

    text-align: left;
}