/* ============================================
   Phillip Kirillov — Linktree
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f2f2f7;
    --card: #ffffff;
    --text: #000000;
    --text-secondary: #8e8e93;
    --text-tertiary: #aeaeb2;
    --border: rgba(0, 0, 0, 0.06);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 14px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.4;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

/* --- Page --- */
.page {
    max-width: 480px;
    margin: 0 auto;
    padding: 64px 20px 48px;
}

/* --- Profile --- */
.profile {
    text-align: center;
    margin-bottom: 40px;
}

.profile-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 18px;
    background: #ddd;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-name {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 18px;
}

.profile-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s, background 0.2s;
}

.social-icon:hover {
    color: var(--text);
    background: rgba(0, 0, 0, 0.04);
}

/* --- Links --- */
.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--card);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--text);
    transition: width 0.25s var(--ease);
    border-radius: var(--radius) 0 0 var(--radius);
}

.link-card:hover::before {
    width: 3px;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.link-card:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Disabled link card (Coming soon) */
.link-card--disabled {
    cursor: default;
    opacity: 0.55;
}

.link-card--disabled::before {
    display: none;
}

.link-card--disabled:hover {
    transform: none;
    box-shadow: none;
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text);
}

.link-card--disabled .link-icon {
    color: var(--text-tertiary);
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
}

.link-desc {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.link-chevron {
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: transform 0.2s var(--ease), color 0.2s;
}

.link-card:hover .link-chevron {
    transform: translateX(3px);
    color: var(--text-secondary);
}

.link-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

/* --- CTA Section --- */
.cta-section {
    margin-bottom: 40px;
}

.cta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: var(--text);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.cta-card:active {
    transform: translateY(0);
}

.cta-content {
    flex: 1;
}

.cta-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cta-desc {
    display: block;
    font-size: 13px;
    opacity: 0.7;
    font-weight: 400;
}

.cta-arrow {
    flex-shrink: 0;
    opacity: 0.7;
    transition: transform 0.2s var(--ease);
}

.cta-card:hover .cta-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* --- Footer --- */
.footer {
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* --- Stagger Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(16px);
    animation: staggerIn 0.6s var(--ease) forwards;
}

[data-animate="1"]  { animation-delay: 0.05s; }
[data-animate="2"]  { animation-delay: 0.1s; }
[data-animate="3"]  { animation-delay: 0.15s; }
[data-animate="4"]  { animation-delay: 0.2s; }
[data-animate="5"]  { animation-delay: 0.25s; }
[data-animate="6"]  { animation-delay: 0.35s; }
[data-animate="7"]  { animation-delay: 0.42s; }
[data-animate="8"]  { animation-delay: 0.49s; }
[data-animate="9"]  { animation-delay: 0.56s; }
[data-animate="10"] { animation-delay: 0.63s; }
[data-animate="11"] { animation-delay: 0.75s; }
[data-animate="12"] { animation-delay: 0.85s; }

@keyframes staggerIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 520px) {
    .page {
        padding: 48px 16px 36px;
    }

    .profile-image {
        width: 84px;
        height: 84px;
    }

    .profile-name {
        font-size: 20px;
    }
}
