/*
Theme Name: Biamobet Custom
Theme URI: https://biamobet-play.com
Author: Traflow Media
Description: Official theme for Biamobet online casino. Dark design, neon accents, responsive layout.
Version: 4.0.0
License: Curacao eGaming
Text Domain: biamobet
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0a0c10;
    color: #eef2fb;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== DARK THEME & NEON ACCENTS ===== */
:root {
    --bg-primary: #0a0c10;
    --bg-secondary: #131720;
    --bg-card: #1a1f2b;
    --bg-dropdown: #0d1117;
    --border-glow: #2a3343;
    --neon-cyan: #00f2fe;
    --neon-blue: #4facfe;
    --neon-purple: #a18cd1;
    --accent-gold: #f5af19;
    --accent-orange: #ff6b00;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --success: #00c851;
    --danger: #ff4444;
    --header-height: 75px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #fff 0%, #a18cd1 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(161, 140, 209, 0.3);
}

h2 {
    font-size: 2rem;
    color: var(--text-primary);
    border-left: 5px solid var(--neon-cyan);
    padding-left: 1.5rem;
    box-shadow: -5px 0 15px rgba(0, 242, 254, 0.1);
}

h3 {
    font-size: 1.5rem;
    color: var(--neon-blue);
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 8px var(--accent-gold);
}

/* ===== КРУТОЙ HEADER ===== */
.site-header {
    background: linear-gradient(180deg, #0d1117 0%, #0a0c10 100%);
    border-bottom: 1px solid rgba(0, 242, 254, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

/* Декоративная линия сверху хедера */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* ===== ЛОГОТИП ===== */
.logo {
    flex-shrink: 0;
    position: relative;
}

.logo a {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--neon-cyan));
}

.logo span {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: logoGlow 2s infinite alternate;
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan); }
    100% { text-shadow: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-blue); }
}

/* ===== НОВОЕ КОМПАКТНОЕ МЕНЮ ===== */
.main-nav {
    margin-left: auto;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    height: auto;
    backdrop-filter: none;
}

.main-nav ul li {
    position: relative;
    opacity: 1;
    animation: none;
}

/* Пункты меню — компактные и лёгкие */
.main-nav > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1;
    position: relative;
    background: transparent;
    border: none;
}

/* Наведение — мягкая неоновая подсветка */
.main-nav > ul > li > a:hover {
    background: rgba(0, 242, 254, 0.08);
    color: #fff;
    transform: none;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.1);
}

/* Активный пункт — тонкая линия снизу */
.main-nav > ul > li.current-menu-item > a {
    background: transparent;
    color: #fff;
    border: none;
    box-shadow: inset 0 -2px 0 0 var(--neon-cyan);
}

.main-nav > ul > li.current-menu-item > a:hover {
    background: rgba(0, 242, 254, 0.08);
}

/* Стрелка для выпадающих пунктов */
.main-nav li.menu-item-has-children > a::after {
    content: "▾";
    margin-left: 5px;
    font-size: 8px;
    color: var(--neon-cyan);
    opacity: 0.8;
    transition: transform 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}

.main-nav li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--neon-cyan);
}

/* ===== ПОДМЕНЮ — ЛЁГКОЕ И СТЕКЛЯННОЕ ===== */
.main-nav ul ul {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 200px;
    width: max-content;
    height: auto;
    padding: 6px;
    border-radius: 10px;
    background: rgba(15, 19, 28, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 242, 254, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

/* Убираем декоративную полоску — она не нужна в новом стиле */
.main-nav ul ul::before {
    display: none;
}

.main-nav ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav ul ul li {
    width: 100%;
}

.main-nav ul ul a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12.5px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.2px;
    transition: all 0.15s ease;
    margin: 1px 0;
    white-space: nowrap;
    background: transparent;
    border: none;
}

/* Иконка для пунктов подменю */
.main-nav ul ul a::before {
    content: '';
    display: none;
}

.main-nav ul ul a:hover {
    background: rgba(0, 242, 254, 0.07);
    color: #fff;
    padding-left: 16px;
    transform: none;
    box-shadow: none;
}

/* Активный подпункт */
.main-nav ul ul .current-menu-item a {
    color: #fff;
    background: rgba(0, 242, 254, 0.05);
    font-weight: 600;
}

/* Разделитель между пунктами подменю */
.main-nav ul ul li:not(:last-child) {
    border-bottom: 1px solid rgba(42, 51, 67, 0.2);
}

/* ===== ПОДМЕНЮ ТРЕТЬЕГО УРОВНЯ ===== */
.main-nav ul ul ul {
    top: -6px;
    left: 100%;
    margin-left: 6px;
    background: rgba(15, 19, 28, 0.98);
}

.main-nav ul ul li.menu-item-has-children > a::after {
    content: '▸';
    float: right;
    margin-top: 0;
    font-size: 8px;
    margin-left: 5px;
}

/* ===== УБИРАЕМ АНИМАЦИИ ПУНКТОВ МЕНЮ ===== */
.main-nav ul li:nth-child(1),
.main-nav ul li:nth-child(2),
.main-nav ul li:nth-child(3),
.main-nav ul li:nth-child(4),
.main-nav ul li:nth-child(5),
.main-nav ul li:nth-child(6),
.main-nav ul li:nth-child(7),
.main-nav ul li:nth-child(8) {
    animation: none;
    opacity: 1;
}

/* Анимация появления подменю */
.main-nav ul li:hover > ul {
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== КНОПКИ В ХЕДЕРЕ ===== */
.header-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login {
    background: transparent;
    border: 1.5px solid var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.btn-login:hover {
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(161, 140, 209, 0.5);
    color: white;
    background: linear-gradient(135deg, #5fb8fe, #b19cde);
}

.btn-large {
    padding: 14px 36px;
    font-size: 1rem;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu-toggle {
    display: none;
    background: rgba(0, 242, 254, 0.05);
    border: 1.5px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 1.5rem;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 242, 254, 0.15);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    transform: scale(1.05);
}

/* ===== CONTAINER & CONTENT ===== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 25px;
}

.card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid var(--border-glow);
    margin-bottom: 30px;
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th {
    background: var(--bg-secondary);
    color: var(--neon-cyan);
    font-weight: 600;
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid var(--border-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(42, 51, 67, 0.5);
}

tr:hover td {
    background: rgba(0, 242, 254, 0.03);
}

/* ===== LISTS ===== */
ul:not(.main-nav ul) {
    list-style: none;
}

ul:not(.main-nav ul) li {
    padding: 10px 0 10px 30px;
    position: relative;
}

ul:not(.main-nav ul) li::before {
    content: "▹";
    position: absolute;
    left: 5px;
    color: var(--neon-cyan);
    font-size: 1.1rem;
}

ol {
    padding-left: 25px;
    margin: 15px 0;
}

ol li {
    padding: 6px 0;
    color: var(--text-secondary);
}

/* ===== FAQ BLOCK ===== */
.faq-item {
    border-bottom: 1px solid rgba(42, 51, 67, 0.5);
    padding: 22px 0;
}

.faq-question {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--neon-cyan);
}

.faq-answer {
    color: var(--text-secondary);
    padding-left: 25px;
    border-left: 3px solid var(--neon-purple);
    margin-top: 15px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(180deg, #0d1117 0%, #080a0e 100%);
    border-top: 1px solid rgba(0, 242, 254, 0.15);
    padding: 50px 0 25px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 25px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--neon-cyan);
}

.footer-col h4 {
    color: var(--neon-blue);
    margin-bottom: 18px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.footer-col a:hover {
    color: var(--neon-cyan);
    transform: translateX(5px);
}

.footer-disclaimer {
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid rgba(42, 51, 67, 0.5);
    padding-top: 25px;
    text-align: center;
}

.footer-license {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 18px;
}

/* ===== HERO ===== */
.hero-actions {
    display: flex;
    gap: 20px;
    margin: 35px 0;
    flex-wrap: wrap;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4); }
    50% { box-shadow: 0 5px 35px rgba(161, 140, 209, 0.6); }
}

.header-actions .btn-primary {
    animation: pulseGlow 2.5s infinite;
}

/* ===== MOBILE ADAPTIVE ===== */
@media (max-width: 992px) {
    :root { --header-height: 65px; }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .site-header { height: 65px; }
    .logo a { font-size: 1.6rem; }
    
    .main-nav {
        display: none;
        margin-right: 0;
    }
    
    .main-nav ul {
        background: transparent;
        padding: 0;
        border: none;
        backdrop-filter: none;
    }
    
    .main-nav.active {
        display: block;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: #0d1117;
        border-bottom: 2px solid var(--neon-cyan);
        padding: 20px;
        z-index: 999;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    }
    
    .main-nav.active ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-nav > ul > li > a {
        padding: 15px 20px;
        border-radius: 12px;
        display: block;
        height: auto;
    }
    
    .mobile-menu-toggle { display: block; order: 3; }
    .header-actions { order: 2; margin-left: auto; margin-right: 15px; }
    .header-actions .btn span { display: none; }
    .header-actions .btn { padding: 10px 16px; }
    .header-actions .btn-login::before { content: "🚪"; font-size: 1.2rem; }
    .header-actions .btn-primary::before { content: "📝"; font-size: 1.2rem; }
    
    /* Мобильное подменю */
    .main-nav li.menu-item-has-children > a::after {
        content: ' ▼';
        float: right;
        font-size: 0.7rem;
        transform: none !important;
    }
    
    .main-nav li.menu-item-has-children.active > a::after {
        transform: rotate(180deg) !important;
    }
    
    .main-nav ul ul {
        position: static;
        margin-left: 15px;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        border-left: 2px solid var(--neon-cyan);
        border-radius: 0;
        box-shadow: none;
        min-width: auto;
        padding: 5px 0;
        display: none;
        width: auto;
        backdrop-filter: none;
    }
    
    .main-nav ul ul::before { display: none; }
    
    .main-nav ul li.menu-item-has-children.active > ul {
        display: block;
    }
    
    .main-nav ul ul a {
        padding: 12px 20px;
        font-size: 0.9rem;
        white-space: normal;
    }
    
    .main-nav ul ul li:not(:last-child) {
        border-bottom: none;
    }
    
    /* Сброс анимаций подменю на мобилке */
    .main-nav ul li:hover > ul {
        animation: none;
    }
}

@media (max-width: 576px) {
    .container { padding: 20px 15px; }
    .card { padding: 20px; }
    .logo a { font-size: 1.4rem; }
    .header-actions .btn { padding: 8px 12px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { text-align: center; }
}