/* ============================================
   TheTomCanuck Linktree
   Bright frog chaos energy
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --lime:    #a3f73a;
    --green:   #2ed573;
    --forest:  #0a6e3a;
    --emerald: #00b859;
    --yellow:  #f5f73a;
    --cream:   #f0fce8;
    --white:   #ffffff;
    --text:    #1a3a1a;
    --text-mid:#3d6b3d;
    --shadow:  rgba(10, 60, 20, 0.15);

    /* platform brand colors */
    --twitch:  #9146ff;
    --youtube: #ff0000;
    --kick:    #53fc18;
    --tiktok:  #ff0050;
    --parti:   #ff6b35;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    font-weight: 500;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
    background: var(--lime);
}

/* ---- animated background blobs ---- */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 50%, #b8ff5a 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, #5aff9e 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, #e8ffb0 0%, transparent 60%),
        var(--lime);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: drift 20s ease-in-out infinite alternate;
}

.bg-blob--1 {
    width: 60vmax;
    height: 60vmax;
    background: var(--green);
    top: -20%;
    left: -10%;
    animation-duration: 22s;
}

.bg-blob--2 {
    width: 45vmax;
    height: 45vmax;
    background: var(--yellow);
    bottom: -15%;
    right: -10%;
    animation-duration: 18s;
    animation-delay: -5s;
}

.bg-blob--3 {
    width: 35vmax;
    height: 35vmax;
    background: #7aff6a;
    top: 40%;
    left: 50%;
    animation-duration: 25s;
    animation-delay: -10s;
}

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(3vw, -4vh) scale(1.08); }
    100% { transform: translate(-2vw, 3vh) scale(0.95); }
}

/* ---- main card ---- */
.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    box-shadow:
        0 8px 32px var(--shadow),
        0 1px 0 rgba(255,255,255,0.8) inset;
}

/* ---- hero / profile ---- */
.hero {
    text-align: center;
    margin-bottom: 1.25rem;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar:hover {
    transform: scale(1.12) rotate(-3deg);
}

.name {
    font-family: Impact, 'Arial Black', sans-serif;
    font-size: 2rem;
    color: var(--forest);
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 0 rgba(163, 247, 58, 0.4);
}

.tagline {
    font-size: 0.95rem;
    color: var(--text-mid);
    font-weight: 700;
    margin-top: 0.15rem;
}

/* ---- bio ---- */
.bio {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.bio strong {
    color: var(--forest);
    font-weight: 700;
}

/* ---- link buttons ---- */
.links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.25rem;
    border-radius: 14px;
    text-decoration: none;
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
    background: var(--forest);
    border: 2px solid transparent;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        background 0.25s ease;
    box-shadow: 0 3px 12px var(--shadow);
}

.link:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(10, 60, 20, 0.25);
}

.link:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

.link:active {
    transform: translateY(-1px) scale(0.99);
}

/* platform-specific colors */
.link--twitch  { background: var(--twitch); }
.link--youtube { background: var(--youtube); }
.link--kick    { background: #1a1a1a; border-color: var(--kick); }
.link--tiktok  { background: var(--tiktok); }
.link--parti   { background: var(--parti); }

.link--twitch:hover  { background: #7c3bd4; }
.link--youtube:hover { background: #cc0000; }
.link--kick:hover    { background: #2a2a2a; border-color: #7fff4a; }
.link--tiktok:hover  { background: #e00048; }
.link--parti:hover   { background: #e85a2a; }

.link-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* kick icon is green on dark — invert to white */
.link--kick .link-icon {
    color: var(--kick);
}

/* ---- responsive ---- */
@media (max-width: 480px) {
    body {
        padding: 1rem 0.75rem;
    }

    .card {
        padding: 2rem 1.25rem 1.5rem;
        border-radius: 20px;
    }

    .name {
        font-size: 1.65rem;
    }

    .avatar {
        width: 90px;
        height: 90px;
    }
}
