@import url('assets/fonts/fonts.css');

:root {
    --color-bg: #1a1a1a;
    --primary-color: #fff;
    --color-border: #212121;
    --spacing-frame-x: 40px;
    --spacing-frame-y: 44px;
    --nav-transition: color 0.8s ease;
    --visual-background: url('assets/img/jp-design.jpg');
    --glow-color: transparent;
}

body {
    background: var(--color-bg);
    color: #fff;
    margin: 0;
    font-family: 'Raleway';
    font-weight: 400;
    overflow: hidden;
}

h1 {
    font-family: 'PPEiko';
    font-size: 32px;
    margin: 0 0 12px 0;
    color: var(--primary-color);
    transition: var(--nav-transition);
    text-shadow: 0 0 20px var(--glow-color);
}

.bg-visual {
    z-index: 0;
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.8s ease;
}

.bg-video {
    z-index: 0;
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    transition: opacity 0.6s ease;
}

.bg-video.active {
    opacity: 0.3;
}

.bg-visual.active {
    opacity: 0.3;
}

.bg-mask {
    z-index: 0;
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    height: 100%;
    background: radial-gradient(circle farthest-corner at right,
        transparent 5%,
        rgba(26, 26, 26, 0.5) 55%,
        var(--color-bg) 75%
    );
}

.container {
    z-index: 1;
    position: relative;
    height: calc(100vh - (var(--spacing-frame-y) * 2));
    margin: var(--spacing-frame-y) var(--spacing-frame-x);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto 1fr;
    overflow: visible;
}

.nav-group {
    grid-row: 1;
    grid-column: 1 / 3;
    align-self: start;
    margin-left: calc(var(--spacing-frame-x) * 4.5);
    margin-top: calc(var(--spacing-frame-y) * 1.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 38px;
}

.icon {
    width: fit-content;
    height: 32px;
    text-align: center;
    font-family: 'Iansui';
    color: var(--primary-color);
    font-size: 32px;
    transition: var(--nav-transition);
    text-shadow: 0 0 40px var(--glow-color);
}

nav {
    width: fit-content;
    display: flex;
    justify-content: center;
    gap: 0px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px 48px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(200%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 0 18px var(--glow-color);
    transition: box-shadow 0.8s ease;
    position: relative;
}

nav::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    left: var(--slider-left, 0px);
    width: 0;
    height: 70%;
    background: color-mix(in srgb, var(--glow-color) 20%, transparent);
    box-shadow: 0 0 12px var(--glow-color);
    border-radius: 8px;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

nav:has(a:hover)::before {
    width: var(--slider-width, 0px);
    opacity: 1;
    transition: width 0.3s ease, opacity 0.3s ease, left var(--left-duration, 0s) ease;
}

nav a {
    align-self: center;
    color: #fff;
    text-decoration: none;
    font-family: 'Raleway';
    font-weight: 400;
    font-size: 16px;
    padding: 8px 30px;
    transition: opacity 0.3s ease;
}

.content-group {
    grid-row: 2;
    display: flex;
    flex-direction: row;
    gap: var(--spacing-frame-x);
    grid-column: 1 / 4;
    margin-top: calc(var(--spacing-frame-y) * 1.5);
    margin-left: calc(var(--spacing-frame-x) * 3);
}

.chinese-name {
    font-size: 50px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Iansui';
    color: var(--primary-color);
    transition: var(--nav-transition);
    text-shadow: 0 0 40px var(--glow-color);
}

.bio {
    max-width: 520px;
}

.greeting {
    opacity: 80%;
}

.info-text {
    overflow: visible;
    min-width: 0;
}

.info-text p {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.035em;
}

.profile {
    position: absolute;
    z-index: 3;
    right: calc(var(--spacing-frame-x) * 0.5);
    align-self: start;
    margin: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    border-radius: 4px;
    padding: 18px 28px;
    transition: background 0.4s ease, backdrop-filter 0.8s ease;
    width: 240px;
}

.profile:hover {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-bar {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 18px 2px rgba(255, 255, 255, 0.15);
    animation: pulse-pfp 2s ease-in-out infinite;
    animation-play-state: paused;
}

@keyframes pulse-pfp {
    0%, 100% { box-shadow: 0 0 18px 2px rgba(255, 255, 255, 0.15); }
    50% { box-shadow: 0 0 2px rgba(255, 255, 255, 0.05); }
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Raleway';
    gap: 2px;
}

.profile-name {
    font-size: 14px;
    font-weight: 100;
}

.profile-location {
    font-size: 12px;
    font-weight: 100;
}

.status-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'PPEiko';
    font-weight: 100;
    letter-spacing: 0.05em;
}

.activity-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'PPEiko';
    font-weight: 100;
    letter-spacing: 0.05em;
}

.status-info p {
    font-size: 12px;
    line-height: 15px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.status-info {
    padding-bottom: 12px;
}

.profile-expanded {
    max-height: 0;
    overflow: visible;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile:hover .profile-expanded {
    max-height: 400px;
    opacity: 1;
    overflow: visible;
}

.activity-card {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    padding-top: 8px;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.activity-cover {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.activity-primary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-song {
    font-size: 11px;
    font-family: 'Raleway';
    font-weight: 400;
    color: rgba(192, 207, 178, 0.8);
}

.activity-artist {
    font-size: 11px;
    font-family: 'Raleway';
    font-weight: 200;
}

.activity-progress {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 8px 0;
}

.activity-progress-bar {
    width: 0%;
    height: 1px;
    background: rgba(192, 207, 178, 0.8);
    transition: width 0.5s ease;
}

.activity-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 0;
    font-size: 9px;
    font-family: 'Raleway';
    font-weight: 200;
    color: rgba(255, 255, 255, 0.6);
    min-width: 0;
}

.activity-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.activity-genre,
.activity-release {
    text-align: right;
}

.overlay {
    z-index: 2;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.9);
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.profile:hover ~ .overlay {
    opacity: 1;
}