/* Headers Widget Styles */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #5f27cd;
    --dark-bg: #222831;
    --light-bg: #f2f2f2;
    --primary-text: #eeeeee;
    --secondary-text: #393e46;
    --dropdown-bg: #ffffff;
    --dropdown-dark-bg: #2d343f;
    --border-color: rgba(0, 0, 0, 0.1);
    --dark-border-color: rgba(255, 255, 255, 0.1);
}

.elementor-widget-headers * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.elementor-widget-headers {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
}

/* A tetejére pozícionált header külön stílusai - Optimalizált minden eszközre */
.elementor-widget-headers.top-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.elementor-widget-headers.top-absolute {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 9999 !important;
}

.elementor-widget-headers .elementor-widget-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--primary-text);
}

/* Navigation Styles - Optimalizált fix pozícióra */
.main-nav {
    position: relative;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    border-bottom: 1px solid #e5e5e5;
    left: 0 !important;
    right: 0 !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

/* Fix pozícióban lévő header esetén */
.elementor-widget-headers.top-fixed .main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.elementor-widget-headers.top-absolute .main-nav {
    background: rgba(255, 255, 255, 0.98);
}

body.dark-mode .main-nav {
    background: rgba(34, 40, 49, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Dark mode fix pozícióban */
body.dark-mode .elementor-widget-headers.top-fixed .main-nav {
    background: rgba(34, 40, 49, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

body.dark-mode .elementor-widget-headers.top-absolute .main-nav {
    background: rgba(34, 40, 49, 0.98);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #8b2ea6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

body.dark-mode .nav-logo {
    color: var(--primary-color);
}

.nav-logo i,
.nav-logo-icon {
    font-size: 1.8rem;
    color: #8b2ea6;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    transition: all 0.3s;
    position: relative;
}

body.dark-mode .nav-link {
    color: var(--primary-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 0;
    height: 3px;
    background: #8b2ea6;
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: #8b2ea6;
}

body.dark-mode .nav-link:hover, body.dark-mode .nav-link.active {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.login-btn, .signup-btn {
    text-decoration: none;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.login-btn {
    color: #8b2ea6;
    border: 2px solid #8b2ea6;
}

body.dark-mode .login-btn {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.login-btn:hover {
    background: #8b2ea6;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 46, 166, 0.3);
}

body.dark-mode .login-btn:hover {
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.signup-btn {
    background: #e05d87;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.signup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile menu - Modern design */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 999999;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    padding: 8px;
    margin: -8px;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: #8b5cf6;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.dark-mode .mobile-toggle span {
    background: #a78bfa;
}

/* Mobile toggle animation */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: #ffffff;
    z-index: 99999; /* Very high z-index */
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.dark-mode .mobile-menu {
    background: #111827;
}

.mobile-menu.active {
    transform: translateX(0) !important;
}

/* Mobile menu header - ensure it's clickable */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10001; /* Higher than menu content */
    min-height: 70px;
}

body.dark-mode .mobile-menu-header {
    background: #1f2937;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Ensure all mobile menu content is clickable */
.mobile-menu * {
    position: relative;
    z-index: 1;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #8b5cf6;
    text-decoration: none;
}

.mobile-close-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
    border: none;
    outline: none;
    position: relative;
    z-index: 999999;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.mobile-close-btn:hover {
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.mobile-menu .nav-links {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
    width: 100%;
    gap: 0;
    display: flex !important;
}

.mobile-menu .nav-link {
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    color: #374151;
    text-decoration: none;
}

.mobile-menu .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

body.dark-mode .mobile-menu .nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
}

.mobile-menu .nav-link:hover {
    background: rgba(139, 92, 246, 0.05);
    padding-left: 2rem;
}

.mobile-menu .nav-link:hover::before {
    transform: scaleY(1);
}

body.dark-mode .mobile-menu .nav-link:hover {
    background: rgba(167, 139, 250, 0.05);
}

/* Mobile dropdown - ensure visibility */
.mobile-menu .dropdown-container {
    position: relative;
    display: block;
}

.mobile-menu .dropdown-container .dropdown-menu {
    position: static !important;
    width: 100% !important;
    opacity: 0;
    visibility: hidden;
    transform: none !important;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: #f9fafb;
    display: block !important; /* Always block, control with max-height */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
}

body.dark-mode .mobile-menu .dropdown-container .dropdown-menu {
    background: rgba(0, 0, 0, 0.2);
}

/* This rule is now handled by the more specific rule below */

/* Fix for ALL mobile dropdowns */
.mobile-menu .dropdown-container .dropdown-menu {
    position: relative !important;
    width: 100% !important;
    transform: none !important;
    display: block !important;
}

.mobile-menu .dropdown-container.active .dropdown-menu {
    max-height: 5000px !important; /* Ensure enough height for all content */
    overflow-y: auto !important; /* Allow scrolling if needed */
    -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
    opacity: 1 !important;
    visibility: visible !important;
    padding: 1rem 0 !important;
}

/* Ensure all dropdown content is always visible when active */
.mobile-menu .dropdown-container.active .dropdown-menu .category-headers,
.mobile-menu .dropdown-container.active .dropdown-menu .category-list-container,
.mobile-menu .dropdown-container.active .dropdown-menu .category-list,
.mobile-menu .dropdown-container.active .dropdown-menu .casino-item,
.mobile-menu .dropdown-container.active .dropdown-menu .featured-box {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any conflicting styles for mobile dropdowns */
@media (max-width: 992px) {
    .mobile-menu .dropdown-container .dropdown-menu {
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: auto !important;
        position: relative !important;
        transform: none !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .mobile-menu .dropdown-container.active .dropdown-menu {
        display: block !important;
        height: auto !important;
        min-height: 100px !important;
    }
    
    /* Ensure category list container is visible */
    .mobile-menu .dropdown-menu .category-list-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Ensure featured box is visible */
    .mobile-menu .dropdown-menu .featured-box {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Ensure dropdown content is visible */
.mobile-menu .dropdown-container.active .dropdown-menu * {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu .dropdown-container .nav-link i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: #9ca3af;
}

.mobile-menu .dropdown-container.active .nav-link i {
    transform: rotate(180deg);
}

/* Mobile category title */
.mobile-category-title {
    font-size: 11px;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 12px 0;
    padding: 0 0 8px 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

body.dark-mode .mobile-category-title {
    color: #a78bfa;
    border-bottom-color: rgba(167, 139, 250, 0.2);
}

/* Mobile submenu styling - Clean */
.mobile-menu .dropdown-menu .category-headers {
    display: flex;
    flex-wrap: wrap;
    background: #fafafa;
    padding: 0;
    margin: 0 1rem;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

body.dark-mode .mobile-menu .dropdown-menu .category-headers {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu .dropdown-menu .category-header {
    flex: 1 1 50%;
    padding: 12px 10px;
    font-size: 10px;
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.mobile-menu .dropdown-menu .category-header:nth-child(2n) {
    border-right: none;
}

.mobile-menu .dropdown-menu .category-header:nth-child(3),
.mobile-menu .dropdown-menu .category-header:nth-child(4) {
    border-bottom: none;
}

body.dark-mode .mobile-menu .dropdown-menu .category-header {
    border-color: rgba(255, 255, 255, 0.06);
    color: #f9fafb;
}

.mobile-menu .dropdown-menu .category-list-container {
    flex-direction: column;
    gap: 0;
    padding: 0 1rem 1rem 1rem;
    display: flex;
}

.mobile-menu .dropdown-menu .category-list {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    border-right: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu .dropdown-menu .category-list:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mobile-menu .dropdown-menu .category-list:first-child {
    padding-top: 0;
}

body.dark-mode .mobile-menu .dropdown-menu .category-list {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.mobile-menu .dropdown-menu .casino-item {
    padding: 10px 12px;
    border-bottom: none;
    margin-bottom: 2px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
}

body.dark-mode .mobile-menu .dropdown-menu .casino-item {
    color: #e5e7eb;
}

.mobile-menu .dropdown-menu .casino-item:hover {
    transform: translateX(4px);
    background: rgba(124, 58, 237, 0.12);
    color: #111827;
}

body.dark-mode .mobile-menu .dropdown-menu .casino-item:hover {
    background: rgba(167, 139, 250, 0.15);
    color: #ffffff;
}

.mobile-menu .dropdown-menu .casino-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    color: #6b7280;
    font-size: 14px;
}

.mobile-menu .dropdown-menu .casino-item:hover .casino-icon {
    color: #7c3aed;
}

body.dark-mode .mobile-menu .dropdown-menu .casino-icon {
    color: #9ca3af;
}

body.dark-mode .mobile-menu .dropdown-menu .casino-item:hover .casino-icon {
    color: #a78bfa;
}

.mobile-menu .dropdown-menu .casino-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    color: #111827 !important;
}

body.dark-mode .mobile-menu .dropdown-menu .casino-name {
    color: #f9fafb !important;
}

.mobile-menu .dropdown-menu .featured-box {
    margin: 1rem;
    padding: 20px;
    border-radius: 12px;
    background: #7c3aed;
    display: flex;
    align-items: center;
    gap: 15px;
}

body.dark-mode .mobile-menu .dropdown-menu .featured-box {
    background: #6d28d9;
}

.mobile-menu .nav-buttons {
    flex-direction: column;
    width: 100%;
    padding: 1.5rem;
    gap: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex !important;
}

body.dark-mode .mobile-menu .nav-buttons {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu .login-btn, 
.mobile-menu .signup-btn {
    text-align: center;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.mobile-menu .login-btn {
    color: #7c3aed;
    border: 2px solid #7c3aed;
    background: transparent;
}

.mobile-menu .signup-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.mobile-menu .signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Mobile menu backdrop - optional dark overlay */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 9998; /* Lower than mobile menu */
    transition: background 0.4s ease;
    pointer-events: none;
    display: none;
}

.mobile-menu-backdrop.active {
    background: rgba(0, 0, 0, 0.6);
    pointer-events: all;
    display: block;
}

/* Disable backdrop on mobile devices */
@media (max-width: 768px) {
    .mobile-menu-backdrop {
        display: none !important;
        pointer-events: none !important;
    }
}

/* Mobile-specific animations */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-menu.active {
    animation: slideInFromRight 0.3s ease-out;
}

.mobile-menu.active .nav-link {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.mobile-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active .nav-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.active .nav-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.active .nav-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.active .nav-link:nth-child(5) { animation-delay: 0.3s; }

/* Mobile safe area support */
@supports (padding: max(0px)) {
    .mobile-menu {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
    
    .mobile-menu-header {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
    
    .mobile-menu .nav-buttons {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-icon {
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-icon i {
    font-size: 1.2rem;
}

.toggle-icon.active {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

body.dark-mode .toggle-icon.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Dropdown menu styles - Clean Minimal Design */
.dropdown-container {
    position: relative;
}

.dropdown-container .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    max-width: 95vw;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

/* Center dropdown properly */
@media (min-width: 993px) {
    .nav-links {
        position: relative;
    }
    
    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%) translateY(5px);
        margin-left: 0;
    }
    
    /* Minden dropdown közepét igazítjuk */
    .dropdown-container .dropdown-menu {
        left: 50%;
        transform: translateX(-50%) translateY(5px);
    }
}

body.dark-mode .dropdown-menu {
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a2a;
}

.dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Category headers */
.category-headers {
    display: flex;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
    margin: 0;
}

body.dark-mode .category-headers {
    background: #0f0f0f;
    border-bottom: 1px solid #2a2a2a;
}

.category-header {
    flex: 1;
    text-align: center;
    padding: 20px 15px;
    font-weight: 700;
    font-size: 11px;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-right: 1px solid #f0f0f0;
    margin: 0;
}

.category-header:last-child {
    border-right: none;
}

body.dark-mode .category-header {
    color: #f9fafb;
    border-right-color: #2a2a2a;
}

.category-list-container {
    display: flex;
    width: 100%;
    padding: 25px 20px;
    background: #ffffff;
}

body.dark-mode .category-list-container {
    background: #1a1a1a;
}

.category-list {
    flex: 1;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.casino-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

body.dark-mode .casino-item {
    color: #e5e7eb;
}

.casino-item:hover {
    background: #f3f4f6;
    color: #111827;
    transform: translateX(2px);
}

body.dark-mode .casino-item:hover {
    background: #374151;
    color: #ffffff;
}

.casino-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    color: #6b7280;
    font-size: 14px;
}

.casino-item:hover .casino-icon {
    color: #7c3aed;
}

body.dark-mode .casino-icon {
    color: #9ca3af;
}

body.dark-mode .casino-item:hover .casino-icon {
    color: #a78bfa;
}

.casino-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #111827 !important;
}

body.dark-mode .casino-name {
    color: #f9fafb !important;
}

/* Featured box - Clean design */
.featured-box {
    background: #7c3aed;
    padding: 25px 30px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 0 0 12px 12px;
}

body.dark-mode .featured-box {
    background: #6d28d9;
}

.featured-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.featured-content {
    flex: 1;
}

.featured-content h3 {
    margin: 0 0 4px 0;
    color: white;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.featured-content p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .dropdown-menu {
        width: 850px;
    }
}

@media (max-width: 992px) {
    .nav-links, .nav-buttons {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .theme-toggle {
        top: 80px;
        right: 15px;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border-radius: 0;
        border: none;
        border-left: none;
        border-right: none;
    }
    
    .category-headers {
        flex-wrap: wrap;
    }
    
    .category-header {
        flex: 1 1 50%;
        border-right: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
        padding: 15px 10px;
        font-size: 10px;
        color: #1f2937;
        font-weight: 700;
    }
    
    .category-header:nth-child(2n) {
        border-right: none;
    }
    
    .category-header:nth-child(3),
    .category-header:nth-child(4) {
        border-bottom: none;
    }
    
    body.dark-mode .category-header {
        border-color: #2a2a2a;
        color: #f9fafb;
    }
    
    .category-list-container {
        flex-direction: column;
        padding: 15px 10px;
    }
    
    .category-list {
        padding: 10px 5px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .category-list:last-child {
        border-bottom: none;
    }
    
    body.dark-mode .category-list {
        border-bottom-color: #2a2a2a;
    }
    
    .casino-item {
        padding: 8px 10px;
        font-size: 13px;
        color: #1f2937;
        font-weight: 600;
    }
    
    body.dark-mode .casino-item {
        color: #e5e7eb;
    }
    
    .casino-icon {
        font-size: 12px;
        min-width: 18px;
        height: 18px;
    }
    
    .featured-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        border-radius: 0;
    }
    
    .featured-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .featured-content h3 {
        font-size: 16px;
    }
    
    .featured-content p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .mobile-toggle {
        width: 28px;
        height: 20px;
    }
    
    .mobile-toggle span {
        height: 2.5px;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo i,
    .nav-logo-icon {
        font-size: 1.5rem;
    }
    
    .theme-toggle {
        transform: scale(0.9);
    }
}

/* Ensure mobile menu is visible */
@media (max-width: 992px) {
    .main-nav {
        z-index: 100;
    }
    
    .mobile-toggle {
        z-index: 101;
    }
    
    .mobile-menu-backdrop {
        z-index: 9998 !important;
    }
    
    .mobile-menu {
        z-index: 9999 !important;
        visibility: visible !important;
        display: flex !important;
    }
    
    .mobile-menu.active {
        opacity: 1 !important;
    }
    
    /* Ensure elements inside mobile menu are visible and clickable */
    .mobile-menu * {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* Remove conflicting styles */
@media (max-width: 992px) {
    .mobile-menu {
        right: 0 !important;
        left: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .main-nav {
        border-bottom: 2px solid currentColor;
    }
    
    .nav-link,
    .login-btn,
    .signup-btn {
        border: 2px solid transparent;
    }
    
    .nav-link:focus,
    .login-btn:focus,
    .signup-btn:focus {
        border-color: currentColor;
        outline: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (min-width: 1400px) {
    .dropdown-menu {
        width: 1200px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .dropdown-menu {
        width: 1000px;
    }
}

@media (min-width: 993px) and (max-width: 1199px) {
    .dropdown-menu {
        width: 800px;
    }
    
    .category-header {
        font-size: 0.75rem;
        color: #1f2937;
        font-weight: 700;
    }
    
    body.dark-mode .category-header {
        color: #f9fafb;
    }
    
    .casino-name {
        font-size: 0.9rem;
        color: #111827 !important;
    }
    
    body.dark-mode .casino-name {
        color: #f9fafb !important;
    }
}

/* On mobile, use full width */
@media (max-width: 768px) {
    .mobile-menu {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* On tablets, use partial width */
@media (min-width: 769px) and (max-width: 992px) {
    .mobile-menu {
        width: 80%;
        max-width: 400px;
        right: 0;
        left: auto;
    }
}

/* === FIX POZÍCIÓ OPTIMALIZÁLÁS MINDEN ESZKÖZRE === */

/* Alapvető fix pozicionálás minden eszközre */
.elementor-widget-headers.top-fixed,
.elementor-widget-headers.top-absolute {
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* Mobil eszközök specifikus beállításai */
@media (max-width: 992px) {
    .elementor-widget-headers.top-fixed,
    .elementor-widget-headers.top-absolute {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }
    
    .elementor-widget-headers.top-fixed .main-nav,
    .elementor-widget-headers.top-absolute .main-nav {
        width: 100% !important;
        margin: 0 !important;
        padding: 0.8rem 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Theme toggle pozíció fix pozícióban */
    .elementor-widget-headers.top-fixed .theme-toggle,
    .elementor-widget-headers.top-absolute .theme-toggle {
        position: fixed !important;
        top: 20px !important;
        right: 60px !important;
        z-index: 10001 !important;
    }
    
    /* Mobile toggle pozíció fix pozícióban */
    .elementor-widget-headers.top-fixed .mobile-toggle,
    .elementor-widget-headers.top-absolute .mobile-toggle {
        position: relative !important;
        z-index: 10001 !important;
    }
}

/* Tablet és nagyobb mobilok */
@media (min-width: 576px) and (max-width: 992px) {
    .elementor-widget-headers.top-fixed .theme-toggle,
    .elementor-widget-headers.top-absolute .theme-toggle {
        right: 80px !important;
    }
}

/* Nagyon kis mobilok */
@media (max-width: 575px) {
    .elementor-widget-headers.top-fixed .theme-toggle,
    .elementor-widget-headers.top-absolute .theme-toggle {
        right: 50px !important;
        top: 15px !important;
        transform: scale(0.85) !important;
    }
    
    .elementor-widget-headers.top-fixed .nav-container,
    .elementor-widget-headers.top-absolute .nav-container {
        padding: 0 0.8rem !important;
    }
}

/* Desktop beállítások */
@media (min-width: 993px) {
    .elementor-widget-headers.top-fixed .theme-toggle,
    .elementor-widget-headers.top-absolute .theme-toggle {
        position: absolute !important;
        top: 50% !important;
        right: 20px !important;
        transform: translateY(-50%) !important;
        z-index: 10001 !important;
    }
}

/* Scroll hatás javítása fix pozícióban */
.elementor-widget-headers.top-fixed .main-nav {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Biztosítja, hogy a mobile menu mindig a header felett legyen */
.mobile-menu {
    z-index: 10002 !important;
}

.mobile-menu-backdrop {
    z-index: 10001 !important;
}

/* Scroll animáció fix pozícióban - professzionális hatás */
.elementor-widget-headers.top-fixed .main-nav {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Görgetés során árnyék növelés */
.elementor-widget-headers.top-fixed.scrolled .main-nav {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15) !important;
}

body.dark-mode .elementor-widget-headers.top-fixed.scrolled .main-nav {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4) !important;
}

/* Biztosítja, hogy minden eszközön látható legyen */
@media screen and (max-width: 1920px) {
    .elementor-widget-headers.top-fixed,
    .elementor-widget-headers.top-absolute {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

/* Smooth scroll a teljes oldalhoz */
html {
    scroll-behavior: smooth;
}

/* Biztosítja, hogy a fix header mindig a legfelső rétegben legyen */
.elementor-widget-headers.top-fixed {
    z-index: 999999 !important;
}

.elementor-widget-headers.top-fixed .main-nav {
    z-index: 999999 !important;
}

/* Hover effektek javítása fix pozícióban */
.elementor-widget-headers.top-fixed .nav-link:hover,
.elementor-widget-headers.top-absolute .nav-link:hover {
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.elementor-widget-headers.top-fixed .login-btn:hover,
.elementor-widget-headers.top-fixed .signup-btn:hover,
.elementor-widget-headers.top-absolute .login-btn:hover,
.elementor-widget-headers.top-absolute .signup-btn:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Mobilon a fix header optimalizálása */
@media (max-width: 768px) {
    .elementor-widget-headers.top-fixed,
    .elementor-widget-headers.top-absolute {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .elementor-widget-headers.top-fixed .nav-container,
    .elementor-widget-headers.top-absolute .nav-container {
        padding: 0 1rem !important;
        width: 100% !important;
    }
}

/* === CASINO NAME SZÍNEK JAVÍTÁSA - MINDEN ESZKÖZRE === */

/* Biztosítja, hogy minden casino-name elem látható legyen */
.casino-name,
.mobile-menu .casino-name,
.dropdown-menu .casino-name {
    color: #111827 !important;
    font-weight: 600 !important;
}

/* Dark mode verzió */
body.dark-mode .casino-name,
body.dark-mode .mobile-menu .casino-name,
body.dark-mode .dropdown-menu .casino-name {
    color: #f9fafb !important;
} 