/* ============================================================
   RedBlood Esport — Linktree Clone
   Style unique · Bordeaux / Magenta
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;

    /* Dégradé bordeaux / magenta foncé */
    background: linear-gradient(
        160deg,
        #3d0a1e 0%,
        #6b1a3a 25%,
        #8c2456 45%,
        #a13065 55%,
        #7a2248 70%,
        #4e1230 100%
    );
    background-attachment: fixed;
}

/* ---- Floating Particles ---- */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100vh) translateX(30px) scale(0.5);
        opacity: 0;
    }
}

/* ---- Animated background blobs ---- */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.bg-blob--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #c94b7c, transparent 70%);
    top: -120px;
    left: -100px;
    animation: blobFloat1 18s ease-in-out infinite alternate;
}

.bg-blob--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #d4618a, transparent 70%);
    bottom: -80px;
    right: -60px;
    animation: blobFloat2 22s ease-in-out infinite alternate;
}

.bg-blob--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #a33f6e, transparent 70%);
    top: 40%;
    left: 50%;
    animation: blobFloat3 15s ease-in-out infinite alternate;
}

@keyframes blobFloat1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes blobFloat2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, -30px) scale(1.1); }
}
@keyframes blobFloat3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 50px) scale(1.2); }
}

/* ---- Container ---- */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- Avatar ---- */
.avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 0 4px rgba(180, 60, 100, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    animation: avatarPulse 4s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar-wrapper:hover {
    transform: scale(1.06);
    box-shadow:
        0 0 0 4px rgba(180, 60, 100, 0.5),
        0 0 30px rgba(200, 80, 130, 0.35),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(180, 60, 100, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3); }
    50%      { box-shadow: 0 0 0 6px rgba(200, 80, 130, 0.3), 0 0 20px rgba(200, 80, 130, 0.2), 0 8px 32px rgba(0, 0, 0, 0.3); }
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Profile Name ---- */
.profile-name {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    text-align: center;
}

/* ---- Description ---- */
.profile-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.55;
    text-align: center;
    max-width: 420px;
    margin-bottom: 20px;
}

/* ---- Social icons row ---- */
.socials {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.social-link {
    color: #ffffff;
    font-size: 1.55rem;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), opacity 0.25s ease, color 0.25s ease, filter 0.25s ease;
    opacity: 0.9;
    position: relative;
}

.social-link:hover {
    transform: scale(1.25) translateY(-3px);
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}

.social-link:active {
    transform: scale(0.95);
}

/* Tooltip on social icons */
.social-link[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-link[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   BANNER / FEATURED CARD
   ============================================================ */
.banner {
    width: 100%;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.banner:hover {
    transform: translateY(-2px);
}

/* -- Style : glow -- */
.banner--glow {
    background: linear-gradient(135deg, rgba(220, 60, 120, 0.2), rgba(140, 40, 90, 0.15));
    border: 1px solid rgba(255, 120, 170, 0.3);
    box-shadow:
        0 0 25px rgba(220, 60, 120, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.banner--glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 120, 170, 0.5), rgba(180, 50, 100, 0.1), rgba(255, 120, 170, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: bannerBorderPulse 3s ease-in-out infinite;
}

@keyframes bannerBorderPulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

.banner--glow:hover {
    box-shadow:
        0 0 35px rgba(220, 60, 120, 0.25),
        0 8px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Shimmer effect on glow banner */
.banner--glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    animation: bannerShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bannerShimmer {
    0%   { left: -100%; }
    50%  { left: 150%; }
    100% { left: 150%; }
}

/* -- Style : solid -- */
.banner--solid {
    background: linear-gradient(135deg, #a0275a, #7a1d44);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.banner--solid:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* -- Style : outline -- */
.banner--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.banner--outline:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.45);
}

/* Banner image */
.banner__image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
    line-height: 0;
    border-radius: inherit;
}

.banner__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.banner:hover .banner__image {
    transform: scale(1.02);
}

/* Placeholder when image fails to load */
.banner__image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.banner__image-placeholder i {
    font-size: 2rem;
}

/* Caption under image */
.banner__caption {
    padding: 12px 18px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* ---- Link Buttons ---- */
.links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.link-btn {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 56px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s cubic-bezier(.34,1.56,.64,1);
    cursor: pointer;
    overflow: hidden;
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 16px rgba(220, 60, 120, 0.18);
    transform: translateY(-2px);
}

.link-btn:active {
    transform: scale(0.985) !important;
}

/* Ripple effect */
.link-btn__ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    width: 0;
    height: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.link-btn__ripple.active {
    animation: rippleExpand 0.5s ease-out forwards;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

/* Icon circle positioned on the left */
.link-btn__icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease;
    z-index: 2;
}

.link-btn:hover .link-btn__icon {
    transform: translateY(-50%) scale(1.08) rotate(-4deg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Text block centered in the button */
.link-btn__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
    padding: 0 54px;
    z-index: 1;
}

.link-btn__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: letter-spacing 0.3s ease;
}

.link-btn:hover .link-btn__title {
    letter-spacing: 0.015em;
}

.link-btn__subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.3s ease;
}

.link-btn:hover .link-btn__subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* ---- Footer ---- */
.footer {
    margin-top: 44px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
}

.footer__divider {
    width: 100%;
    max-width: 240px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    margin-bottom: 6px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.footer__logo {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer__tagline {
    font-size: 0.76rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.01em;
}

.footer__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer a.footer__social-link,
a.footer__social-link,
.footer__social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(.34,1.56,.64,1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer a.footer__social-link:hover,
a.footer__social-link:hover,
.footer__social-link:hover {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 10px rgba(220, 60, 120, 0.25);
}

.footer a.footer__social-link:active,
a.footer__social-link:active,
.footer__social-link:active {
    transform: scale(0.95);
}

.footer__copyright {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: center;
    margin: 2px 0 0;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .container {
        padding: 32px 16px 44px;
    }

    .avatar-wrapper {
        width: 88px;
        height: 88px;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .profile-desc {
        font-size: 0.82rem;
    }

    .link-btn {
        min-height: 52px;
        padding: 6px 12px;
    }

    .link-btn__icon {
        width: 40px;
        height: 40px;
        left: 7px;
        font-size: 1.05rem;
    }

    .link-btn__text {
        padding: 0 48px;
    }

    .link-btn__title {
        font-size: 0.88rem;
    }

    .link-btn__subtitle {
        font-size: 0.72rem;
    }

    .banner__caption {
        font-size: 0.74rem;
        padding: 10px 14px;
    }

    .footer {
        margin-top: 36px;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 24px 12px 36px;
    }

    .avatar-wrapper {
        width: 78px;
        height: 78px;
    }

    .profile-name {
        font-size: 1.18rem;
    }

    .profile-desc {
        font-size: 0.78rem;
    }

    .link-btn {
        min-height: 48px;
    }

    .link-btn__icon {
        width: 36px;
        height: 36px;
        left: 6px;
        font-size: 0.95rem;
    }

    .link-btn__text {
        padding: 0 42px;
    }

    .link-btn__title {
        font-size: 0.82rem;
    }

    .link-btn__subtitle {
        font-size: 0.68rem;
    }

    .footer a.footer__social-link,
    a.footer__social-link,
    .footer__social-link {
        width: 34px;
        height: 34px;
        font-size: 0.88rem;
    }
}

/* ---- Scrollbar styling ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ---- Selection color ---- */
::selection {
    background: rgba(200, 60, 110, 0.5);
    color: #fff;
}
