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

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: white;
    background: #000;
}

/* --- ТВОЙ ФОН ТУТ --- */
.bg-image {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    
    /* Твоя ссылка уже здесь 👇 */
    background: url('https://i.postimg.cc/bJf25H8K/1935b3edfa6b9e259600c18311eaf97a.jpg') no-repeat center center/cover;
    
    z-index: -2;
}

/* Затемнение, чтобы текст читался */
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* Полупрозрачная темнота */
    backdrop-filter: blur(5px);   /* Размытие фона */
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Анимации */
.fade-in { animation: fadeIn 1s; }
.slide-up { animation: slideUp 0.7s forwards; opacity: 0; transform: translateY(20px); }

@keyframes fadeIn { from {opacity:0} to {opacity:1} }
@keyframes slideUp { to {opacity:1; transform: translateY(0)} }

/* Стеклянный эффект (Glassmorphism) */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Поиск */
header { margin-top: 50px; margin-bottom: 30px; }
.logo { font-size: 2.5em; font-weight: bold; margin-bottom: 20px; text-shadow: 0 0 10px #66c0f4; }

.search-box { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

input {
    padding: 15px;
    width: 300px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    outline: none;
    background: rgba(0,0,0,0.3);
    color: white;
    backdrop-filter: blur(5px);
    font-size: 1rem;
    transition: 0.3s;
}
input:focus { background: rgba(0,0,0,0.5); border-color: #66c0f4; box-shadow: 0 0 15px rgba(102, 192, 244, 0.5); }

button {
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    background: #66c0f4;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}
button:hover { transform: scale(1.05); box-shadow: 0 0 20px #66c0f4; }

/* Профиль */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    margin-top: 30px;
    text-align: left;
    border-left: 5px solid #66c0f4;
}
.avatar { width: 110px; height: 110px; border-radius: 50%; border: 3px solid #66c0f4; box-shadow: 0 0 20px rgba(102,192,244,0.4); }
.profile-info h1 { margin: 0 0 10px 0; font-size: 2.2em; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
    background: rgba(0,0,0,0.6);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.9em;
    border: 1px solid rgba(255,255,255,0.1);
}

.steam-link {
    display: inline-block;
    margin-top: 15px;
    color: #66c0f4;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.steam-link:hover { color: white; text-shadow: 0 0 10px #66c0f4; }

/* Статистика (Карточки) */
.stats-grid { display: flex; gap: 20px; margin: 30px 0; flex-wrap: wrap; }
.stat-card {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    transition: 0.3s;
    text-align: center;
}
.stat-card:hover { transform: translateY(-7px); background: rgba(255,255,255,0.15); }
.stat-card h3 { margin: 0 0 10px 0; font-size: 1em; color: #ccc; }
.stat-card .value { font-size: 2em; font-weight: bold; color: white; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

/* Вкладки */
.tabs { margin: 30px 0; display: flex; justify-content: center; gap: 10px; }
.tab-btn {
    background: transparent;
    color: white;
    border: 2px solid #66c0f4;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.tab-btn:hover { background: rgba(102, 192, 244, 0.2); }
.tab-btn.active { background: #66c0f4; color: black; box-shadow: 0 0 15px #66c0f4; }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s; }

/* Сетка игр */
.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}
.game-card {
    padding: 15px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.game-card:hover { transform: scale(1.05); background: rgba(255,255,255,0.2); }
.game-card img { width: 100%; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.game-card b { display: block; margin-bottom: 5px; font-size: 0.9em; line-height: 1.2; }

/* Список библиотеки */
.all-games-list { text-align: left; margin-top: 20px; }
.lib-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    transition: 0.2s;
}
.lib-row:hover { background: rgba(255,255,255,0.2); transform: translateX(5px); }
.lib-row img { width: 50px; border-radius: 5px; }

/* Загрузка и Ошибки */
.loader {
    border: 5px solid rgba(255,255,255,0.1);
    border-top: 5px solid #66c0f4;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
    box-shadow: 0 0 20px rgba(102, 192, 244, 0.3);
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.error { color: #ff5555; margin-top: 20px; font-weight: bold; background: rgba(0,0,0,0.5); padding: 10px; border-radius: 10px; display: inline-block; }
