@import url('https://googleapis.com');

/* Глобальные настройки */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #0b0e14 !important; /* Глубокий темный фон */
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Шапка (Header) */
.header {
    background: #151921 !important;
    padding: 15px 0;
    border-bottom: 1px solid #242b37;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-weight: 800; 
    font-size: 1.6rem; 
    text-decoration: none; 
    color: #fff !important; 
    letter-spacing: -1px;
}
.logo span { color: #ff3300 !important; }

.nav-links { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-links a { 
    text-decoration: none; 
    color: #94a3b8 !important; 
    font-weight: 600; 
    font-size: 0.9rem;
    transition: 0.3s;
}
.nav-links a:hover { color: #fff !important; }

/* Карточки игр (Main) */
.game-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
    padding: 40px 0; 
}

.game-card { 
    background: #151921 !important; 
    border-radius: 16px; 
    border: 1px solid #242b37; 
    overflow: hidden; 
    transition: 0.3s ease;
}

.game-card:hover { 
    transform: translateY(-8px); 
    border-color: #ff3300; 
}

.game-info { padding: 20px; }
.game-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.price { font-weight: 800; color: #4ade80; font-size: 1.1rem; }

/* Формы (Login / Reg / Add Game) */
.auth-box { 
    background: #151921 !important; 
    padding: 40px; 
    border-radius: 24px; 
    border: 1px solid #242b37; 
    max-width: 450px; 
    margin: 60px auto; 
    text-align: center;
}

.form-main input, .form-main textarea {
    background: #0b0e14 !important;
    border: 1px solid #242b37 !important;
    color: #fff !important;
    padding: 14px;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 15px;
    font-family: inherit;
}

/* Кнопки */
.btn-primary {
    background: #ff3300 !important;
    color: #fff !important;
    border: none;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover { opacity: 0.8; }

.btn-sm {
    background: #ff3300;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

/* Футер */
.footer {
    text-align: center;
    padding: 40px;
    color: #444;
    border-top: 1px solid #222;
    margin-top: 50px;
}
