/* ==========================================
   QBET - Main Stylesheet
   Единый файл стилей для всего сайта
   ========================================== */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary: #4ade80;
    --primary-dark: #22c55e;
    --bg-dark: #0a0a0a;
    --bg-medium: #111111;
    --bg-light: #1a1a1a;
    --text-white: #ffffff;
    --text-muted: #888888;
    --gold: #ffd700;
    --orange: #f97316;
    --red: #ef4444;
    --blue: #3b82f6;
    --purple: #a855f7;
    
    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 35px;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

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

ul, ol {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header-main {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

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

.logo {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-main {
    display: flex;
    gap: 35px;
}

.nav-main a {
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    transition: color 0.3s;
}

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

.nav-main a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

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

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-login {
    color: var(--text-white);
    border-color: rgba(255,255,255,0.2);
}

.btn-login:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
}

.btn-register {
    background: var(--primary);
    color: #0d0d0d;
}

.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(74, 222, 128, 0.15), transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(74, 222, 128, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-text {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-text a {
    color: var(--primary);
    text-decoration: underline;
}

.hero-text a:hover {
    color: var(--primary-dark);
}

/* ===== CTA Button ===== */
.cta-button {
    background: var(--primary);
    color: #0d0d0d;
    padding: 20px 60px;
    border-radius: 35px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 222, 128, 0.4);
}

/* ===== Content Links ===== */
.content-link {
    color: var(--primary);
    text-decoration: underline;
    transition: all 0.3s;
}

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

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-text {
    text-align: center;
    color: var(--text-muted);
    max-width: 850px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.9;
}

/* ===== Cards ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.card {
    background: var(--bg-medium);
    border-radius: 25px;
    padding: 45px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(74, 222, 128, 0.2);
}

.card-icon {
    font-size: 56px;
    margin-bottom: 25px;
}

.card h3 {
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--text-white);
}

.card-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

/* ===== Games Grid ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.game-preview,
.game-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.game-preview:hover,
.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.game-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.game-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-provider {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.game-rtp {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

/* ===== Footer ===== */
.footer-main,
.footer {
    background: var(--bg-medium);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(74, 222, 128, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h4 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 700;
}

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

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

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-main {
        display: none;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}