
/* =========================================
   1. Reset & Variables
   ========================================= */
:root {
    /* Colors */
    --bg-body: #0f1115;
    --bg-card: #1c1f26;
    --bg-header: #15181e;
    --primary: #ff4d4d; /* Red */
    --primary-hover: #ff1a1a;
    --accent: #00e676; /* Green for play */
    --accent-hover: #00b35c;
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --border-color: #2c313a;
    --gradient-main: linear-gradient(135deg, #ff4d4d 0%, #c41c1c 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 15px rgba(255, 77, 77, 0.3);

    /* Typography */
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.25rem;
    --fs-xl: clamp(1.5rem, 5vw, 2.5rem);

    /* Spacing & Layout */
    --container-width: 1200px;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. Typography & Common Elements
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3 {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: var(--fs-xl); }
h2 { font-size: clamp(1.25rem, 3vw, 2rem); margin-top: 2rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: var(--fs-sm);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-red {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
}

.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.6);
}

.btn-green {
    background: var(--accent);
    color: #000;
    font-weight: 800;
}

.btn-green:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.5);
}

.btn-transparent {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-transparent:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   3. Header
   ========================================= */
header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    margin-right: auto;
    /* Placeholder styles for logo if image missing */
    display: flex;
    align-items: center;
}

.logo::before {
    content: 'AZINO';
    color: #fff;
    margin-right: 5px;
}
.logo::after {
    content: '777';
}

.header-separator {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
    margin: 0 1rem;
    display: none; /* Hidden on mobile */
}

@media (min-width: 768px) {
    .header-separator { display: block; }
}

.enter-link {
    cursor: pointer;
    font-weight: 500;
    margin-right: 1rem;
    transition: color 0.3s;
}

.enter-link:hover {
    color: var(--primary);
}

/* Social Login */
.social-enter {
    display: none; /* Often hidden on smaller screens */
    align-items: center;
    margin-left: 1rem;
}

.social-enter span {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

@media (min-width: 992px) {
    .social-enter { display: flex; }
}

.social-list {
    display: flex;
    gap: 0.5rem;
}

.social-list__link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.social-list__link:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.icon-ya::before { content: 'Y'; font-weight: bold; }
.icon-mr::before { content: '@'; font-weight: bold; }
.icon-gp::before { content: 'G'; font-weight: bold; }
.icon-fb::before { content: 'f'; font-weight: bold; }

/* Header Bottom Nav */
.header-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    overflow-x: auto;
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    white-space: nowrap;
    padding: 0 1rem;
}

.header-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--text-main);
}

.header-nav i {
    width: 20px;
    height: 20px;
    background-color: var(--text-muted); /* Placeholder icon */
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

/* Menu Button (Hamburger) */
.menu-button {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: none;
}

.menu-button::before,
.menu-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    left: 0;
}
.menu-button::before { top: 0; box-shadow: 0 9px 0 #fff; }
.menu-button::after { bottom: 0; }

@media (max-width: 991px) {
    .menu-button { display: block; margin-left: 1rem; }
    .header-nav { justify-content: flex-start; }
}

/* =========================================
   4. Side Menu (Off-canvas)
   ========================================= */
.left-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 5px 0 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.left-menu.active { /* JS would add this class */
    transform: translateX(0);
}

.menu-title {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid var(--border-color);
}

.close-menu {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.menu-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-body a {
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.menu-body a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.side-menu__divider {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.menu-header-reg {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* =========================================
   5. Main Banner
   ========================================= */
.main-banner {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: var(--bg-card);
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex; /* Simplified slider view */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.slider-item {
    min-width: 100%;
    scroll-snap-align: start;
    position: relative;
    background: url('placeholder-bg.jpg') center/cover no-repeat, radial-gradient(circle, #2d3442 0%, #0f1115 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.slider-inner {
    max-width: var(--container-width);
    width: 100%;
    display: flex;
    align-items: center;
}

.banner-text-main {
    z-index: 2;
    animation: fadeIn Up 0.8s ease;
}

.banner-text-main span {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.banner-text-main small {
    display: block;
    font-size: 0.5em;
    color: var(--primary);
    margin-top: 0.5rem;
}

.btn-big {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
}

/* =========================================
   6. Filters
   ========================================= */
.filter-wrapper {
    background: var(--bg-card);
    padding: 1rem 0;
    position: sticky;
    top: 60px; /* Below header */
    z-index: 900;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
}

.menu-filter {
    display: flex;
    justify-content: flex-start; /* Better for scroll */
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
    scrollbar-width: none; /* Firefox */
}

.menu-filter::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.menu-filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 80px;
    opacity: 0.7;
    transition: var(--transition);
}

.menu-filter-item:hover,
.menu-filter-item.active {
    opacity: 1;
    transform: translateY(-3px);
}

.menu-filter-item .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.menu-filter-item:hover .icon {
    background: var(--primary);
    box-shadow: var(--shadow-glow);
}

.menu-text {
    font-size: 0.8rem;
    font-weight: 500;
}

/* =========================================
   7. Games Grid
   ========================================= */
.games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .games {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.game-item {
    position: relative;
    aspect-ratio: 16/10;
    background: #252a33;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    z-index: 2;
}

/* Fallback for missing images */
.game-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #252a33, #323844);
    z-index: 0;
}

.game-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    z-index: 1;
}

.game-item:hover .game-hover {
    opacity: 1;
}

.game-hover .btn {
    min-width: 120px;
}

/* =========================================
   8. Content & SEO Text
   ========================================= */
.content-text {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.content-text h1, .content-text h2 {
    color: var(--primary);
}

.content-text ul, .content-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.content-text li {
    margin-bottom: 0.5rem;
}

.content-text blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    background: rgba(255, 77, 77, 0.1);
    padding: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.content-text img {
    border-radius: var(--radius-md);
    max-width: 100%;
}

/* Table of Contents */
.toc_container {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    display: inline-block;
    width: 100%;
}

.toc_title {
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.toc_list li {
    margin-bottom: 0.3rem;
}

.toc_list a, .toc_list span {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

td, th {
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

thead tr {
    background-color: rgba(255,255,255,0.05);
    color: var(--primary);
    font-weight: 700;
}

/* FAQ Accordion */
.accord-block {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.accord-block-header {
    padding: 1rem 0;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
    color: var(--text-main);
    transition: color 0.3s;
}

.accord-block-header:hover {
    color: var(--primary);
}

.accord-block-header::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.accord-block-content {
    /* Simple display for no-js situation, normally hidden */
    padding-bottom: 1rem;
    color: var(--text-muted);
}

/* =========================================
   9. Winners Section
   ========================================= */
.winners {
    background: var(--bg-header);
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.winners-slider {
    display: flex;
    gap: 2rem;
    animation: scrollTicker 30s linear infinite;
    width: max-content;
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.winners .slider-item {
    background: transparent;
    padding: 0;
    min-width: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.02);
}

.winners-info {
    font-size: 0.85rem;
    white-space: nowrap;
}

.winners-info span {
    color: var(--primary);
    font-weight: 700;
}

.win_sum {
    color: var(--accent) !important;
}

/* =========================================
   10. Footer
   ========================================= */
.footer {
    background: #000;
    padding: 3rem 1rem;
    margin-top: auto;
    border-top: 2px solid var(--primary);
}

.footer-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-menu a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-menu a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.footer-developers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0.5;
}

/* Back to Top */
.btnTop_wrap {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
}

.btnTop {
    display: flex;
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.btnTop:hover {
    transform: translateY(-5px);
    background: var(--gradient-main);
}

.arrow-top {
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(-135deg);
    margin-top: 5px;
}

/* =========================================
   11. Animations
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes Up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Input/Form styling just in case */
input[type="text"], 
input[type="email"], 
input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    margin-bottom: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
}
