.sportify-profile {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--sp-text);
}

.profile-hero {
    position: relative;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 77, 0, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.14) 0%, transparent 40%),
        linear-gradient(145deg, #111827 0%, #0f172a 60%, #1e1b4b 100%);
    border-bottom: 1px solid var(--sp-border);
    padding: 4rem 1.5rem 6rem;
    text-align: center;
    overflow: hidden;
}

.profile-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/Sportify/images/Sportify_logo.svg');
    background-repeat: no-repeat;
    background-position: 90% 10%;
    background-size: 220px;
    opacity: 0.08;
    pointer-events: none;
}

.profile-pic {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 5px solid rgba(255, 77, 0, 0.8);
    background: var(--sp-card);
    box-shadow: 0 0 0 6px rgba(255, 77, 0, 0.15), var(--sp-shadow-lg);
    display: block;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.profile-hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--sp-text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.profile-hero h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--sp-primary), #ffb700);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 0;
    margin: 1.5rem 0 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.profile-meta li {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sp-text);
    box-shadow: var(--sp-shadow);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-meta li span {
    color: var(--sp-muted);
    font-weight: 500;
}

.team-history {
    max-width: 1200px;
    margin: -3.5rem auto 0;
    padding: 0 1.5rem 3rem;
    position: relative;
    z-index: 2;
}

.team-history h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 1.5rem;
    text-transform: uppercase;
    color: var(--sp-text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.team-history h2::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 1.4rem;
    background: linear-gradient(180deg, var(--sp-primary), #ffb700);
    border-radius: 3px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.team-card {
    background: var(--sp-card);
    border: 1px solid var(--sp-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--sp-shadow);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sp-primary), var(--sp-accent));
    opacity: 0.8;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sp-shadow-lg), 0 0 25px rgba(255, 77, 0, 0.1);
}

.team-pic {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: var(--sp-surface);
    object-fit: cover;
    border: 2px solid var(--sp-border);
}

.team-card h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.team-card h3 a {
    color: var(--sp-text);
    text-decoration: none;
}

.team-card h3 a:hover {
    color: var(--sp-primary-glow);
}

.team-role {
    margin: 0;
    color: var(--sp-primary-glow);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.team-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.team-links a,
.team-links span {
    background: var(--sp-surface);
    color: var(--sp-muted);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid var(--sp-border);
    font-weight: 600;
    transition: all 0.15s ease;
}

.team-links a:hover {
    background: rgba(255, 77, 0, 0.12);
    color: var(--sp-primary-glow);
    border-color: rgba(255, 77, 0, 0.4);
}

.team-card h4 {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--sp-muted);
    letter-spacing: 0.08em;
    font-weight: 700;
}

.member-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.member-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
}

.member-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
}

.member-list a {
    color: var(--sp-accent);
    text-decoration: none;
    font-weight: 700;
}

.member-list a:hover {
    color: var(--sp-primary-glow);
    text-decoration: underline;
}

.member-list span {
    margin-left: auto;
    color: var(--sp-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.team-empty {
    color: var(--sp-muted);
    font-size: 1.05rem;
    text-align: center;
    padding: 3rem 1rem;
    background: var(--sp-card);
    border: 1px dashed var(--sp-border);
    border-radius: var(--sp-radius);
}

@media (max-width: 700px) {
    .profile-hero {
        padding: 2.5rem 1rem 4.5rem;
    }

    .profile-pic {
        width: 130px;
        height: 130px;
    }

    .profile-hero h1 {
        font-size: 2rem;
    }

    .profile-hero::after {
        background-size: 140px;
        opacity: 0.06;
    }

    .team-history {
        padding: 0 1rem 2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        padding: 1.2rem;
    }

    .team-pic {
        width: 64px;
        height: 64px;
    }

    .member-list span {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
