/* PS3 XMB Style Design - Restored */
:root {
    --bg-color: #000;
    --text-color: #fff;
    --highlight-color: #00a8ff;
    --icon-size-large: 100px;
    /* Reduced active icons (was 128px) */
    --icon-size-small: 64px;
    /* Reduced inactive icons (was 84px) */
    --font-main: 'Saira', sans-serif;
}

html {
    overflow: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    width: 100%;
}

/* Canvas styling */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: -10;
    pointer-events: none;
}

/* Top Bar */
.top-bar {
    position: absolute;
    top: 30px;
    right: 50px;
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
    font-weight: 300;
    z-index: 100;
}

.online-dot {
    color: #4cd137;
    font-size: 0.8rem;
    margin-right: 5px;
}

/* Interface Container */
.interface-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding-top: 15vh;
    /* Elevated interface to show more items below */
}

/* X Axis (Horizontal Categories) */
.xmb-axis-x {
    display: flex;
    align-items: center;
    gap: 120px;
    padding-left: 20%;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.xmb-item-x {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transform: scale(0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.xmb-item-x.active {
    opacity: 1;
    transform: scale(1.2);
}

.xmb-item-x .icon-container {
    font-size: var(--icon-size-small);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 10;
}

.xmb-item-x .label {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 300;
    display: none;
    position: relative;
    z-index: 10;
}

.xmb-item-x.active .label {
    display: block;
    margin-top: 10px;
    animation: fadeIn 0.5s ease;
}

/* Y Axis (Vertical Items) */
.xmb-axis-y {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.xmb-item-x.active .xmb-axis-y {
    opacity: 1;
    pointer-events: auto;
}

.xmb-item-y {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 400px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    opacity: 0.3;
    filter: blur(3px);
}

.xmb-item-y.active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05) translateX(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    opacity: 1;
    filter: none;
}

.xmb-item-y .thumb {
    width: 60px;
    height: 60px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.xmb-item-y .info h3 {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.xmb-item-y .info p {
    font-size: 0.8rem;
    color: #aaa;
}

/* Content Preview (Right Side) */
.content-preview {
    position: absolute;
    right: 10%;
    bottom: 20%;
    width: 400px;
    text-align: right;
    pointer-events: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.content-preview.visible {
    opacity: 1;
    transform: translateX(0);
}

.content-preview h1 {
    font-size: 3rem;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}