/*----- Header Gothic Up -------*/
/* Gothic UP Navbar Styles - Complete CSS File */

/* CSS Variables */
:root {
    --admin-bar-height: 0px;
}

body.admin-bar {
    --admin-bar-height: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --admin-bar-height: 46px;
    }
}

/* Main Navigation Wrapper */
.gothic-up-navbar-wrapper {
    position: fixed;
    top: var(--admin-bar-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9998;
    transition: top 0.5s ease, opacity 0.5s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-family: 'Montserrat', sans-serif;
    opacity: 1;
}

.gothic-up-navbar-wrapper.hidden {
    top: calc(var(--admin-bar-height) - 100px);
    opacity: 0.3;
}

.gothic-up-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 10px 15px;
    position: relative;
}

/* Responsive widths */
@media (min-width: 576px) {
    .gothic-up-navbar { max-width: 540px; }
}
@media (min-width: 768px) {
    .gothic-up-navbar { max-width: 720px; }
}
@media (min-width: 992px) {
    .gothic-up-navbar { max-width: 960px; }
}
@media (min-width: 1200px) {
    .gothic-up-navbar { max-width: 1140px; }
}
@media (min-width: 1400px) {
    .gothic-up-navbar { max-width: 1200px; }
}

/* Logo */
.gothic-up-logo {
    width: 180px;
    height: 60px;
    display: flex;
    align-items: center;
}

.gothic-up-logo img {
    max-width: 100%;
    height: auto;
    transition: filter 0.3s ease;
}

.gothic-up-logo:hover img {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

/* Main Navigation */
.gothic-up-main-nav {
    display: none;
    flex: 1;
    justify-content: center;
    align-items: center;
}

@media (min-width: 992px) {
    .gothic-up-main-nav {
        display: flex;
    }
}

.gothic-up-main-nav > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.gothic-up-main-nav > ul > li {
    position: relative;
}

.gothic-up-main-nav > ul > li > a {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    color: #e0e0e0 !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.2s ease;
    background: transparent;
    position: relative;
}

.gothic-up-main-nav > ul > li:hover > a {
    color: #e4002b !important;
}

/* WordPress menu classes compatibility */
.gothic-up-main-nav .menu-item-has-children > a::after,
.gothic-up-main-nav .page_item_has_children > a::after {
    content: "▼";
    margin-left: 6px;
    font-size: 0.5rem;
    transition: transform 0.4s ease;
}

.gothic-up-main-nav .menu-item-has-children:hover > a::after,
.gothic-up-main-nav .page_item_has_children:hover > a::after {
    transform: rotate(180deg);
}

/* Ensure consistent styling for all menu items */
.gothic-up-main-nav ul li a {
    color: #e0e0e0 !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.gothic-up-main-nav ul li:hover > a {
    color: #e4002b !important;
}

/* Fix for custom menu items */
.gothic-up-main-nav .menu-item-type-custom > a,
.gothic-up-main-nav .menu-item-object-custom > a {
    color: #e0e0e0 !important;
}

.gothic-up-main-nav .menu-item-type-custom:hover > a,
.gothic-up-main-nav .menu-item-object-custom:hover > a {
    color: #e4002b !important;
}

/* Multi-level dropdown - ALL nested levels */
.gothic-up-main-nav .sub-menu,
.gothic-up-main-nav .children {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #0d0d0d;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 5px 20px rgba(0,0,0,0.9);
    z-index: 1000;
    pointer-events: none;
}

/* Nested submenus (2nd level and deeper) */
.gothic-up-main-nav .sub-menu .sub-menu,
.gothic-up-main-nav .children .children,
.gothic-up-main-nav .sub-menu .children,
.gothic-up-main-nav .children .sub-menu {
    top: -2px;
    left: 100%;
    margin-left: 0;
    z-index: 1001;
    transform: translateX(-20px) scale(0.95);
}

/* Show submenu on hover - works for all levels */
.gothic-up-main-nav li:hover > .sub-menu,
.gothic-up-main-nav li:hover > .children {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Show nested submenus with horizontal animation */
.gothic-up-main-nav .sub-menu li:hover > .sub-menu,
.gothic-up-main-nav .children li:hover > .children,
.gothic-up-main-nav .sub-menu li:hover > .children,
.gothic-up-main-nav .children li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

/* All list items in submenus must be relative for nested menus */
.gothic-up-main-nav .sub-menu li,
.gothic-up-main-nav .children li {
    position: relative;
}

.gothic-up-main-nav .sub-menu a,
.gothic-up-main-nav .children a {
    display: block;
    padding: 12px 20px;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s ease, padding-left 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.gothic-up-main-nav .sub-menu a:hover,
.gothic-up-main-nav .children a:hover {
    color: #e4002b;
    padding-left: 25px;
}

/* Arrow for nested menu items */
.gothic-up-main-nav .sub-menu .menu-item-has-children > a::after,
.gothic-up-main-nav .children .page_item_has_children > a::after,
.gothic-up-main-nav .sub-menu .page_item_has_children > a::after,
.gothic-up-main-nav .children .menu-item-has-children > a::after {
    content: "▶";
    float: right;
    margin-left: 10px;
    font-size: 0.5rem;
}

/* Smart positioning for nested submenus */
.gothic-up-main-nav .sub-menu.open-right .sub-menu,
.gothic-up-main-nav .children.open-right .children,
.gothic-up-main-nav .sub-menu.open-right .children,
.gothic-up-main-nav .children.open-right .sub-menu,
.gothic-up-main-nav .sub-menu .sub-menu.open-right,
.gothic-up-main-nav .children .children.open-right {
    left: 100%;
    right: auto;
    margin-left: 0;
}

.gothic-up-main-nav .sub-menu.open-left .sub-menu,
.gothic-up-main-nav .children.open-left .children,
.gothic-up-main-nav .sub-menu.open-left .children,
.gothic-up-main-nav .children.open-left .sub-menu,
.gothic-up-main-nav .sub-menu .sub-menu.open-left,
.gothic-up-main-nav .children .children.open-left {
    left: auto;
    right: 100%;
    margin-right: 0;
    transform: translateX(20px) scale(0.95);
}

.gothic-up-main-nav .sub-menu .sub-menu.open-left:hover,
.gothic-up-main-nav .children .children.open-left:hover {
    transform: translateX(0) scale(1);
}

/* Arrow adjustment for left-opening menus */
.gothic-up-main-nav > li > a::after,
.gothic-up-main-nav .children > li > a::after {
    content: "◀" !important;
    float: left;
    margin-right: 10px;
    margin-left: 0;
}

/* Ensure WordPress generates proper structure */
.gothic-up-main-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #0d0d0d;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 5px 20px rgba(0,0,0,0.9);
    z-index: 1000;
    pointer-events: none;
}

.gothic-up-main-nav ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Second level and deeper with horizontal animation */
.gothic-up-main-nav ul ul ul {
    top: -2px;
    left: 100%;
    margin-left: 0;
    z-index: 1001;
    transform: translateX(-20px) scale(0.95);
}

.gothic-up-main-nav ul ul li:hover > ul {
    transform: translateX(0) scale(1);
}

.gothic-up-main-nav ul ul li {
    position: relative;
}

/* Right Controls Container */
.gothic-up-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Language and Search group */
.gothic-up-lang-search-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 12px;
}

/* Language Switcher Dropdown */
.gothic-up-lang-switcher {
    position: relative;
    margin: 0;
}

.gothic-up-lang-toggle {
    padding: 8px 12px;
    color: #d0d0d0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.gothic-up-lang-toggle::after {
    content: "▼";
    font-size: 0.5rem;
    transition: transform 0.3s ease;
}

.gothic-up-lang-switcher:hover .gothic-up-lang-toggle::after,
.gothic-up-lang-switcher.active .gothic-up-lang-toggle::after {
    transform: rotate(180deg);
}

.gothic-up-lang-toggle:hover {
    color: #e4002b;
}

.gothic-up-lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 100px;
    background: #0d0d0d;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-15px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 5px 20px rgba(0,0,0,0.9);
    z-index: 1000;
}

.gothic-up-lang-switcher:hover .gothic-up-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.gothic-up-lang-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: color 0.2s ease, padding-left 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.gothic-up-lang-dropdown a:hover,
.gothic-up-lang-dropdown a.active {
    color: #e4002b;
    padding-left: 20px;
}

/* Search Icon */
.gothic-up-search-toggle {
    background: none;
    border: none;
    color: #d0d0d0;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
    position: relative;
    margin: 0;
}

.gothic-up-search-toggle:hover {
    color: #e4002b;
}

/* Social Media Icons Styles */
.gothic-up-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
}

.gothic-up-social-icons a {
    color: #d0d0d0;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.gothic-up-social-icons a:hover {
    transform: translateY(-2px);
}

/* Individual social media hover colors */
.gothic-up-social-icons a:hover .fa-facebook-f {
    color: #4267B2;
}

.gothic-up-social-icons a:hover .fa-discord {
    color: #7289DA;
}

.gothic-up-social-icons a:hover .fa-youtube {
    color: #FF0000;
}

/* Social Media Icons - Desktop visibility */
@media (max-width: 991px) {
    .gothic-up-social-icons {
        display: none !important;
    }
}

/* Social Media Icons in Mobile Menu */
.gothic-up-mobile-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    margin-bottom: 10px;
}

.gothic-up-mobile-social a {
    color: #d0d0d0 !important;
    font-size: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
    text-decoration: none !important;
    overflow: visible !important;
    position: relative !important;
}

.gothic-up-mobile-social a::before {
    display: none !important;
}

.gothic-up-mobile-social a:hover {
    transform: translateY(-2px);
    background: transparent !important;
    padding: 0 !important;
    padding-left: 0 !important;
    border-bottom: none !important;
}

.gothic-up-mobile-social a i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.gothic-up-mobile-social a:hover .fa-facebook-f {
    color: #4267B2;
}

.gothic-up-mobile-social a:hover .fa-discord {
    color: #7289DA;
}

.gothic-up-mobile-social a:hover .fa-youtube {
    color: #FF0000;
}

/* Mobile Menu Toggle */
.gothic-up-mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: #d0d0d0;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

@media (min-width: 992px) {
    .gothic-up-mobile-toggle {
        display: none;
    }
    
    .gothic-up-mobile-social {
        display: none;
    }
}

.gothic-up-mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #d0d0d0;
    margin: 5px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gothic-up-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.gothic-up-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* Mobile Menu */
.gothic-up-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background: #0d0d0d;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    padding-top: calc(60px + var(--admin-bar-height));
    font-family: 'Montserrat', sans-serif;
}

.gothic-up-mobile-menu.active {
    right: 0;
}

.gothic-up-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gothic-up-mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: #d0d0d0;
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.gothic-up-mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #8b0000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.gothic-up-mobile-menu a:hover {
    background: rgba(139, 0, 0, 0.2);
    color: #ffffff;
    padding-left: 30px;
}

.gothic-up-mobile-menu a:hover::before {
    transform: translateX(0);
}

.gothic-up-mobile-menu .menu-item-has-children > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gothic-up-mobile-menu .menu-item-has-children > a::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    transition: transform 0.3s ease;
    line-height: 1;
}

.gothic-up-mobile-menu .menu-item-has-children.active > a::after {
    transform: translateY(-50%) rotate(45deg);
}

.gothic-up-mobile-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0,0,0,0.5);
    padding-left: 20px;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.gothic-up-mobile-menu .sub-menu.active {
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.4s ease-in, opacity 0.3s ease-in;
}

/* Remove old animation */
@keyframes slideDownMobile {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Mobile Menu Overlay */
.gothic-up-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9997;
    display: none;
    backdrop-filter: blur(5px);
}

.gothic-up-mobile-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Search Form */
.gothic-up-search-form {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    padding: 15px;
    background: #0d0d0d;
    display: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.9);
    animation: slideDown 0.3s ease;
}

.gothic-up-search-form.active {
    display: block;
}

.gothic-up-search-form input {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(139, 0, 0, 0.5);
    color: #ffffff;
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.gothic-up-search-form input:focus {
    outline: none;
    border-color: #8b0000;
    background: rgba(255,255,255,0.15);
}

.gothic-up-search-form input::placeholder {
    color: #999;
    text-transform: uppercase;
    font-size: 0.7rem;
}

/* Body padding to account for fixed header */
body {
    padding-top: calc(80px + var(--admin-bar-height));
}


/* Touch device specific styles */
.touch-device .gothic-up-main-nav .menu-item-has-children > a,
.touch-device .gothic-up-main-nav .page_item_has_children > a {
    position: relative;
}

/* Show submenu when touch-opened */
.touch-device .gothic-up-main-nav .touch-opened > .sub-menu,
.touch-device .gothic-up-main-nav .touch-opened > .children,
.touch-device .gothic-up-main-nav .touch-opened > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Visual feedback on touch */
.touch-device .gothic-up-main-nav .touching > a {
    background: rgba(228, 0, 43, 0.1);
}

/* Visual indicator for items that have been tapped once */
.touch-device .gothic-up-main-nav .touch-opened > a {
    color: #e4002b;
}

.touch-device .gothic-up-main-nav .touch-opened > a::after {
    transform: rotate(180deg);
}

/* Ensure nested touch-opened menus also show */
.touch-device .gothic-up-main-nav .touch-opened .touch-opened > .sub-menu,
.touch-device .gothic-up-main-nav .touch-opened .touch-opened > .children {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

/* Small badge showing "tap again to follow" */
.touch-device .gothic-up-main-nav .touch-opened > a::before {
    content: "✓";
    position: absolute;
    left: 5px;
    color: #e4002b;
    font-size: 0.7rem;
    opacity: 0;
    animation: fadeInQuick 0.3s forwards;
}

@keyframes fadeInQuick {
    to {
        opacity: 1;
    }
}

/* Prevent text selection on double tap */
.touch-device .gothic-up-main-nav a {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .touch-device .gothic-up-main-nav > ul > li > a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Hide elements on smaller screens */
@media (max-width: 768px) {
    .gothic-up-lang-search-group {
        border-right: none;
        margin-right: 8px;
    }
    
    .gothic-up-lang-dropdown {
        left: auto;
        right: 0;
        transform: translateY(-15px);
    }
    
    .gothic-up-lang-switcher:hover .gothic-up-lang-dropdown {
        transform: translateY(0);
    }
}

/* Show only essential items on very small screens */
@media (max-width: 480px) {
    .gothic-up-lang-switcher {
        display: none;
    }
    
    .gothic-up-lang-search-group {
        border-left: none;
        padding-left: 0;
    }
}

/* Prevent first level menu from going off screen */
@media (min-width: 992px) {
    /* Removed static positioning - will be handled by JavaScript */
}

.gothic-up-mobile-menu .menu-item-type-custom > a,
.gothic-up-mobile-menu .menu-item-object-custom > a {
    color: #d0d0d0 !important;
}

/* Koniec Headera */
