
:root {
    /* Цветовая палитра */
    --bg-body: #0f111a;
    --bg-panel: #1a1d2c;
    --bg-card: #23273a;
    --bg-card-hover: #2c3146;
    --bg-input: #151824;
    
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    
    --secondary-color: #10b981;
    --secondary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    --accent-gold: #f59e0b;
    --accent-red: #ef4444;
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    
    --border-color: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(79, 70, 229, 0.3);
    
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --sidebar-width: 5rem; /* Компактный сайдбар по умолчанию */
    --header-height: 4.5rem;
}

/* Сброс и Базовые стили */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    background: none;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

/* Layout Grid System (Mini Bootstrap-like implementation) */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
}

[class*="col-"] {
    padding: 0.5rem;
    width: 100%;
}

@media (min-width: 576px) {
    .col-sm { flex: 1; }
    .col-sm-auto { width: auto; }
    .col-sm-2 { width: 16.666%; }
    .col-sm-3 { width: 25%; }
}

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333%; }
    .col-md-8 { width: 66.666%; }
    .col-md-2 { width: 16.666%; }
}

@media (min-width: 992px) {
    .col-lg-2 { width: 16.666%; }
}

.col-6 { width: 50%; }
.col-12 { width: 100%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }
.col-2 { width: 16.666%; }
.col-1 { width: 8.333%; }

/* Утилиты Flexbox */
.d-none { display: none !important; }
.align-items-center { align-items: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
@media (min-width: 576px) { .d-sm-block { display: block !important; } }
@media (min-width: 992px) { .d-lg-block { display: block !important; } }

/* Структура приложения */
#card-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.siteContent {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

@media (min-width: 768px) {
    .siteContent {
        padding-left: var(--sidebar-width);
    }
}

.siteContent-wrapper {
    flex: 1;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 2rem;
}

/* Header */
.siteContent__header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(26, 29, 44, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    box-shadow: var(--shadow-md);
}

.header-logo {
    display: block;
    width: 3rem;
    height: 3rem;
    background: url('/img/logo.svg') no-repeat center/contain; /* Fallback styles provided */
    background-color: var(--primary-color);
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40"/></svg>');
    margin-right: 2rem;
    border-radius: 50%;
}

.header-auto-margin {
    flex: 1;
}

.header-menu {
    display: none; /* Скрыто на мобильных по умолчанию */
}

@media (min-width: 1024px) {
    .header-menu {
        display: flex;
        gap: 1.5rem;
    }
    
    .header-menu-item {
        color: var(--text-muted);
        font-weight: 500;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .header-menu-item:hover, .header-menu-item.nuxt-link-active {
        color: var(--text-main);
        text-shadow: 0 0 10px rgba(255,255,255,0.3);
    }
}

/* Buttons */
.superButton {
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.superButton span {
    position: relative;
    z-index: 1;
}

.superButton:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.superButton:active {
    transform: translateY(0);
}

.superButton_blue {
    background: var(--primary-gradient);
    border: none;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    margin-right: 1rem;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    z-index: 90;
    overflow-y: auto;
    display: none; /* Mobile handling */
}

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

.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0.5rem;
}

.sidebar-item {
    display: flex;
    justify-content: center;
}

.sidebar-link {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: transparent;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

/* Имитация иконок для примера, так как изображения внешние */
.sidebar-link__image, .header-menu-item__image {
    width: 24px;
    height: 24px;
    background-color: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

/* Hero Section */
.index-h1 {
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.index-description {
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.index-slider {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    height: 300px; /* Фиксированная высота для примера */
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.index-slider-carousel__wrapper {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--bg-panel), var(--bg-card-hover));
}

.index-static-banner {
    background: var(--secondary-gradient);
    border-radius: var(--radius-md);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.index-static-banner:hover {
    transform: scale(1.02);
}

/* Game Cards Grid */
.default-game-card, .casino-game-card {
    display: block;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    margin-bottom: 1rem;
    transition: var(--transition);
    aspect-ratio: 3/4; /* Современное соотношение сторон */
    border: 1px solid var(--border-color);
}

.default-game-card:hover, .casino-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-color: var(--primary-color);
}

.default-game-card__inner, .casino-game-card__inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.default-game-card__image, .casino-game-card__image {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.default-game-card:hover .default-game-card__image, 
.casino-game-card:hover .casino-game-card__image {
    transform: scale(1.1);
}

.casino-game-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 26, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 1rem;
    text-align: center;
}

.casino-game-card:hover .casino-game-card__overlay {
    opacity: 1;
}

.casino-game-card__overlay-name {
    font-weight: 700;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.casino-game-card:hover .casino-game-card__overlay-name {
    transform: translateY(0);
}

.casino-game-card__overlay-button {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.casino-game-card__overlay-button.play {
    background: var(--primary-gradient);
    color: white;
}

.casino-game-card__overlay-button.demo {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-muted);
}

.casino-game-card__overlay-button:hover {
    transform: scale(1.05);
}

/* Labels */
.header-menu-item__new-label, .default-game-card__new-label {
    background: var(--accent-red);
    color: white;
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
}

/* Winners Table */
.index-wins {
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
}

.index-wins-header {
    margin-bottom: 1.5rem;
}

.index-wins-table-tabs {
    display: flex;
    background: var(--bg-body);
    padding: 0.25rem;
    border-radius: var(--radius-md);
}

.index-wins-table-tabs__item {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.index-wins-table-tabs__item_active {
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.userTable {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.userTable:first-child {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

.userInfoTable__wrap .userTable:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Footer */
.siteContent__footer {
    background: var(--bg-panel);
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.global-stats-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.global-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.global-stats__item-value {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.global-stats__item-value span {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.global-stats__item-value strong {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: linear-gradient(to right, var(--primary-color), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-policies {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

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

.footer-policies a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    color: rgba(255,255,255,0.2);
    font-size: 0.75rem;
    margin-top: 2rem;
}

/* Animations & Effects */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loaderThink {
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* SEO Text Block */
.index-seo {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.index-seo h2 {
    color: var(--text-main);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .siteContent-wrapper {
        padding-top: var(--header-height);
    }
    
    .index-h1 {
        text-align: center;
    }
    
    .index-description {
        text-align: center;
    }
    
    .header-buttons .header-login-button span,
    .header-buttons .header-register-button span {
        display: none; /* Show icon only or simplify on very small screens if needed, here keeping structure but potentially hiding text if overcrowded */
    }
    
    .header-buttons .superButton {
        padding: 0.5rem;
    }
    
    .header-buttons .superButton span {
        display: block; /* Revert hiding if space allows, usually mobile headers hide labels */
        font-size: 0.8rem;
    }
}
