/*
Theme Name: Füchse Duisburg Theme
Description: Mobile Menu Styles - Modular CSS
Version: 1.0
File: mobile-menu.css
*/

/* ======================================
   NEUES MOBILE MENÜ DESIGN - SLIDE-IN VON LINKS
====================================== */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 999998; /* Higher than WordPress Admin Bar (99999) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Container für das neue mobile Menü */
.mobile-main-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: linear-gradient(145deg, #1a1b19 0%, #2a2b29 100%);
    z-index: 999999; /* Higher than WordPress Admin Bar (99999) */
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-main-menu {
        display: block;
    }
    
    .mobile-main-menu.active {
        left: 0;
    }
}

/* Mobile Menu Header */
.mobile-menu-header {
    padding: 5px 30px;
    background: linear-gradient(135deg, var(--fuechse-rot) 0%, #c50812 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.4);
}

.mobile-menu-close {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) rotate(90deg);
}

.mobile-menu-logo {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
}

.mobile-menu-logo img {
    height: 100%;
    width: auto;    max-width: 100%;
}

/* Online Shop Section */
.mobile-shop-section {
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-shop-header h3 {
    color: var(--text-weiss);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    opacity: 0.9;
    font-family: 'Redzone MediumReg', sans-serif;
}

.mobile-shop-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-shop-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.mobile-shop-nav ul li:last-child {
    border-bottom: none;
}

.mobile-shop-nav ul li:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mobile-shop-nav ul li a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.mobile-shop-nav ul li a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--fuechse-rot);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-shop-nav ul li a:hover {
    color: var(--fuechse-rot);
    padding-left: 25px;
}

.mobile-shop-nav ul li a:hover:before {
    transform: scaleY(1);
}

.mobile-shop-nav ul li.current-menu-item > a {
    color: var(--fuechse-rot);
    background: rgba(223, 9, 20, 0.08);
}

.mobile-shop-nav ul li.current-menu-item > a:before {
    transform: scaleY(1);
}

/* Dropdown Styling für Shop Menu */
.mobile-shop-nav ul li.dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    margin-right: 20px;
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.7;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.mobile-shop-nav ul li.dropdown.active > a::after {
    transform: rotate(180deg);
    color: var(--fuechse-rot);
    opacity: 1;
}

.mobile-shop-nav .dropdown-content {
    display: none;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    animation: slideDown 0.3s ease-out;
    pointer-events: auto;
}

.mobile-shop-nav .dropdown-content.active {
    display: block;
    pointer-events: auto;
}

.mobile-shop-nav .dropdown-content ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    list-style: none;
    width: 100%;
}

.mobile-shop-nav .dropdown-content li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    display: block;
    width: 100%;
}

.mobile-shop-nav .dropdown-content li:last-child {
    border-bottom: none;
}

.mobile-shop-nav .dropdown-content a {
    display: block;
    padding: 12px 25px 12px 40px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
}

.mobile-shop-nav .dropdown-content a:before {
    content: '›';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-shop-nav .dropdown-content a:hover {
    color: var(--fuechse-rot) !important;
    padding-left: 45px !important;
    background: rgba(223, 9, 20, 0.05);
}

.mobile-shop-nav .dropdown-content a:hover:before {
    color: var(--fuechse-rot);
    left: 30px;
}

/* Quick Actions Section */
.mobile-quick-actions {
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-quick-actions h3 {
    color: var(--text-weiss);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    opacity: 0.8;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-action-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-weiss);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.quick-action-btn:hover {
    background: linear-gradient(135deg, var(--fuechse-rot) 0%, #c50812 100%);
    border-color: var(--fuechse-rot);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(223, 9, 20, 0.3);
    color: var(--text-weiss); /* Weiße Textfarbe beibehalten */
}

.quick-action-btn:hover:before {
    left: 100%;
}

.quick-action-btn:hover i {
    color: var(--text-weiss); /* Icons bleiben weiß im Hover-Zustand */
}

.quick-action-btn i {
    margin-right: 6px;
    font-size: 14px;
}

/* Mobile Navigation */
.mobile-nav-section {
    padding: 10px 0;
}

.nav-left.mobile-nav {
    position: static;
    width: 100%;
    background: transparent;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.nav-left.mobile-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column; /* Vertikale Ausrichtung erzwingen */
    width: 100%;
}

.nav-left.mobile-nav ul li {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.nav-left.mobile-nav ul li:last-child {
    border-bottom: none;
}

.nav-left.mobile-nav ul li:hover {
    background: rgba(255, 255, 255, 0.03);
}

.nav-left.mobile-nav ul li a {
    display: block;
    width: 100%;
    padding: 18px 30px;
    color: var(--text-weiss);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Redzone MediumReg', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.nav-left.mobile-nav ul li a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--fuechse-rot);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-left.mobile-nav ul li a:hover {
    color: var(--fuechse-rot);
    padding-left: 35px;
}

.nav-left.mobile-nav ul li a:hover:before {
    transform: scaleY(1);
}

.nav-left.mobile-nav ul li.current-menu-item > a {
    color: var(--fuechse-rot);
    background: rgba(223, 9, 20, 0.1);
}

.nav-left.mobile-nav ul li.current-menu-item > a:before {
    transform: scaleY(1);
}

/* Dropdown Styling */
.nav-left.mobile-nav ul li.dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    margin-right: 50px;
    font-size: 14px;
    transition: transform 0.3s ease;
    opacity: 0.7;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.nav-left.mobile-nav ul li.dropdown.active > a::after {
    transform: rotate(180deg);
    color: var(--fuechse-rot);
    opacity: 1;
}

.mobile-nav .dropdown-content {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: slideDown 0.3s ease-out;
    pointer-events: auto;
}

.mobile-nav .dropdown-content.active {
    display: block;
    pointer-events: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 300px;
        transform: translateY(0);
    }
}

.mobile-nav .dropdown-content ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Vertikale Ausrichtung für Dropdown-Inhalte */
    list-style: none;
    width: 100%;
}

.mobile-nav .dropdown-content li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: block;
    width: 100%;
}

.mobile-nav .dropdown-content li:last-child {
    border-bottom: none;
}

.mobile-nav .dropdown-content a {
    display: block;
    padding: 14px 30px 14px 50px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    z-index: 999999; /* Ensure dropdown links are above WordPress Admin Bar */
}

.mobile-nav .dropdown-content a:before {
    content: '›';
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-nav .dropdown-content a:hover {
    color: var(--fuechse-rot) !important;
    padding-left: 55px !important;
    background: rgba(223, 9, 20, 0.05);
}

.mobile-nav .dropdown-content a:hover:before {
    color: var(--fuechse-rot);
    left: 40px;
}

/* Social Media Section */
.mobile-social-section {
    margin-top: auto;
    padding: 25px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-social-section h3 {
    color: var(--text-weiss);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    opacity: 0.8;
}

.mobile-social-links {
    display: flex;
    gap: 15px;
    justify-content: center; /* Social Media Buttons zentrieren */
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-weiss);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.mobile-social-links a:hover {
    background: var(--fuechse-rot);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(223, 9, 20, 0.4);
}

/* Copyright Footer */
.mobile-menu-footer {
    padding: 20px 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

/* Desktop: Mobile Menü ausblenden */
@media screen and (min-width: 769px) {
    .mobile-main-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Verbesserte Responsive Breakpoints */
@media screen and (max-width: 480px) {
    .mobile-main-menu {
        width: 95%;
        max-width: none;
    }
    
    .mobile-menu-header {
        padding: 20px 25px;
    }
      .mobile-quick-actions,
    .mobile-nav-section,
    .mobile-shop-section,
    .mobile-social-section {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .quick-action-btn {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .nav-left.mobile-nav ul li a {
        padding: 16px 25px;
        font-size: 15px;
    }
}

/* Touch-Optimierung */
@media (hover: none) and (pointer: coarse) {
    .quick-action-btn,
    .nav-left.mobile-nav ul li a,
    .mobile-nav .dropdown-content a,
    .mobile-shop-nav ul li a,
    .mobile-shop-nav .dropdown-content a {
        min-height: 44px; /* Apple empfohlene Mindest-Touch-Target-Größe */
    }
    
    .mobile-social-links a {
        width: 48px;
        height: 48px;
    }
}

/* Prefers Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .mobile-main-menu,
    .mobile-menu-overlay,
    .quick-action-btn,
    .nav-left.mobile-nav ul li a,
    .mobile-nav .dropdown-content,
    .mobile-shop-nav ul li a,
    .mobile-shop-nav .dropdown-content {
        transition: none;
    }
    
    .slideDown,
    .fadeIn {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .mobile-main-menu {
        background: #000;
        border: 2px solid #fff;
    }
      .quick-action-btn,
    .nav-left.mobile-nav ul li,
    .mobile-shop-nav ul li {
        border-color: #fff;
    }
    
    .nav-left.mobile-nav ul li a:before,
    .mobile-shop-nav ul li a:before {
        background: #fff;
    }
}

/* ======================================
   MOBILE MENU - HOVER UNDERLINE REMOVAL
====================================== */

/* Entfernt alle Hover-Underline-Effekte im mobilen Menü */
@media screen and (max-width: 768px) {
    /* Entfernt Unterlinien für alle Links im mobilen Menü */
    .mobile-main-menu a,
    .mobile-main-menu a:hover,
    .mobile-main-menu a:focus,
    .mobile-main-menu a:active,
    .nav-left.mobile-nav ul li a,
    .nav-left.mobile-nav ul li a:hover,
    .nav-left.mobile-nav ul li a:focus,
    .nav-left.mobile-nav ul li a:active,
    .mobile-nav .dropdown-content a,
    .mobile-nav .dropdown-content a:hover,
    .mobile-nav .dropdown-content a:focus,
    .mobile-nav .dropdown-content a:active {
        text-decoration: none !important;
        border-bottom: none !important;
    }
    
    /* Entfernt ::after Pseudo-Elemente, die Unterlinien erzeugen könnten */
    .mobile-main-menu a::after,
    .nav-left.mobile-nav ul li a::after,
    .mobile-nav .dropdown-content a::after {
        display: none !important;
        border-bottom: none !important;
        background: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    /* Spezielle Ausnahme für Dropdown-Pfeile - diese sollen bleiben */
    .nav-left.mobile-nav ul li.dropdown > a::after {
        display: block !important;
        content: '\f107' !important;
        font-family: 'Font Awesome 5 Free' !important;
        font-weight: 900 !important;
        position: absolute !important;
        right: 30px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        transition: transform 0.3s ease !important;
        font-size: 12px !important;
        color: var(--text-weiss) !important;
        opacity: 0.7 !important;
        border: none !important;
        background: none !important;
        width: auto !important;
        height: auto !important;
    }
    
    .nav-left.mobile-nav ul li.dropdown.active > a::after {
        transform: translateY(-50%) rotate(180deg) !important;
        color: var(--fuechse-rot) !important;
        opacity: 1 !important;
    }
    
    /* Entfernt alle Box-Shadow-Effekte, die wie Unterlinien aussehen könnten */
    .mobile-main-menu a,
    .nav-left.mobile-nav ul li a,
    .mobile-nav .dropdown-content a {
        box-shadow: none !important;
    }
}

/* ======================================
   WORDPRESS ADMIN BAR KOMPATIBILITÄT
====================================== */

/* Anpassungen für eingeloggte Benutzer mit Admin Bar */
.admin-bar .mobile-main-menu {
    top: 32px; /* Admin Bar Höhe auf Desktop */
    height: calc(100vh - 32px); /* Reduziere Höhe um Admin Bar */
}

.admin-bar .mobile-menu-overlay {
    top: 32px; /* Beginne Overlay unter der Admin Bar */
    height: calc(100vh - 32px); /* Reduziere Höhe um Admin Bar */
}

/* Mobile Admin Bar (schmaler) */
@media screen and (max-width: 782px) {
    .admin-bar .mobile-main-menu {
        top: 46px; /* Admin Bar ist auf Mobile 46px hoch */
        height: calc(100vh - 46px);
    }
    
    .admin-bar .mobile-menu-overlay {
        top: 46px;
        height: calc(100vh - 46px);
    }
}
