* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: linear-gradient( #19a6f8 0%, #201df1 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ===== Секция поиска ===== */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-container {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102,126,234,0.3);
}

.search-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.reset-btn {
    padding: 12px 30px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.reset-btn:hover {
    background-color: #5a6268;
}

.search-status {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.search-result-count {
    color: #28a745;
    font-weight: bold;
    padding: 8px;
    background-color: #d4edda;
    border-radius: 20px;
    display: inline-block;
    animation: fadeIn 0.3s ease;
}

.no-results {
    color: #dc3545;
    font-weight: bold;
    padding: 8px;
    background-color: #f8d7da;
    border-radius: 20px;
    display: inline-block;
    animation: fadeIn 0.3s ease;
}

/* Анимация */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Навигация */
.navbar {
    background: rgba(248, 248, 248, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #667eea;
}

.nav-links a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

/* Основной контент */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
}

/* Герой-секция */
.hero {
    text-align: center;
    margin-top: 1rem;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
}

/* Сетка игр */
.games-grid {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.game-card a {
    text-decoration: none;
    color: inherit;
}

.game-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.no-cover {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.game-card h3 {
    padding: 1rem;
    font-size: 1rem;
    text-align: center;
}

.game-genre {
    padding: 0 1rem 1rem;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

/* Профиль */
.profile-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-top: 0.5rem;
}

.profile-games {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.mini-game-card {
    text-align: center;
}

.mini-game-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
}

.mini-game-card p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.recent-reviews {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Страница игры */
.game-page {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.game-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.game-cover-large img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.game-meta {
    color: #666;
    margin: 1rem 0;
}

.game-info{
    display: grid;

}

.game-tabs{
    display: grid;
    grid-template-columns: 2fr;
    grid-column: span 2;
    
}

/* Кнопки магазинов */
.store-links {
    margin: 2rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    margin-right: 1rem;
    height: 50px;
    width: auto;
}

.btn:hover {
    background: #5a67d8;
}

.btn.steam {
    margin: 5px;
    background: #171a21;
}

.btn.steam:hover {
    background: #2a2f3a;
}

.btn.epic {
    margin: 5px;
    background: #2a2a2a;
}

.btn.epic:hover {
    background: #404040;
}

/* Табы */
.game-tabs {
    margin-top: 2rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.tab-btn.active {
    opacity: 1;
    border-bottom: 2px solid #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Формы */
.form-group {
    margin-bottom: 1rem;
}
.form-group-o {
    padding: 10px;
    margin-bottom: 1rem;
    grid: display;
    grid-column: 0;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Отзывы и обсуждения */
.review-item,
.thread-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.rating {
    color: #fd3300;
    font-weight: bold;
}

.date {
    color: #999;
    font-size: 0.9rem;
}

.thread-link {
    text-decoration: none;
    color: inherit;
}

.thread-link h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.btn-delete-review {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #dc3545;
    transition: color 0.2s;
}
.btn-delete-review:hover {
    color: #a71d2a;
}

/* Алерты */
.alert {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Футер */
footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .game-header {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}