/**
 * Gire Hamburger Menu Widget Styles
 */

/* Hamburger Button */
.gire-hamburger-button {
    z-index: 999999;
    background: transparent;
    border: 2px solid #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    /* Prevent initial sliding animation */
    animation: none !important;
    transform: none !important;
    margin-top:35px;
}

/* Override theme button styles specifically for hamburger button - without !important for widget settings */
.gire-hamburger-menu-widget .gire-hamburger-button,
.gire-hamburger-menu-widget button.gire-hamburger-button {
    background-color: transparent;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: 0;
    text-align: center;
    white-space: normal;
    user-select: none;
}

/* Button Circle */
.gire-button-circle {
    width: 80px;
    height: 80px;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Sticky positioning */
.gire-hamburger-button.sticky {
    position: fixed;
    /* Ensure immediate positioning without animation */
    animation: none !important;
    transform: none !important;
}

/* Absolute positioning */
.gire-hamburger-button.absolute {
    position: absolute;
    /* Ensure immediate positioning without animation */
    animation: none !important;
    transform: none !important;
}

/* Static positioning */
.gire-hamburger-button:not(.sticky):not(.absolute) {
    position: relative;
    margin: 20px;
}

.gire-hamburger-button:hover {
    border: 2px solid #4a90e2;
    color: #4a90e2 !important;
}
.gire-hamburger-button:hover .gire-menu-text {
    color: #4a90e2 !important;
}

.gire-hamburger-button:hover .gire-button-circle {
    transform: rotate(360deg);
}

.gire-hamburger-button:hover svg {
  color: #4a90e2 !important;
}

.gire-hamburger-button:hover .gire-custom-icon {
    filter: brightness(0) saturate(100%) invert(45%) sepia(92%) saturate(1352%) hue-rotate(204deg) brightness(91%) contrast(88%);
}

.gire-menu-icon {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.gire-custom-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
    transition: all 0.3s ease;
}

.gire-hamburger-button svg {
    color: #1f2937;
    transition: all 0.3s ease;
}

.gire-menu-text {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 12px;
}

/* Hide hamburger button when menu is open */
.gire-hamburger-menu-widget.menu-open .gire-hamburger-button {
    display: none !important;
}

/* Menu Close Button */
.gire-menu-close-button {
    position: absolute;
    top: 7px;
    right: 20px;
    z-index: 999999;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 16px;
    gap: 8px;
}

.gire-menu-close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
    color: #ffffff !important;
}

.gire-menu-close-button svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.8) !important;
}

.gire-menu-close-button:hover svg {
    stroke: #ffffff !important;
}

/* Menu Overlay */
.gire-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: all 0.5s ease;
}

.gire-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Background */
.gire-menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f2937 0%, #4a90e2 50%, #357abd 100%);
}

/* Animated background elements */
.gire-bg-element {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(40px);
    opacity: 0.2;
    animation: gire-float 6s ease-in-out infinite;
}

.gire-bg-element-1 {
    top: 80px;
    left: 80px;
    width: 256px;
    height: 256px;
    background-color: #4a90e2;
    animation-delay: 0s;
}

.gire-bg-element-2 {
    bottom: 80px;
    right: 80px;
    width: 320px;
    height: 320px;
    background-color: #357abd;
    animation-delay: 1s;
}

.gire-bg-element-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 288px;
    height: 288px;
    background-color: #005bac;
    animation-delay: 2s;
}

@keyframes gire-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Menu Content */
.gire-menu-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gire-menu-container {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

/* Menu Views */
.gire-menu-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
}

.gire-menu-view.active {
    opacity: 1;
    transform: translateX(0);
}

.gire-menu-view.slide-out {
    transform: translateX(-100%);
}

/* Main Menu Header */
.gire-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 32px 48px;
}

.gire-menu-logo {
    text-align: center;
}

.gire-logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gire-logo-circle span {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
}

.gire-logo-image {
    width: 120px;
    height: auto;
    margin: 0 auto 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gire-logo-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.gire-menu-logo h1 {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: 0.05em;
}

.gire-menu-logo p {
    font-size: 18px;
    color: #d1d5db;
    margin: 0;
}

/* Main Navigation */
.gire-main-navigation {
    padding: 0 32px;
    max-width: 512px;
    margin: 0 auto;
    width: 100%;
}

.gire-menu-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.gire-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(30px);
    opacity: 0;
    animation: gire-fadeInUp 0.6s ease-out forwards;
}

.gire-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gire-menu-item-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gire-menu-item-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    flex-shrink: 0;
}

.gire-icon-placeholder {
    display: none;
}

.gire-menu-item-label {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s ease;
}

.gire-menu-item:hover .gire-menu-item-label {
    color: #f3f4f6;
}

.gire-menu-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gire-submenu-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.gire-chevron-right {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.gire-menu-item:hover .gire-chevron-right {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(8px);
}

.gire-direct-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.gire-external-link {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.gire-menu-item:hover .gire-external-link {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
}

/* Quick Links */
.gire-quick-links {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.gire-quick-links h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 24px;
    text-align: center;
}

.gire-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gire-quick-link {
    text-align: center;
    padding: 12px 16px;
    color: #d1d5db;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(30px);
    opacity: 0;
    animation: gire-fadeInUp 0.6s ease-out forwards;
}

.gire-quick-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Submenu Styles */
.gire-submenu-header {
    padding: 24px 32px 48px;
    position: relative;
}

/* Submenu logo spacing to avoid overlap with back button */
.gire-submenu-logo {
    margin-top: 60px;
    text-align: center;
}

/* Back button positioned at top left */
.gire-back-button-top {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    font-size: 16px !important;
    z-index: 999 !important;
}

.gire-back-button-top:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateX(-4px) !important;
}

/* Original back button (for backward compatibility) */
.gire-back-button:not(.gire-back-button-top) {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    margin-bottom: 32px !important;
    transition: all 0.3s ease !important;
    font-size: 18px !important;
}

.gire-back-button:not(.gire-back-button-top):hover {
    color: #ffffff !important;
    transform: translateX(-8px) !important;
}

.gire-submenu-title {
    text-align: center;
    margin-top: 40px;
}

.gire-submenu-title-text {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.05em;
}

.gire-submenu-icon {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Remove old styles */
.gire-submenu-title h1 {
    display: none;
}

.gire-submenu-title p {
    display: none;
}

/* Submenu Navigation */
.gire-submenu-navigation {
    flex: 1;
    padding: 0 32px;
    max-width: 512px;
    margin: 0 auto;
    width: 100%;
}

.gire-submenu-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gire-submenu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(30px);
    opacity: 0;
    animation: gire-fadeInUp 0.6s ease-out forwards;
}

.gire-submenu-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gire-submenu-item-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gire-submenu-item-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    flex-shrink: 0;
}

.gire-submenu-item-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px;
    transition: color 0.3s ease;
}

.gire-submenu-item-text p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
    transition: color 0.3s ease;
}

.gire-submenu-item:hover .gire-submenu-item-text h3 {
    color: #f3f4f6;
}

.gire-submenu-item:hover .gire-submenu-item-text p {
    color: #d1d5db;
}

.gire-submenu-arrow {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.gire-submenu-item:hover .gire-submenu-arrow {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
}

/* Footer */
.gire-menu-footer {
    flex-shrink: 0;
    padding: 20px 16px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.gire-menu-footer p {
    color: #9ca3af;
    font-size: 12px;
    margin: 0 0 12px;
}

.gire-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
}

.gire-social-link {
    text-decoration: none;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.gire-social-link:hover {
    color: #ffffff;
}

.gire-social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gire-social-link:hover .gire-social-icon {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Font Awesome icon styling */
.gire-social-fa-icon {
    font-size: 16px !important;
    fill: #ffffff !important;
    transition: all 0.3s ease;
    width: 1em !important;
    height: 1em !important;
}

.gire-social-link:hover .gire-social-fa-icon {
    fill: #ffffff !important;
    transform: scale(1.1);
}

/* Social Media Brand Colors */
.gire-social-link:hover .fa-facebook-f,
.gire-social-link:hover .fa-facebook {
    fill: #1877f2 !important;
}

.gire-social-link:hover .fa-twitter {
    fill: #1da1f2 !important;
}

.gire-social-link:hover .fa-instagram {
    fill: #e4405f !important;
}

.gire-social-link:hover .fa-linkedin-in,
.gire-social-link:hover .fa-linkedin {
    fill: #0077b5 !important;
}

.gire-social-link:hover .fa-youtube {
    fill: #ff0000 !important;
}

.gire-social-link:hover .fa-tiktok {
    fill: #000000 !important;
}

.gire-social-link:hover .fa-snapchat-ghost,
.gire-social-link:hover .fa-snapchat {
    fill: #fffc00 !important;
}

.gire-social-link:hover .fa-pinterest-p,
.gire-social-link:hover .fa-pinterest {
    fill: #bd081c !important;
}

.gire-social-link:hover .fa-whatsapp {
    fill: #25d366 !important;
}

.gire-social-link:hover .fa-telegram-plane,
.gire-social-link:hover .fa-telegram {
    fill: #0088cc !important;
}

.gire-social-link:hover .fa-yelp {
    fill: #d32323 !important;
}

/* Animations */
@keyframes gire-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Editor Preview */
.gire-hamburger-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.gire-hamburger-preview .gire-hamburger-button {
    position: static;
    margin: 0;
}

.gire-hamburger-preview .gire-button-circle {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 80px;
    height: 80px;
}

.gire-preview-text p {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 4px;
}

.gire-preview-text small {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gire-menu-header {
        padding: 80px 20px 32px;
    }
    
    .gire-submenu-header {
        padding: 24px 20px 32px;
    }
    
    .gire-main-navigation,
    .gire-submenu-navigation {
        padding: 0 20px;
    }
    
    .gire-menu-logo h1,
    .gire-submenu-title-text {
        font-size: 28px;
    }
    
    .gire-back-button-top {
        top: 16px !important;
        left: 16px !important;
        font-size: 14px !important;
        padding: 6px 10px !important;
    }
    
    .gire-menu-item-label {
        font-size: 20px;
    }
    
    .gire-menu-item,
    .gire-submenu-item {
        padding: 20px;
    }
    
    .gire-quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .gire-hamburger-button .gire-button-circle {
        width: 40px !important;
        height: 40px !important;
        padding: 2px !important;
    }
    
    .gire-hamburger-button .gire-menu-text {
        font-size: 11px !important;
        padding: 2px 4px !important;
        border-radius: 8px !important;
        margin-top: 4px !important;
    }
    
    .gire-hamburger-button .gire-menu-icon {
        width: 20px !important;
        height: 20px !important;
    }
    
    .gire-hamburger-button .gire-custom-icon {
        width: 36px !important;
        height: 36px !important;
    }
}

/* Medium mobile devices */
@media (max-width: 600px) {
    .gire-hamburger-button .gire-button-circle {
        width: 40px !important;
        height: 40px !important;
        padding: 2px !important;
    }
    
    .gire-hamburger-button .gire-menu-text {
        font-size: 10px !important;
        padding: 2px 4px !important;
        border-radius: 6px !important;
        margin-top: 3px !important;
    }
    
    .gire-hamburger-button .gire-menu-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    .gire-hamburger-button .gire-custom-icon {
        width: 34px !important;
        height: 34px !important;
    }
}

@media (max-width: 480px) {
    .gire-hamburger-button.sticky {
        top: 16px !important;
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;
    }
    
    .gire-hamburger-button .gire-button-circle {
        width: 40px !important;
        height: 40px !important;
        padding: 2px !important;
    }
    
    .gire-hamburger-button .gire-menu-text {
        font-size: 9px !important;
        padding: 1px 3px !important;
        border-radius: 6px !important;
        margin-top: 2px !important;
    }
    
    .gire-hamburger-button .gire-menu-icon {
        width: 16px !important;
        height: 16px !important;
    }
    
    .gire-hamburger-button .gire-custom-icon {
        width: 32px !important;
        height: 32px !important;
    }
    
    .gire-menu-header {
        padding: 70px 16px 24px;
    }
    
    .gire-submenu-header {
        padding: 20px 16px 24px;
    }
    
    .gire-back-button-top {
        top: 12px !important;
        left: 12px !important;
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
    
    .gire-main-navigation,
    .gire-submenu-navigation {
        padding: 0 16px;
    }
    
    .gire-menu-logo h1,
    .gire-submenu-title-text {
        font-size: 24px;
    }
    
    .gire-menu-item-content {
        gap: 16px;
    }
    
    .gire-menu-item-label {
        font-size: 18px;
    }
    
    .gire-submenu-item-text h3 {
        font-size: 18px;
    }
    
    /* Social icons responsive sizing */
    .gire-menu-footer {
        padding: 16px 12px;
    }
    
    .gire-menu-footer p {
        font-size: 11px;
        margin: 0 0 8px;
    }
    
    .gire-social-links {
        gap: 12px;
    }
    
    .gire-social-icon {
        width: 36px;
        height: 36px;
    }
    
    .gire-social-fa-icon {
        font-size: 14px !important;
        width: 1em !important;
        height: 1em !important;
    }
}
