/* Full-Screen Canvas Mobile Menu für Paperless-Cloud */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Content */
.mobile-menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
.mobile-menu-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Close Button */
.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.mobile-menu-close svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

/* Logo Section */
.mobile-menu-logo {
    margin-bottom: 2rem;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.2s;
}

.mobile-menu-overlay.active .mobile-menu-logo {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-logo .logo-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-logo h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navigation Links */
.mobile-menu-nav {
    width: 100%;
    max-width: 20rem;
    margin-bottom: 2rem;
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav li {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-menu-nav li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-menu-nav li:nth-child(1) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-menu-nav li:nth-child(2) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-menu-nav li:nth-child(3) { transition-delay: 0.5s; }
.mobile-menu-overlay.active .mobile-menu-nav li:nth-child(4) { transition-delay: 0.6s; }

.mobile-menu-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    border-radius: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.mobile-menu-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Call to Action Section */
.mobile-menu-cta {
    width: 100%;
    max-width: 20rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.7s;
}

.mobile-menu-overlay.active .mobile-menu-cta {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-cta h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-menu-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.mobile-menu-cta .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-cta .btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
    padding: 1rem 2rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.mobile-menu-cta .btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mobile-menu-cta .btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.mobile-menu-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}


/* Hamburger Button Animation */
.hamburger-button {
    position: relative;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-button:hover {
    transform: scale(1.1);
}

.hamburger-button span {
    display: block;
    width: 100%;
    height: 2px;
    background: #374151;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-button.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .mobile-menu-content {
        padding: 1.5rem;
    }
    
    .mobile-menu-logo h2 {
        font-size: 1.75rem;
    }
    
    .mobile-menu-nav a {
        font-size: 1.1rem;
        padding: 0.875rem 1.25rem;
    }
    
    .mobile-menu-cta h3 {
        font-size: 1.25rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hamburger-button span {
        background: #d1d5db;
    }
}
