/**
 * SlotsGamblers Header - Minimal Modern Dark Design
 * Version: 1.8.3
 */

/* === VARIABLES === */
:root {
    --purple: #9333EA;
    --orange: #FF8C42;
    --green: #10B981;
    --white: #FFFFFF;
    --dark-bg: #0D1117;
    --text-dark: #1F2937;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --hover-bg: rgba(168, 85, 247, 0.2);
}

/* === RESET === */
.sgh-header, .sgh-header * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sgh-header ul {
    list-style: none;
}

.sgh-header a {
    text-decoration: none;
}

/* Prevent horizontal scroll from full-width breakout */
body {
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* === OUTER WRAPPER === */
.sgh-outer-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
}

/* Elementor full width override - ONLY for width/positioning */
.elementor-widget-slotsgamblers_header {
    overflow: visible !important;
}

.elementor-widget-slotsgamblers_header .elementor-widget-container {
    overflow: visible !important;
}

/* CRITICAL: Allow header to move UP with negative margins */
.elementor-section,
.elementor-container,
.elementor-row,
.elementor-column,
.elementor-column-wrap,
.elementor-widget-wrap {
    overflow: visible !important;
}

/* === HEADER - MINIMAL MODERN DARK === */
.sgh-header {
    font-family: 'Inter', sans-serif;
    background: 
        linear-gradient(90deg, var(--purple), var(--orange), var(--green)) top left / 100% 2px no-repeat,
        var(--dark-bg);
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease, transform 0.3s ease;
    /* margin and padding can be controlled by Elementor */
}

/* Enhanced shadow when scrolled */
.sgh-header.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.sgh-container {
    max-width: 1360px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    /* padding-top and padding-bottom controlled by Elementor inline styles */
}

/* === LOGO === */
.sgh-logo a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--white);
    transition: all 0.3s;
    padding: 0.375rem 0.75rem;
    border-radius: 0.75rem;
}

.sgh-logo a:hover {
    transform: translateY(-2px);
    background: var(--hover-bg);
}

.sgh-logo-icon {
    font-size: 2rem;
    transition: transform 0.3s;
}

.sgh-logo a:hover .sgh-logo-icon {
    transform: scale(1.1) rotate(-5deg);
}

.sgh-logo-text {
    background: linear-gradient(135deg, var(--purple), var(--orange), var(--green));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 3s linear infinite;
}

/* Support for dynamic HTML tags */
.sgh-logo-text h1,
.sgh-logo-text h2,
.sgh-logo-text h3,
.sgh-logo-text h4,
.sgh-logo-text h5,
.sgh-logo-text h6,
.sgh-logo-text p,
.sgh-logo-text div,
.sgh-logo-text span {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    background: linear-gradient(135deg, var(--purple), var(--orange), var(--green));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 3s linear infinite;
}

@keyframes logoShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* === DESKTOP NAV === */
.sgh-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.sgh-menu {
    display: flex;
    gap: 0.125rem;
    align-items: center;
}

.sgh-menu-item {
    position: relative;
}

.sgh-menu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.0625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 2rem;
    background: rgba(168, 85, 247, 0.3);
}

.sgh-menu-item > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    transition: all 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.sgh-menu-icon {
    font-size: 1.125rem;
    transition: transform 0.3s;
}

.sgh-menu-item > a:hover .sgh-menu-icon {
    transform: scale(1.2) rotate(-10deg);
}

.sgh-menu-item > a:hover {
    background: var(--hover-bg);
    color: #A855F7;
    transform: translateY(-2px);
}

.sgh-arrow {
    font-size: 0.625rem;
    transition: transform 0.2s;
}

.sgh-menu-item:hover .sgh-arrow {
    transform: rotate(180deg);
}

/* === DROPDOWN - PREMIUM GLASSMORPHISM === */
.sgh-menu-item {
    position: relative;
}

.sgh-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    padding-top: 0;
    min-width: 37.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.sgh-dropdown-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    min-width: 37.5rem;
    background: var(--dark-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5),
                0 0.5rem 1.5rem rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(168, 85, 247, 0.2);
}

.sgh-menu-item:hover .sgh-dropdown,
.sgh-dropdown:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* === SECTIONS - DARK CARDS === */
.sgh-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Gradient accent bar on left */
.sgh-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0.25rem;
    height: 100%;
    background: linear-gradient(180deg, var(--purple), var(--orange));
    opacity: 0.6;
    transition: opacity 0.3s;
}

.sgh-section:hover::before {
    opacity: 1;
}

/* First section - Purple glow */
.sgh-section:first-child {
    border-color: rgba(168, 85, 247, 0.3);
}

.sgh-section:first-child:hover {
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0.5rem 1.5rem rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

/* Second section - Orange glow */
.sgh-section:nth-child(2) {
    border-color: rgba(255, 140, 66, 0.3);
}

.sgh-section:nth-child(2):hover {
    background: rgba(255, 140, 66, 0.1);
    box-shadow: 0 0.5rem 1.5rem rgba(255, 140, 66, 0.3);
    transform: translateY(-2px);
}

.sgh-section:nth-child(2)::before {
    background: linear-gradient(180deg, var(--orange), var(--green));
}

.sgh-section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--purple), var(--orange)) 1;
}

.sgh-section-icon {
    font-size: 1.25rem;
    line-height: 1;
    animation: iconFloat 3s ease-in-out infinite;
}

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

.sgh-section-head h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

/* Support for dynamic section heading tags */
.sgh-section-head h1,
.sgh-section-head h2,
.sgh-section-head h3,
.sgh-section-head h4,
.sgh-section-head h5,
.sgh-section-head h6,
.sgh-section-head p,
.sgh-section-head div,
.sgh-section-head span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* === LINKS - PREMIUM INTERACTIVE === */
.sgh-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sgh-links li {
    margin: 0;
}

.sgh-links a {
    display: block;
    padding: 0.625rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 0.5rem;
    transition: all 0.3s;
    position: relative;
    border-left: 2px solid transparent;
}

.sgh-links a::before {
    content: '→';
    position: absolute;
    left: 0.5rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s;
    color: #A855F7;
    font-weight: 700;
}

.sgh-links a:hover {
    background: rgba(168, 85, 247, 0.15);
    border-left-color: #A855F7;
    color: var(--white);
    padding-left: 1.75rem;
    transform: translateX(3px);
}

.sgh-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Second section links - Orange accent */
.sgh-section:nth-child(2) .sgh-links a:hover {
    border-left-color: var(--orange);
    background: rgba(255, 140, 66, 0.15);
}

.sgh-section:nth-child(2) .sgh-links a:hover::before {
    color: var(--orange);
}

/* === CTA BUTTONS - PREMIUM DESIGN === */
.sgh-cta {
    display: flex;
    gap: 0.75rem;
}

.sgh-btn {
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

/* Support for dynamic button text tags */
.sgh-btn h1,
.sgh-btn h2,
.sgh-btn h3,
.sgh-btn h4,
.sgh-btn h5,
.sgh-btn h6,
.sgh-btn p,
.sgh-btn div,
.sgh-btn span {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.sgh-btn-primary {
    background: linear-gradient(135deg, var(--purple), #7C3AED);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.3);
}

.sgh-btn-primary:hover {
    background: linear-gradient(135deg, #7C3AED, var(--purple));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.sgh-btn-secondary {
    background: transparent;
    color: #A855F7;
    border-color: #A855F7;
}

.sgh-btn-secondary:hover {
    background: #A855F7;
    color: var(--white);
    transform: translateY(-2px);
}

/* === HAMBURGER === */
.sgh-hamburger {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.sgh-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

.sgh-hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.sgh-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.sgh-hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* === MOBILE MENU === */
.sgh-mobile {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.sgh-mobile.active {
    display: block;
    max-height: 100vh;
    border-top: 1px solid rgba(168, 85, 247, 0.3);
}

.sgh-mobile-menu {
    padding: 1rem 2rem;
}

.sgh-mobile-menu > li {
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.sgh-mobile-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: var(--text-light);
    font-weight: 600;
    gap: 0.5rem;
}

.sgh-mobile-menu .sgh-menu-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sgh-toggle {
    font-size: 1.25rem;
    font-weight: 400;
    transition: transform 0.2s;
}

.sgh-mobile-menu > li.active .sgh-toggle {
    transform: rotate(45deg);
}

/* === MOBILE SUBMENU - DARK DESIGN === */
.sgh-submenu {
    max-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 2px solid rgba(168, 85, 247, 0.3);
    border-bottom: 2px solid rgba(168, 85, 247, 0.3);
    margin: 0 -2rem;
    padding: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 0 rgba(168, 85, 247, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.sgh-mobile-menu > li.active .sgh-submenu {
    max-height: 1000px;
    padding: 0.75rem 0.375rem;
}

/* Mobile submenu section headers */
.sgh-sub-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--white);
    margin: 0.75rem 0 0.5rem;
    padding: 0.625rem 0.75rem;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 0.5rem;
    border-left: 3px solid;
    border-image: linear-gradient(180deg, var(--purple), var(--orange)) 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    grid-column: 1 / -1;
}

.sgh-sub-head:first-child {
    margin-top: 0;
}

/* Mobile submenu links - dark theme */
.sgh-submenu a {
    display: block;
    padding: 0.625rem 0.25rem;
    color: var(--text-light);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 0.5rem;
    transition: all 0.3s;
    position: relative;
    border: 2px solid rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sgh-submenu a::before {
    content: '→';
    position: absolute;
    left: 0.5rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s;
    color: #A855F7;
    font-weight: 700;
}

.sgh-submenu a:active {
    background: rgba(168, 85, 247, 0.3);
    border-color: #A855F7;
    color: var(--white);
    padding-left: 1.5rem;
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(168, 85, 247, 0.4),
                0 1px 4px rgba(0, 0, 0, 0.3);
}

.sgh-submenu a:active::before {
    opacity: 1;
    transform: translateX(0);
}

.sgh-mobile-cta {
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.sgh-mobile-cta .sgh-btn {
    width: 100%;
    text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .sgh-header {
        border-radius: 0;
        overflow: visible;
        background: 
            linear-gradient(90deg, var(--purple), var(--orange), var(--green)) top left / 100% 2px no-repeat,
            var(--dark-bg);
    }
    
    .sgh-nav,
    .sgh-cta {
        display: none;
    }
    
    .sgh-hamburger {
        display: flex;
    }
    
    .sgh-container {
        padding-left: 1rem;
        padding-right: 1rem;
        /* padding-top and padding-bottom controlled by Elementor mobile slider */
    }
    
    .sgh-dropdown-inner {
        grid-template-columns: 1fr;
    }
    
    .sgh-dropdown {
        min-width: 20rem;
    }
    
    /* Mobile - 2 column link layout */
    .sgh-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }
    
    .sgh-links a {
        font-size: 0.8125rem;
        padding: 0.5rem 0.5rem;
    }
    
    .sgh-section {
        padding: 1rem 0.75rem;
    }
    
    .sgh-section-head h4 {
        font-size: 0.875rem;
    }
    
    /* Mobile support for dynamic section heading tags */
    .sgh-section-head h1,
    .sgh-section-head h2,
    .sgh-section-head h3,
    .sgh-section-head h4,
    .sgh-section-head h5,
    .sgh-section-head h6,
    .sgh-section-head p,
    .sgh-section-head div,
    .sgh-section-head span {
        font-size: 0.875rem;
    }
}

@media (max-width: 1024px) {
    .sgh-dropdown {
        min-width: 31.25rem;
    }
    
    .sgh-dropdown-inner {
        gap: 0.75rem;
    }
}

@media (max-width: 600px) {
    .sgh-dropdown {
        min-width: 20rem;
        padding: 1rem;
    }
}

