@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #19191d;
    --secondary-color: #2c2b2b;
    --accent-color: #ff3e3e;
    --card-background: #26313f;
    --text-color: #e7e7e7;
    --text2-color: #a1a1a1;
    --highlight-color: #ffff1a;

    --mention-bg: #304764;
    --mention-fg: #6fb0ff;

    --suspect: #ff9292;
    --developer: #cce4ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    min-height: 100vh;
}

header {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin: 10px;
    color: var(--accent-color);
    text-align: center;
}

h2 {
    font-size: 1.1rem;
    margin: 10px;
    color: var(--text2-color);
    text-align: center;
}

main {
    padding: 2rem;
}

/* grid dos ngc */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin: 20px;
    gap: 20px;
    justify-content: center;
}

/* Primeiro, vamos garantir que o card tenha um z-index base */
.user-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 1.5rem;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
    position: relative;
    /* overflow: hidden; */
    z-index: 0;
}

.crown-icon {
    position: absolute;
    top: -33px;
    left: 50%;
    transform: translateX(-40%) rotate(14deg);
    width: 130px;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.leaderboard-position {
    position: absolute;
    right: 10px;

    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);

    text-align: right;
    margin: 0;
    white-space: nowrap;
}


.star {
    position: absolute;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: rise 5s ease-out infinite;
}

@keyframes rise {
    0% {
        bottom: 0;
        opacity: 0;
    }

    10% {
        opacity: 0.2;
    }

    90% {
        bottom: 98%;
        opacity: 0.5;
    }

    100% {
        bottom: 50%;
        opacity: 0;
    }
}

.invalid-user {
    position: absolute;
    /* top: -33px; */
    left: 50%;
    transform: translateX(-50%) translateY(-31.5%);
    font-size: 180px;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.invalid-image {
    filter: grayscale() brightness(0.7);
    background-color: var(--secondary-color);
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.2);
}

.user-image-container {
    position: relative;
    display: inline-block;
}

.user-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    justify-self: center;
    border: 4px solid var(--accent-color);
}

.user-name {
    font-size: 1.7rem;
    font-weight: 600;
    text-align: center;
    margin: -10px;
    color: var(--accent-color);
}

.user-stats {
    list-style-type: none;
    padding: 0;
}

.user-stats li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-stats i {
    margin-right: 0.5rem;
    color: var(--text2-color);
}

.user-stats i2 {
    font-size: 24px;
    font-weight: bolder;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    color: var(--highlight-color);
}

.user-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-color);
    text-align: center;
}

/* outros trecos */
.separator {
    border: 1px solid #ccc;
    border-radius: 2px;
    margin: 20px 20px;
}

.mention {
    color: var(--mention-fg);
    background-color: var(--mention-bg);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.link {
    color: rgb(165, 155, 255);
    cursor: pointer;
    text-decoration: underline;
}

/* userinfo */
.userinfo-container {
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 20px;
    margin: 20px 20px;
    text-align: center;
}

footer {
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 20px;
    margin: 20px 20px;
    text-align: center;
}

/* vicotir glow  */

@keyframes teste {
    50% {
        text-shadow: 0 0 15px rgb(255, 197, 197);
        color: var(--suspect);
    }

    0%,
    100% {
        text-shadow: none;
        color: var(--text-color);
    }
}

.suspect {
    animation: teste 1s alternate infinite;
    font-weight: 900;
}

.badges {
    /* margin-bottom: 10px;
    margin-top: 10px; */

    margin: 5px 5px;
    list-style: none;
    text-align: center;

    background-color: var(--secondary-color);
    border-radius: 14px;

    display: inline-block;
    padding: 5px 5px 0px 5px;

    color: var(--text-color);
    font-weight: 900;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite alternate;
}

.badges img {
    width: 20px;
    position: relative;
    margin: 0 5px;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltiptext {
    visibility: hidden;
    width: auto;

    background-color: #272727;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    border-radius: 5px;
    padding: 5px 15px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


@keyframes pulse {
    to {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    }
}


/* clan */
.clan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.clan-card {
    border-radius: 10px;
    padding: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.clan-name {
    font-size: 1.7rem;
    font-weight: 600;
    text-align: center;
    color: var(--accent-color);
    text-justify: distribute;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: break-word;
    text-justify: auto;
    max-width: 100%;

}

.clan-members {
    list-style: none;
    margin-top: 10px;
    text-align: center;

    background-color: var(--secondary-color);
    border-radius: 20px;
    padding: 0.4rem;
}




/* botao q eu roubei pronto ja kkkk */

/* From Uiverse.io by Custyyyy */
.fancyButton {
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: .25rem;
    box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: inline-flex;
    font-family: system-ui, -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    min-height: 3rem;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: auto;
}

.fancyButton:hover,
.fancyButton:focus {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
    /* color: rgba(0, 0, 0, 0.65); */
}

.fancyButton:hover {
    transform: translateY(-4px);
}

.bContainer {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 1.3rem;
    gap: 30px;
    max-width: 600px;

    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 0 auto;
    flex-direction: row;
    /* text-align: center; */
}


.ContainerParent {
    padding: 1rem;
    border-radius: 20px;
    margin: 20px 20px;
    text-align: center;
}

@media (max-width: 600px) {
    .user-grid {
        grid-template-columns: 1fr;
    }

    .fancyButton {
        font-size: 15px;
    }

    .bContainer {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(2, 2fr);
        justify-content: center;
        max-width: 400px;
        margin: 0 auto;
    }

    .bContainer a:nth-child(4) {
        grid-column: 2;
    }
}

/* NEW 28/05/2025 */

.fancyButton.disabled {
    background-color: #b5b5b5;
    color: #505050;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: line-through;
}


.link.disabled {
    /* background-color: #b5b5b5; */
    /* color: #5fdfff; */
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: line-through;
}