/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a0033 0%, #2d1b4e 50%, #1a0033 100%);
    min-height: 100vh;
}

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

/* Header */
header {
    background: rgba(26, 0, 51, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
}

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

.logo-img {
    height: 50px;
    width: auto;
    max-width: 150px;
}

.header-nav {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 2px solid #8a2be2;
}

.btn-login:hover {
    background: rgba(138, 43, 226, 0.2);
}

.btn-register {
    background: linear-gradient(135deg, #8a2be2 0%, #b026ff 100%);
    color: #fff;
}

.btn-register:hover {
    background: linear-gradient(135deg, #9d3ef3 0%, #c745ff 100%);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #8a2be2 0%, #b026ff 100%);
    color: #fff;
    font-size: 18px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9d3ef3 0%, #c745ff 100%);
    transform: translateY(-2px);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #4a1e7c 0%, #8a2be2 100%);
    overflow: hidden;
}

.banner-link {
    display: block;
    width: 100%;
    position: relative;
    cursor: pointer;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

/* Оновлені Game Categories */
.game-categories {
    padding: 50px 0;
    background: transparent; /* Прибираємо білий фон секції */
}

.categories-grid {
    display: grid;
    /* Робимо сітку гнучкою, щоб на ПК було багато в ряд, а на мобілках — по 3-4 */
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
    justify-items: center;
}

.category-item {
    background: rgba(255, 255, 255, 0.05); /* Ефект темного скла */
    border: 1px solid rgba(138, 43, 226, 0.3); /* Тонка фіолетова рамка */
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    max-width: 120px;
    text-align: center;
    padding: 15px 10px;
    backdrop-filter: blur(5px); /* Розмиття фону за карткою */
}

.category-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(138, 43, 226, 0.2);
    border-color: #00ff88; /* Зміна рамки на неоновий зелений при наведенні */
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2);
}

.category-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.category-item:hover .category-icon {
    transform: rotate(5deg) scale(1.1);
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Щоб іконки не обрізалися, а вписувалися */
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3)); /* Тінь для іконок */
}

.category-item span {
    display: block;
    color: #ffffff; /* Білий текст краще читається на темному */
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Адаптація для мобільних (3 колонки) */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .category-item {
        padding: 10px 5px;
    }
    .category-icon {
        width: 50px;
        height: 50px;
    }
    .category-item span {
        font-size: 11px;
    }
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.content-block {
    background: rgba(255, 255, 255, 0.98);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.content-block h1 {
    color: #1a0033;
    font-size: 42px;
    margin-bottom: 30px;
    border-bottom: 3px solid #8a2be2;
    padding-bottom: 15px;
}

.content-block h2 {
    color: #4a1e7c;
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-block h3 {
    color: #8a2be2;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-block p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.content-block ul,
.content-block ol {
    margin: 20px 0 20px 30px;
}

.content-block li {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

thead {
    background: linear-gradient(135deg, #8a2be2 0%, #b026ff 100%);
    color: #fff;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 18px;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
}

tbody tr:hover {
    background: rgba(138, 43, 226, 0.05);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #8a2be2 0%, #b026ff 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 50px;
    color: #fff;
}

.cta-box h3 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-box p {
    color: #fff;
    font-size: 20px;
    margin-bottom: 25px;
}

/* Footer */
footer {
    background: rgba(26, 0, 51, 0.95);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: #00ff88;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #8a2be2;
}

.footer-bottom {
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .logo-img {
        height: 40px;
    }

    .header-nav {
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .banner-img {
        max-height: 350px;
    }

    .content-block {
        padding: 30px 20px;
    }

    .content-block h1 {
        font-size: 32px;
    }

    .content-block h2 {
        font-size: 26px;
    }

    .content-block h3 {
        font-size: 20px;
    }

    .content-block p,
    .content-block li {
        font-size: 16px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .category-item {
        max-width: 130px;
        padding: 10px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
    }

    .category-item span {
        font-size: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px;
        font-size: 14px;
    }

    .content-block {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .banner-img {
        max-height: 250px;
    }

    .content-block h1 {
        font-size: 28px;
    }

    .cta-box h3 {
        font-size: 24px;
    }

    .cta-box p {
        font-size: 16px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}