/*
Theme Name: WebbiverseNXS
Theme URI: https://nxs.webbiverse.com
Author: Webbiverse
Author URI: https://webbiverse.com
Description: Zero-bloat theme for NXS link tree pages — dark glassmorphic design with neon green accents.
Version: 1.1.3
License: GPLv2 or later
Text Domain: webbiverse-nxs-theme
*/

/* ── CSS Custom Properties ─────────────────────────────────────── */
:root {
    --nxs-bg:       #000a1a;
    --nxs-surface:  rgba(255, 255, 255, 0.04);
    --nxs-glass:    rgba(255, 255, 255, 0.08);
    --nxs-border:   rgba(255, 255, 255, 0.12);
    --nxs-text:     #ffffff;
    --nxs-muted:    rgba(255, 255, 255, 0.65);
    --nxs-accent:   #39ff14;
    --nxs-accent-soft: rgba(57, 255, 20, 0.15);
    --nxs-accent-hover: #00ff88;
    --nxs-navy:     #021c40;
    --nxs-radius:   14px;
    --nxs-radius-sm: 8px;
    --nxs-shadow:   0 8px 32px rgba(0, 0, 0, 0.4);
    --nxs-glass-blur: 20px;
    --nxs-max-width: 480px;
    --nxs-font:     'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::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: var(--nxs-font);
    background: var(--nxs-bg);
    color: var(--nxs-text);
    min-height: 100vh;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Page Layout ───────────────────────────────────────────────── */
.nxs-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2.5rem 1.25rem 3rem;
    background: linear-gradient(180deg, var(--nxs-navy) 0%, var(--nxs-bg) 40%);
}

.nxs-container {
    width: 100%;
    max-width: var(--nxs-max-width);
    text-align: center;
}

/* ── Avatar ────────────────────────────────────────────────────── */
.nxs-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.nxs-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--nxs-accent);
    box-shadow: 0 0 20px var(--nxs-accent-soft);
}

.nxs-verified {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: var(--nxs-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--nxs-bg);
}

.nxs-verified svg {
    width: 12px;
    height: 12px;
    fill: var(--nxs-bg);
}

/* ── Profile Info ──────────────────────────────────────────────── */
.nxs-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.375rem;
}

.nxs-bio {
    font-size: 0.875rem;
    color: var(--nxs-muted);
    max-width: 320px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* ── Social Row ────────────────────────────────────────────────── */
.nxs-social-row {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.nxs-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--nxs-glass);
    backdrop-filter: blur(var(--nxs-glass-blur));
    -webkit-backdrop-filter: blur(var(--nxs-glass-blur));
    border: 1px solid var(--nxs-border);
    color: var(--nxs-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nxs-social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
    display: block;
}

.nxs-social-icon:hover {
    background: var(--nxs-accent);
    color: var(--nxs-bg);
    border-color: var(--nxs-accent);
    transform: scale(1.1);
    box-shadow: 0 0 16px var(--nxs-accent-soft);
}

/* ── Link Cards ────────────────────────────────────────────────── */
.nxs-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nxs-link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--nxs-radius);
    background: var(--nxs-glass);
    backdrop-filter: blur(var(--nxs-glass-blur));
    -webkit-backdrop-filter: blur(var(--nxs-glass-blur));
    border: 1px solid var(--nxs-border);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nxs-link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--nxs-accent-soft) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s;
}

.nxs-link-card:hover {
    border-color: var(--nxs-accent);
    transform: translateY(-2px);
    box-shadow: var(--nxs-shadow), 0 0 24px var(--nxs-accent-soft);
}

.nxs-link-card:hover::before {
    opacity: 1;
}

.nxs-link-card:active {
    transform: translateY(0);
}

.nxs-link-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--nxs-radius-sm);
    background: var(--nxs-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nxs-accent);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.nxs-link-icon img {
    width: 100%;
    height: 100%;
    border-radius: var(--nxs-radius-sm);
    object-fit: cover;
}

.nxs-link-title {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    text-align: left;
}

.nxs-link-arrow {
    flex-shrink: 0;
    color: var(--nxs-muted);
    position: relative;
    z-index: 1;
    transition: color 0.25s;
}

.nxs-link-card:hover .nxs-link-arrow {
    color: var(--nxs-accent);
}

/* ── Footer ────────────────────────────────────────────────────── */
.nxs-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--nxs-muted);
    opacity: 0.6;
}

.nxs-footer a {
    color: var(--nxs-muted);
    transition: color 0.2s;
}

.nxs-footer a:hover {
    color: var(--nxs-accent);
}

.nxs-footer .nxs-brand-accent {
    color: var(--nxs-accent);
    font-weight: 600;
}

/* ── 404 Page ──────────────────────────────────────────────────── */
.nxs-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: var(--nxs-bg);
    text-align: center;
}

.nxs-404-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--nxs-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px var(--nxs-accent-soft);
}

.nxs-404-message {
    font-size: 1.125rem;
    color: var(--nxs-muted);
    margin-bottom: 2rem;
}

.nxs-404-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--nxs-accent);
    color: var(--nxs-bg);
    border-radius: var(--nxs-radius);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.nxs-404-cta:hover {
    background: var(--nxs-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--nxs-accent-soft);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .nxs-page {
        padding: 2rem 1rem 2.5rem;
    }

    .nxs-avatar {
        width: 80px;
        height: 80px;
    }

    .nxs-name {
        font-size: 1.25rem;
    }

    .nxs-link-card {
        padding: 0.75rem 1rem;
    }

    .nxs-404-code {
        font-size: 4rem;
    }
}

/* ── Animation ─────────────────────────────────────────────────── */
@keyframes nxs-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nxs-container > * {
    animation: nxs-fade-in 0.4s ease-out forwards;
}

.nxs-links .nxs-link-card {
    opacity: 0;
    animation: nxs-fade-in 0.4s ease-out forwards;
}

.nxs-links .nxs-link-card:nth-child(1) { animation-delay: 0.1s; }
.nxs-links .nxs-link-card:nth-child(2) { animation-delay: 0.15s; }
.nxs-links .nxs-link-card:nth-child(3) { animation-delay: 0.2s; }
.nxs-links .nxs-link-card:nth-child(4) { animation-delay: 0.25s; }
.nxs-links .nxs-link-card:nth-child(5) { animation-delay: 0.3s; }
.nxs-links .nxs-link-card:nth-child(6) { animation-delay: 0.35s; }
.nxs-links .nxs-link-card:nth-child(7) { animation-delay: 0.4s; }
.nxs-links .nxs-link-card:nth-child(8) { animation-delay: 0.45s; }
.nxs-links .nxs-link-card:nth-child(9) { animation-delay: 0.5s; }
.nxs-links .nxs-link-card:nth-child(10) { animation-delay: 0.55s; }
