/* MAPLE NEXUS v12.0 MASTER STYLES */

:root {
    --maple-orange: #ff9800;
    --nexus-blue: #00d2ff;
    --nexus-purple: #9d50bb;
    --glass-bg: rgba(0, 0, 0, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
@keyframes scanline { 0% { top: -100%; } 100% { top: 100%; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background: #050505 url('maple_remaster_bg_1776955047702.png') no-repeat center center fixed;
    background-size: cover; color: var(--text-white); font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    min-height: 100vh; overflow-x: hidden;
}

/* 1. Integrated Navigation (Nexus Nav) */
.nexus-wrapper { display: flex; min-height: 100vh; }

.nexus-nav { 
    width: 250px; background: rgba(0,0,0,0.85); backdrop-filter: blur(30px);
    border-right: 1px solid var(--glass-border); padding: 40px 20px;
    display: flex; flex-direction: column; gap: 40px; position: fixed; height: 100vh; z-index: 1000;
}
.nav-logo { font-family: 'Press Start 2P'; font-size: 18px; letter-spacing: -1px; }
.nav-logo span { display: block; font-size: 8px; color: var(--maple-orange); margin-top: 5px; }

.nav-items { display: flex; flex-direction: column; gap: 10px; }
.nav-btn { 
    background: none; border: none; color: rgba(255,255,255,0.4); 
    display: flex; align-items: center; gap: 15px; padding: 15px; border-radius: 12px;
    font-size: 14px; font-weight: 900; cursor: pointer; transition: var(--transition);
}
.nav-btn i { font-size: 20px; }
.nav-btn.active { background: rgba(255,255,255,0.05); color: var(--maple-orange); box-shadow: inset 0 0 10px rgba(0,0,0,0.5); }
.nav-btn:hover { color: #fff; background: rgba(255,255,255,0.03); }

/* 2. Main Content Area */
.nexus-content { flex: 1; margin-left: 250px; padding: 40px; max-width: 1200px; }
.main-view { display: none; animation: view-fade-in 0.6s var(--transition); }
.main-view.active { display: block; }

@keyframes view-fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.view-header h1 { font-size: 42px; font-weight: 900; letter-spacing: -1px; }
.view-header p { opacity: 0.5; font-size: 14px; margin-bottom: 30px; }

/* 3. Nexus Grid & Glass Box */
.nexus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.glass-box { 
    background: var(--glass-bg); border: 1px solid var(--glass-border); 
    border-radius: 20px; overflow: hidden; position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.box-header { 
    padding: 15px 25px; background: rgba(255,255,255,0.03); 
    border-bottom: 1px solid var(--glass-border); font-size: 12px; font-weight: 900;
    color: var(--maple-orange); display: flex; align-items: center; gap: 10px;
}
.box-body { padding: 25px; }
.scroll-list { max-height: 400px; overflow-y: auto; }

/* 4. Character Dashboard Specials */
.nexus-search-bar { 
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    border-radius: 100px; display: flex; padding: 5px; margin-bottom: 40px;
}
.nexus-search-bar input { flex: 1; background: none; border: none; padding: 15px 25px; color: #fff; font-size: 18px; font-weight: 900; outline: none; }
.nexus-search-bar button { width: 60px; height: 60px; border-radius: 50%; background: var(--maple-orange); border: none; color: #fff; cursor: pointer; }

.nexus-sub-tabs { display: flex; gap: 10px; margin-bottom: 25px; overflow-x: auto; padding-bottom: 10px; }
.sub-tab { 
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    color: #fff; padding: 12px 25px; border-radius: 12px; font-weight: 900; cursor: pointer; transition: 0.3s;
    font-size: 12px; white-space: nowrap;
}
.sub-tab.active { background: #fff; color: #000; }

.sub-pane { display: none; animation: fadeInUp 0.4s ease; }
.sub-pane.active { display: block; }

/* Profile Hero */
.profile-hero { display: flex; align-items: center; gap: 30px; padding: 40px; margin-bottom: 25px; }
.hero-avatar { width: 120px; border-radius: 20px; filter: drop-shadow(0 0 20px rgba(0,0,0,1)); animation: float 4s ease-in-out infinite; }
.hero-info h2 { font-size: 48px; font-weight: 900; }

/* Asset Grid (Items/Skills) */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.asset-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 12px; border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.asset-item img { width: 32px; height: 32px; border-radius: 6px; background: rgba(0,0,0,0.5); }

/* Table Master */
.nexus-table { width: 100%; border-collapse: collapse; }
.nexus-table th { text-align: left; padding: 15px 25px; font-size: 10px; opacity: 0.4; }
.nexus-table td { padding: 15px 25px; font-weight: 900; border-bottom: 1px solid var(--glass-border); }

/* Responsive Mobile Fix */
@media (max-width: 1024px) {
    .nexus-nav { 
        width: 100%; height: 70px; flex-direction: row; bottom: 0; top: auto; 
        padding: 5px 20px; border-right: none; border-top: 1px solid var(--glass-border);
        justify-content: center; gap: 10px;
    }
    .nav-logo { display: none; }
    .nav-items { flex-direction: row; width: 100%; justify-content: space-around; }
    .nav-btn span { display: none; }
    .nexus-content { margin-left: 0; padding-bottom: 100px; padding: 20px; }
    .nexus-grid { grid-template-columns: 1fr; }
    .profile-hero { flex-direction: column; text-align: center; }
}

/* Utils */
.loader { position: fixed; inset: 0; background: #050505; z-index: 9999; display: flex; justify-content: center; align-items: center; color: var(--maple-orange); font-family: 'Press Start 2P'; font-size: 8px; }
.leaf-container { position: fixed; inset: 0; pointer-events: none; z-index: 10; overflow: hidden; opacity: 0.3; }
.leaf { position: absolute; background: #e64a19; clip-path: polygon(50% 0%, 100% 100%, 0% 100%); animation: leaf-fall var(--duration) linear infinite; }
@keyframes leaf-fall { from { transform: translateY(-10vh) rotate(0); } to { transform: translateY(110vh) rotate(720deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(20px); z-index: 5000; display: none; justify-content: center; align-items: center; padding: 20px; }
.modal.active { display: flex; }
.modal-content { max-width: 800px; width: 100%; max-height: 80vh; }
.modal-scroll { overflow-y: auto; max-height: 60vh; }
.close-btn { background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; }
