/* ========================================
   RootReef - Links Page (Link-in-bio style)
   ======================================== */

:root {
    --color-primary: #0a6e78;
    --color-primary-light: #0d8a96;
    --color-primary-dark: #064e55;
    --color-accent: #2dd4bf;
    --color-bg: #f8fafb;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-light: #94a3b8;
    --color-bg-alt: #f0f4f5;
    --color-border: #e2e8f0;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 20px -5px rgba(10, 110, 120, 0.15);

    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle background animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(45, 212, 191, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(10, 110, 120, 0.08) 0%, transparent 50%);
    animation: bgBreathing 15s ease-in-out infinite alternate;
}

@keyframes bgBreathing {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Language Switcher */
.links-lang-switcher {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
}

.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(10, 110, 120, 0.2);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.lang-switcher:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


.links-container {
    width: 100%;
    max-width: 480px;
    /* Mobile-first approach constraint */
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-img {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--color-surface);
}

.profile-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.profile-title .accent {
    color: var(--color-primary);
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-bottom: 24px;
}

.profile-intro {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.6);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(10, 110, 120, 0.1);
    box-shadow: var(--shadow-sm);
}

/* Links List */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    text-decoration: none;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.link-card:hover,
.link-card:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(10, 110, 120, 0.2);
}

.link-card:hover::before,
.link-card:active::before {
    opacity: 1;
}

.link-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 16px;
    background: var(--color-bg);
    color: var(--color-primary);
    transition: all var(--transition);
}

.link-card:hover .link-icon {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

.link-icon svg {
    width: 20px;
    height: 20px;
}

.link-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.link-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 4px;
    transition: color var(--transition);
}

.link-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.link-card:hover .link-title {
    color: var(--color-primary);
}

.link-arrow {
    color: #cbd5e1;
    transition: all var(--transition);
    display: flex;
    align-items: center;
}

.link-arrow svg {
    width: 20px;
    height: 20px;
}

.link-card:hover .link-arrow {
    color: var(--color-primary);
    transform: translateX(4px);
}

/* Specific Brand Colors on Hover (Optional, customized feeling) */
.link-card.linkedin:hover::before {
    background: #0077b5;
}

.link-card.linkedin:hover .link-icon {
    background: #0077b5;
}

.link-card.linkedin:hover .link-title {
    color: #0077b5;
}

.link-card.linkedin:hover .link-arrow {
    color: #0077b5;
}

.link-card.instagram:hover::before {
    background: #e1306c;
}

.link-card.instagram:hover .link-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.link-card.instagram:hover .link-title {
    color: #e1306c;
}

.link-card.instagram:hover .link-arrow {
    color: #e1306c;
}

/* Footer */
.profile-footer {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
}

.profile-footer p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Small screens adjustments */
@media (max-width: 380px) {
    .link-card {
        padding: 14px 16px;
    }

    .link-icon {
        width: 38px;
        height: 38px;
        margin-right: 12px;
    }

    .link-title {
        font-size: 1rem;
    }
}