/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #131829;
    --bg-card: #1a2038;
    --bg-hover: #242b4d;
    
    --accent-green: #a3e635;
    --accent-green-dark: #84cc16;
    --accent-green-glow: rgba(163, 230, 53, 0.4);
    
    --accent-gold: #ffd700;
    --accent-red: #ff3b3b;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    
    --text-primary: #ffffff;
    --text-secondary: #8b92a8;
    --text-muted: #5a6078;
    
    --border: #2a3152;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* === SOL TƏRƏF === */
.left-sidebar {
    width: 240px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s;
}

.logo-icon:hover {
    transform: rotate(15deg);
}

.logo-text {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-text .bet {
    color: #ffffff;
}

.logo-text .ron {
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green-glow);
}

.sidebar-content {
    padding: 15px;
    flex: 1;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 12px;
    margin-bottom: 5px;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.nav-link:hover, .nav-item.active .nav-link {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-item.active .nav-link {
    border-left: 3px solid var(--accent-green);
    color: var(--accent-green);
}

.nav-item.active .nav-link i {
    color: var(--accent-green);
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.badge {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.hot {
    background: var(--accent-red);
    color: white;
}

.live-indicator {
    margin-left: auto;
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 8px var(--accent-green);
}

/* DİL SEÇİMİ */
.language-selector {
    position: relative;
    width: 100%;
}

.lang-btn {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: var(--text-secondary);
}

.lang-btn:hover {
    border-color: var(--accent-green);
    color: var(--text-primary);
}

.lang-flag-emoji {
    font-size: 20px;
    line-height: 1;
}

.lang-name {
    flex: 1;
    text-align: left;
}

.lang-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.language-selector.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: none;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.language-selector.active .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.lang-option:hover, .lang-option.active {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.lang-option.active {
    border-left: 3px solid var(--accent-green);
}

.lang-option span:last-child {
    font-size: 13px;
    font-weight: 600;
}

/* === ƏSAS MƏZMUN === */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 20px 30px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.search-box {
    flex: 1;
    max-width: 600px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box i {
    color: var(--text-muted);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box:focus-within {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px var(--accent-green-glow);
}

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

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.btn-outline:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
    color: #000;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-green-glow);
}

/* === OYUNLAR BÖLMƏSİ === */
.games-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.games-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.section-title {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--accent-green);
}

.live-badge {
    background: var(--accent-green);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse {
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.section-nav {
    display: flex;
    gap: 8px;
}

.nav-arrow {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: var(--bg-hover);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

/* === OYUN KARTLARI - YENİ DİZAYN === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.game-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-green);
    box-shadow: 0 10px 30px var(--accent-green-glow);
}

/* Oyun şəkili yerinə gradient + icon */
.game-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Böyük oyun iconu (emoji) */
.game-icon-display {
    font-size: 72px;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    animation: float 3s ease-in-out infinite;
    user-select: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

/* Dekorativ pattern arxa fonda */
.game-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
    z-index: 1;
}

.game-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.03) 10px,
        rgba(255,255,255,0.03) 20px
    );
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn, .demo-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    min-width: 120px;
}

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

.play-btn:hover {
    background: #bef264;
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--accent-green-glow);
}

.demo-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.demo-btn:hover {
    background: white;
    color: #000;
}

.live-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-green);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px var(--accent-green-glow);
    z-index: 4;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.game-title {
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.game-provider {
    padding: 0 12px 12px;
    font-size: 11px;
    color: var(--accent-green);
    text-align: center;
    font-weight: 600;
}

/* === ANİMASİYALAR === */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .left-sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
    }
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .game-icon-display {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .left-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    .main-content {
        margin-left: 0;
    }
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .top-bar {
        flex-direction: column;
    }
    .search-box {
        max-width: 100%;
        width: 100%;
    }
    .game-icon-display {
        font-size: 50px;
    }
}

/* Scrollbar */
.left-sidebar::-webkit-scrollbar {
    width: 6px;
}

.left-sidebar::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.left-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.left-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}
/* === FOOTER === */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 50px 30px 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-logo-icon {
    width: 42px;
    height: 42px;
}

.footer-logo-text .bet { color: #ffffff; }
.footer-logo-text .ron { 
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green-glow);
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.3s;
}

.social-link:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-3px);
}

.social-link.telegram:hover { background: rgba(0, 136, 204, 0.1); }
.social-link.instagram:hover { background: rgba(225, 48, 108, 0.1); }
.social-link.twitter:hover { background: rgba(29, 161, 242, 0.1); }
.social-link.youtube:hover { background: rgba(255, 0, 0, 0.1); }

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.footer-links a i {
    width: 18px;
    color: var(--accent-green);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.payment-icon {
    width: 50px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
    transition: all 0.3s;
}

.payment-icon:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-2px);
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--accent-green);
    width: 16px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.age-restriction {
    display: flex;
    align-items: center;
    gap: 12px;
}

.age-badge {
    background: var(--accent-red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.age-text {
    color: var(--text-muted);
    font-size: 13px;
    max-width: 400px;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-desc {
        max-width: 100%;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    .age-restriction {
        justify-content: center;
    }
}