
:root {
    --primary: #8a2be2;
    --accent: #00f2ff;
    --bg-dark: #0b0b0e;
    --card-bg: #1a1a20;
    --text-main: #e0e0e0;
    --text-muted: #888;
    --status-ok: #00ff88;
    --radius: 12px; 
}


* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(26, 26, 32, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.logo { font-size: 1.5rem; font-weight: bold; }
.logo span { color: var(--primary); }

nav ul { display: flex; list-style: none; gap: 20px; }
nav ul li a { color: var(--text-main); text-decoration: none; transition: 0.3s; }
nav ul li a:hover, nav ul li a.active { color: var(--accent); }


.hero {
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

.signup-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid #333;
    width: 100%;
    max-width: 500px;
    margin: 2rem 0;
}


.store-container { padding: 40px 5%; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s transform ease;
    border: 1px solid #333;
}

.game-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary); 
}

.img-container { position: relative; height: 250px; }
.img-container img { width: 100%; height: 100%; object-fit: cover; }

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(138, 43, 226, 0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s; font-weight: bold;
}

.game-card:hover .overlay { opacity: 1; }

.card-info { padding: 20px; }
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}


.admin-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end;
    padding: 40px 5% 20px; 
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 5% 40px;
}

.stat-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}


.table-wrapper { 
    margin: 0 5% 50px; 
    background: var(--card-bg); 
    border-radius: var(--radius); 
    border: 1px solid #333; 
    overflow-x: auto;
}

.db-table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 800px; 
}

.db-table th { 
    background: #25252d; 
    color: var(--primary); 
    padding: 18px 15px; 
    text-align: left; 
    font-size: 0.75rem; 
    text-transform: uppercase;
}

.db-table td { 
    padding: 15px; 
    border-bottom: 1px solid #2a2a32; 
}


.btn-primary, .btn-secondary, .add-btn {
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
}

.btn-primary:hover { background: var(--accent); color: var(--bg-dark); }

.btn-secondary {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 25px;
    border-radius: 6px;
    margin-top: 10px;
}

.btn-secondary:hover { background: rgba(0, 242, 255, 0.1); }

.add-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.edit-btn {
    background: transparent;
    border: 1px solid #444;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
}


.input-group { display: flex; gap: 10px; margin-bottom: 15px; }
input {
    flex: 1;
    background: #0b0b0e;
    border: 1px solid #444;
    padding: 12px 15px;
    border-radius: 6px;
    color: white;
}
input:focus { border-color: var(--accent); outline: none; }


.game-id { font-family: monospace; color: var(--accent); }
.tag { background: #25252d; padding: 2px 8px; border-radius: 4px; color: var(--accent); font-size: 0.8rem; }