

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f0f1e;
    color: #e0e0ff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo h1 a {
    color: #00ffcc;
    text-decoration: none;
    font-size: 2rem;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-menu a {
    color: #e0e0ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: #00ffcc;
}

/* Footer */
footer {
    background-color: #0a0a14;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-content .logo h2 {
    color: #00ffcc;
}

/* Общие классы */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(45deg, #00ffcc, #00b894);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 204, 0.3);
}
/* ====================== Главная страница ====================== */

/* Hero Slider */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: none;
}

.slide.active {
    opacity: 1;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: rgba(0,255,204,0.7);
    color: #000;
}

.prev { left: 30px; }
.next { right: 30px; }

/* Общие стили блоков */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #00ffcc;
}

.games-grid, .advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: #1a1a2e;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 204, 0.2);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card h3 {
    padding: 15px 20px 5px;
    color: #00ffcc;
}

.game-card p {
    padding: 0 20px 20px;
    color: #bbbbdd;
}

.advantage {
    text-align: center;
    padding: 2rem 1rem;
}

.advantage i {
    font-size: 3.5rem;
    color: #00ffcc;
    margin-bottom: 1rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    color: #ccccdd;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
}
/* ====================== Каталог игр ====================== */

.catalog-section {
    padding: 80px 0;
    background-color: #0a0a14;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

#searchInput {
    padding: 14px 20px;
    width: 380px;
    max-width: 100%;
    border: none;
    border-radius: 50px;
    background-color: #1a1a2e;
    color: #fff;
    font-size: 1.1rem;
}

#searchInput::placeholder {
    color: #888;
}

#genreFilter {
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    background-color: #1a1a2e;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.game-card {
    background-color: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 255, 204, 0.15);
}

.game-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.game-info {
    padding: 18px 20px;
    flex-grow: 1;
}

.game-info h3 {
    color: #00ffcc;
    margin-bottom: 8px;
}

.game-info p {
    color: #bbbbdd;
    font-size: 0.98rem;
    margin-bottom: 12px;
}

.genre-tag {
    display: inline-block;
    background-color: #16213e;
    color: #00ffcc;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.play-btn {
    margin: 0 20px 20px;
    text-align: center;
    width: calc(100% - 40px);
}
/* ====================== Админ-панель ====================== */

.admin-section {
    padding: 60px 0;
}

.admin-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-card {
    position: relative;
}

.admin-actions {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    background: #16213e;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.edit  { background: #00b894; color: white; }
.delete { background: #e74c3c; color: white; }

.add-form {
    max-width: 700px;
    margin: 0 auto;
    background: #1a1a2e;
    padding: 40px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #00ffcc;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #0f0f1e;
    color: white;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}