/* --- CORE TYPOGRAPHY & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@400;700;900&display=swap');

/* --- GLOBAL CONTAINER --- */
.custom-portfolio-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif; 
    background-color: #f0f0f0; 
    color: #000;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.font-mono { font-family: 'JetBrains Mono', monospace; }

/* --- MAIN LAYOUT GRID --- */
.main-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile default: Stacked */
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .main-grid {
        /* Desktop: Fixed Sidebar (300px) | Fluid Content (1fr) */
        grid-template-columns: 300px 1fr; 
        align-items: start;
    }
}

/* --- SIDEBAR --- */
.sidebar-area {
    background-color: #f0f0f0;
    padding: 2rem;
    border-right: 4px solid black;
    height: auto;
}

@media (min-width: 1024px) {
    .sidebar-area {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto; 
    }
}

/* --- CONTENT AREA --- */
.content-area {
    padding: 2rem;
    width: 100%;
    box-sizing: border-box; 
}

/* --- GAMES GRID (HOME) --- */
.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1600px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- COMPONENT: BOXES & CARDS --- */
.neo-box {
    background: white;
    border: 4px solid black;
    box-shadow: 8px 8px 0px 0px rgba(0,0,0,1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.neo-card {
    border: 4px solid black;
    padding: 1.5rem;
    box-shadow: 8px 8px 0px 0px rgba(0,0,0,1);
    transition: transform 0.1s, box-shadow 0.1s;
    cursor: pointer;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background-color: white; 
}

.neo-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 12px 12px 0px 0px rgba(0,0,0,1);
}

.neo-card:active {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,1);
}

/* --- COMPONENT: BUTTONS --- */
.neo-btn {
    width: 100%;
    padding: 1rem;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    font-size: 1.125rem;
    cursor: pointer;
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,1);
    transition: all 0.2s;
    margin-bottom: 0.75rem;
    background-color: white;
    color: black;
    text-decoration: none;
}

.neo-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px rgba(0,0,0,1);
}

.neo-btn.active {
    background-color: black;
    color: white;
}

.neo-btn.inactive {
    background-color: white;
    color: black;
}

/* --- DETAIL PAGE SPECIFIC --- */
.detail-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1280px) {
    .detail-container {
        grid-template-columns: 1fr 350px; 
        align-items: start;
    }
}

/* --- COLORS --- */
.bg-purple { background-color: #d8b4fe; }
.bg-green { background-color: #86efac; }
.bg-yellow { background-color: #fde047; }
.bg-teal { background-color: #5eead4; }
.bg-orange { background-color: #fdba74; }
.bg-red { background-color: #fca5a5; }
.bg-blue { background-color: #93c5fd; }
.bg-white { background-color: #ffffff; }

/* --- UTILITIES --- */
.tag {
    font-size: 0.75rem;
    font-weight: bold;
    background-color: rgba(0,0,0,0.1);
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
}

.hidden { display: none !important; }

svg { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }