/* Extracted from blocksy-child/functions.php on 2026-06-10 (perf: enqueue instead of inline). */
/* Reset and Base Styles */
.offcanvasMagicWrapper *,
.menuToggleGalaxy * {
    box-sizing: border-box;
}

/* Menu Toggle Button */
.menuToggleGalaxy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.menuToggleGalaxy:hover {
    transform: scale(1.05);
}

.hamburgerLinesCosmic {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menuToggleGalaxy:hover .hamburgerLinesCosmic {
    background-color: #ee212c;
}

/* Overlay */
.offcanvasOverlayDim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1998;
    backdrop-filter: blur(2px);
}

.offcanvasOverlayDim.active {
    opacity: 1;
    visibility: visible;
}

/* Off-Canvas Container */
.offcanvasMagicWrapper {
    position: fixed;
    top: 0;
    width: 350px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1999;
    opacity: 0;
    left: -100%;
    transform: translateX(-20px);
}

/* RTL Support */
.offcanvasMagicWrapper.rtl-mode {
    right: -100%;
    left: auto;
    transform: translateX(20px);
    direction: rtl;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
}

.offcanvasMagicWrapper.active {
    opacity: 1;
    transform: translateX(0);
}

.offcanvasMagicWrapper.active:not(.rtl-mode) {
    left: 0;
}

.offcanvasMagicWrapper.active.rtl-mode {
    right: 0;
}

/* Menu Portal Content */
.slideMenuPortal {
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

/* Close Button */
.canvasCloseNebula {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    z-index: 10;
}

.rtl-mode .canvasCloseNebula {
    right: auto;
    left: 15px;
}

.canvasCloseNebula:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

/* Logo Section */
.logoSpaceStation {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.logoImageOrbit {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

.logoImageOrbit:hover {
    transform: scale(1.05);
}

/* Search Box */
.searchPortalBox {
    margin-bottom: 30px;
}

.searchInputWrapper {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 2px;
}

.searchInputCosmic {
    flex: 1;
    padding: 12px 18px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #333;
    min-width: 0;
    text-align: left;
}

.rtl-mode .searchInputCosmic {
    text-align: right;
    direction: rtl;
}

.searchInputCosmic::placeholder {
    color: #999;
}

.searchButtonStar {
    padding: 10px;
    background: transparent;
    border: none;
    color: #ee212c;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.searchButtonStar:hover {
    background: rgba(238, 33, 44, 0.1);
    transform: scale(1.1);
}

/* Social Media Section */
.uniqueSocialOrbit {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    text-align: center;
}

.uniqueSocialOrbit a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.uniqueSocialOrbit a:hover {
    transform: translateY(-3px);
}

/* Navigation Menu */
.englishNavStar {
    flex: 1;
}

.offcanvasMenuList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvasMenuList li {
    margin-bottom: 8px;
}

.offcanvasMenuList a {
    display: block;
    padding: 16px 25px;
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 124, 186, 0.1);
    text-align: center;
}

.rtl-mode .offcanvasMenuList a {
    text-align: center;
    direction: rtl;
}

.offcanvasMenuList a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
}

.rtl-mode .offcanvasMenuList a::before {
    right: -100%;
    left: auto;
    transition: right 0.6s ease;
}

.offcanvasMenuList a:hover {
    background: #ffffff;
    color: #ee212c;
    transform: translateY(-2px);
    border-color: #ee212c;
}

.offcanvasMenuList a:hover::before {
    left: 100%;
}

.rtl-mode .offcanvasMenuList a:hover::before {
    right: 100%;
}

.offcanvasMenuList a:active {
    transform: translateY(0);
}

/* Submenu Styles */
.offcanvasMenuList .sub-menu {
    padding-left: 15px;
    margin-top: 8px;
}

.rtl-mode .offcanvasMenuList .sub-menu {
    padding-right: 15px;
    padding-left: 0;
}

.offcanvasMenuList .sub-menu a {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: #ffffff;
    border: 1px solid rgba(0, 124, 186, 0.08);
}

.offcanvasMenuList .sub-menu a:hover {
    background: #f8f9fa;
    color: #ee212c;
    transform: translateY(-1px);
}

/* No Menu Message */
.no-menu-message {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 0;
}

/* Tablet and Mobile Only */
@media (max-width: 1024px) {
    .menuToggleGalaxy {
        display: flex;
    }
}

@media (min-width: 1025px) {
    .menuToggleGalaxy,
    .offcanvasMagicWrapper,
    .offcanvasOverlayDim {
        display: none !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .offcanvasMagicWrapper {
        width: 300px;
        max-width: 90vw;
    }
    
    .slideMenuPortal {
        padding: 15px;
    }
    
    .logoImageOrbit {
        max-width: 150px;
        max-height: 60px;
    }
    
    .searchInputCosmic {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .offcanvasMagicWrapper {
        width: 380px;
    }
    
    .slideMenuPortal {
        padding: 12px;
    }
    
    .offcanvasMenuList a {
        padding: 12px 15px;
        font-size: 15px;
    }
}

/* Animation Enhancement */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.offcanvasMagicWrapper.active:not(.rtl-mode) {
    animation: slideInFromLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.offcanvasMagicWrapper.active.rtl-mode {
    animation: slideInFromRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Body scroll lock */
body.offcanvas-open {
    overflow: hidden !important;
}
