/* =========================================
   Design System: Cyber-Urushi Modern
   ========================================= */
:root {
    --bg-dark: #0a0a0b;
    --accent-red: #e63946;
    --accent-gold: #d4af37;
    --glass-bg: rgba(20, 20, 25, 0.95);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --sidebar-width: 260px;
    --font-jp: 'Noto Serif JP', serif;
    --font-en: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-en), var(--font-jp);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background */
.urushi-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.05) 0%, transparent 80%),
                linear-gradient(135deg, #0a0a0b 0%, #1a1a1d 100%);
    z-index: -1;
}

/* Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar (Abe Hiroshi Inspired) */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    background: var(--glass-bg);
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 3rem 0;
}

.favicon-container {
    padding: 0 3rem;
    margin-bottom: 4rem;
}

.top-left-favicon {
    width: 75px;
    height: 75px;
    border-radius: 14px;
    border: 2px solid var(--accent-red);
    box-shadow: 0 0 25px rgba(230, 57, 70, 0.35);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.top-left-favicon:hover { transform: scale(1.1) rotate(5deg); }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    padding: 1.2rem 3rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
}

.nav-item:hover, .nav-item.active {
    color: var(--accent-red);
    background: rgba(230, 57, 70, 0.1);
    border-left-color: var(--accent-red);
    padding-left: 3.5rem;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
}

.page-view {
    width: 100%;
    max-width: 1200px;
    display: none;
    animation: fadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.page-view.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Centered Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 6rem;
    padding-top: 2rem;
}

.romaji {
    font-size: 0.9rem;
    letter-spacing: 0.8rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
}

.kanji {
    font-size: 6rem;
    font-family: var(--font-jp);
    font-weight: 700;
    background: linear-gradient(to bottom, #ffffff 40%, #777777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.1));
}

/* Game Cards */
.games-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
    width: 100%;
}

.game-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-inner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.card-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(255, 255, 255, 0.05) 40%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.05) 60%, 
        transparent
    );
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.game-card:hover .card-inner {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-red);
    background: rgba(230, 57, 70, 0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.game-card:hover .card-inner::before {
    left: 100%;
}

.game-tag {
    font-size: 0.7rem;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.card-body h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.card-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.card-footer {
    margin-top: auto;
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 3px;
}

.arrow-icon {
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}

.game-card:hover .arrow-icon { transform: translateX(12px); }

/* About Section */
.about-section {
    padding: 5rem;
    min-height: 40vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-text {
    font-family: var(--font-jp);
    color: var(--text-primary);
    font-size: 2rem;
    text-align: center;
    line-height: 1.5;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    :root {
        --sidebar-width: 100px;
    }
    .favicon-container { padding: 0 10px; }
    .top-left-favicon { width: 60px; height: 60px; }
    .nav-item { font-size: 0.7rem; padding: 1.5rem 0.5rem; text-align: center; letter-spacing: 1px; }
    .main-content { margin-left: var(--sidebar-width); padding: 3rem 1.5rem; }
    .kanji { font-size: 3rem; }
    .logo-section { margin-bottom: 4rem; }
    .games-section { grid-template-columns: 1fr; }
}
