@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* ==========================================================================
   THEME COLOURS
   ========================================================================== */

:root, html[data-theme="purple"] {
    --steam-dark: #251d33;
    --steam-sidebar: #4c3b63;
    --steam-blue: #8467a9;
    --text-light: #e5e0eb;
    --text-muted: #958ba3;
    --steam-black: #171221;
    --steam-card-bg: #2d243d;
    --grad-top: #3b2e50;
}

html[data-theme="steam"] {
    --steam-dark: #1b2838;       
    --steam-sidebar: #2a475e;    
    --steam-blue: #66c0f4;       
    --text-light: #c6d4df;       
    --text-muted: #8f98a0;       
    --steam-black: #171d24;      
    --steam-card-bg: #202c39;    
    --grad-top: #2a4054;
}

html[data-theme="bpink"] {
    --steam-dark: #fcaec1;
    --steam-sidebar: #ffcbd7;
    --text-light: #2b161c;
	--steam-blue: #70404c;
    --text-muted: #70404c;
    --steam-black: #f59eb3;
    --steam-card-bg: #ffe0e7;
    --grad-top: #ffdce4;
}

/* ==========================================================================
   EVERYTHING ELSE
   ========================================================================== */

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--steam-dark);
    color: var(--text-light);
    display: flex;
    height: 100vh;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar {
    width: 200px;
    background-color: var(--steam-black);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease;
}

.sidebar-header {
    padding: 20px 20px 10px 20px;
    font-size: 0.8em;
    font-weight: bold;
    color: var(--steam-blue);
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.main-view {
    flex: 1;
    display: flex;
    position: relative;
    flex-direction: column;
    background: linear-gradient(to bottom, var(--grad-top) 0%, var(--steam-dark) 100%);
}

.grid-container {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    padding: 15px;
    overflow-y: auto;
}

.game-card {
    background-color: var(--steam-card-bg);
    border-radius: 4px;
    position: relative;
	cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
