/* RoboStux Website - /invite: the platform picker. Glossy tiles after the Stuxedo status chooser, each in its
   platform's own colours. Copyright (c) 2017-2026 StuxieDev. All rights reserved. */

.invite-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.invite-picker .h1 {
    margin: 0 0 2rem;
    font-size: clamp(1.5rem, 3.6vw, 2.2rem);
}

.tiles {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(20px, 4vw, 44px);
    width: 100%;
    max-width: 1080px;
}

.tile {
    --rim: #2a1630;
    --rim-hi: rgba(255, 255, 255, .14);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 260px;
    min-width: 0;
    max-width: 320px;
    aspect-ratio: 1 / 1.08;
    padding: 28px 22px 22px;
    border-radius: 26px;
    border: 7px solid var(--rim);
    overflow: hidden;
    text-decoration: none;
    box-shadow:
        inset 0 0 0 2px var(--rim-hi),
        inset 0 10px 24px rgba(255, 255, 255, .10),
        0 14px 30px -10px rgba(0, 0, 0, .45);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/* The glare across the top of each tile. */
.tile::before {
    content: '';
    position: absolute;
    inset: 0 0 52% 0;
    border-radius: 18px 18px 50% 50% / 18px 18px 22% 22%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* A shine that sweeps across a live tile on hover. */
.tile::after {
    content: '';
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -60%;
    width: 40%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    pointer-events: none;
    opacity: 0;
}

.tile > * {
    position: relative;
    z-index: 1;
}

a.tile:hover,
a.tile:focus-visible {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent);
    outline: none;
    box-shadow:
        inset 0 0 0 2px var(--rim-hi),
        inset 0 10px 24px rgba(255, 255, 255, .10),
        0 0 0 4px rgba(163, 73, 164, .3),
        0 0 28px rgba(222, 150, 223, .5),
        0 20px 36px -12px rgba(0, 0, 0, .5);
}

a.tile:hover::after,
a.tile:focus-visible::after {
    opacity: 1;
    animation: tile-shine .9s ease;
}

@keyframes tile-shine {
    from { left: -60%; }
    to { left: 130%; }
}

.tile-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 14px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
}

.tile-brand {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .01em;
    line-height: 1;
    color: rgba(255, 255, 255, .85);
}

.tile-name {
    margin-top: 4px;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(1.9rem, 4.4vw, 2.4rem);
    letter-spacing: -.03em;
    line-height: 1;
    white-space: nowrap;
}

.tile-about {
    margin: 14px 0 0;
    font-size: .95rem;
    color: rgba(255, 255, 255, .85);
}

.tile-url {
    margin: 6px 0 0;
    font-size: .85rem;
    letter-spacing: .03em;
}

/* RoboStux for Discord: in Discord's colours, from a deep night up to Blurple (#5865F2), with a burst of light. */
.tile-discord {
    --rim: #1b1d4a;
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, .8) 0, rgba(200, 206, 255, .45) 6%, transparent 24%),
        radial-gradient(ellipse 90% 40% at 50% 92%, rgba(138, 149, 255, .35), transparent 70%),
        linear-gradient(170deg, #0f1033 0%, #2a3290 42%, #5865f2 78%, #8f99ff 100%);
}

a.tile-discord:hover,
a.tile-discord:focus-visible {
    border-color: #5865f2;
    box-shadow:
        inset 0 0 0 2px var(--rim-hi),
        inset 0 10px 24px rgba(255, 255, 255, .10),
        0 0 0 4px rgba(88, 101, 242, .3),
        0 0 28px rgba(138, 149, 255, .5),
        0 20px 36px -12px rgba(0, 0, 0, .5);
}

.tile-discord .tile-name {
    color: #ffffff;
    text-shadow: 0 2px 0 #0f1033, 0 0 18px rgba(138, 149, 255, .6);
}

.tile-discord .tile-url { color: #c8ceff; }

/* RoboStux for Fluxer: in Fluxer's colours (its night #0f0e2b up to its blue #4641d9). */
.tile-fluxer {
    --rim: #1a1940;
    background: linear-gradient(170deg, #0f0e2b 0%, #24227a 55%, #4641d9 100%);
}

a.tile-fluxer:hover,
a.tile-fluxer:focus-visible { border-color: #4641d9; }

.tile-fluxer .tile-name { color: #e7e6ff; }
.tile-fluxer .tile-url { color: #c9c7ff; }

/* RoboStux for Twitch: in Twitch's colours (a deep night up to Twitch Purple, #9146ff). */
.tile-twitch {
    --rim: #22123f;
    background: linear-gradient(170deg, #12091f 0%, #4a1f8f 55%, #9146ff 100%);
}

a.tile-twitch:hover,
a.tile-twitch:focus-visible { border-color: #9146ff; }

.tile-twitch .tile-name { color: #efe6ff; }
.tile-twitch .tile-url { color: #dcc8ff; }

/* A platform whose bot isn't open yet (no invite URL in the config): muted, still, and not a link. */
.tile-off {
    filter: saturate(.55);
    opacity: .8;
    cursor: default;
}

.tile-soon {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .4);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.invite-help {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .tile {
        aspect-ratio: auto;
        min-height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tile { transition: none; }
    a.tile:hover,
    a.tile:focus-visible { transform: none; }
    a.tile:hover::after,
    a.tile:focus-visible::after { animation: none; opacity: 0; }
}
