/* Mobile Menu Styles for Rohi Prathana Bhawan */
/* Extracted from header_component.php for better performance */

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Mobile Navigation Container */
.mobile-nav-container {
    position: fixed;
    top: 0;
    right: -60%;
    width: 60%;
    height: 100vh;
    background: #4169E1;
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-container.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-nav-header {
    padding: 15px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    backdrop-filter: blur(10px);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-brand-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-brand-text h3 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px 0;
}

.mobile-brand-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    margin: 0;
    font-weight: 400;
}

.mobile-close-btn {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile Menu Content */
.mobile-nav-content {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
}

.mobile-nav-section {
    margin-bottom: 20px;
    padding: 0 15px;
}

.mobile-section-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-section-title i {
    font-size: 16px;
    opacity: 0.8;
}

/* Navigation Links */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::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.6s;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mobile-link-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-link-content {
    flex: 1;
}

.mobile-link-title {
    display: block;
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 1px;
}

.mobile-link-desc {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 9px;
    font-weight: 400;
}

.mobile-link-arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover .mobile-link-arrow {
    color: white;
    transform: translateX(5px);
}

/* Mobile Desktop Auth Buttons */
.mobile-desktop-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-auth-desktop {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.mobile-auth-desktop.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-auth-desktop.btn-outline:hover {
    background: white;
    color: #4169E1;
    border-color: white;
    transform: translateY(-2px);
}

.mobile-auth-desktop.btn-primary {
    background: #ff8000;
    color: white;
    border: 2px solid #ff8000;
}

.mobile-auth-desktop.btn-primary:hover {
    background: #ffaa00;
    border-color: #ffaa00;
    transform: translateY(-2px);
}

/* Social Grid */
.mobile-social-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mobile-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-social-btn span {
    display: none;
}

.mobile-social-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.mobile-social-btn i {
    font-size: 18px;
}

/* Social Button Colors */
.facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.youtube {
    background: linear-gradient(135deg, #ff0000, #ff5722);
}

.twitter {
    background: linear-gradient(135deg, #1da1f2, #42a5f5);
}

.whatsapp {
    background: linear-gradient(135deg, #25d366, #4caf50);
}

/* Mobile Menu Footer */
.mobile-nav-footer {
    padding: 10px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    backdrop-filter: blur(5px);
}

.mobile-nav-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 9px;
    margin: 2px 0;
}

.mobile-nav-footer i {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

.mobile-menu-toggle:hover::before {
    left: 100%;
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle.active {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2), rgba(255, 150, 150, 0.1));
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(180deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: #ff6b6b;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .mobile-nav-container {
        width: 70%;
        right: -70%;
    }
    
    .mobile-nav-container.active {
        right: 0;
    }
    
    .mobile-auth-desktop {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .mobile-nav-header {
        padding: 20px 15px;
    }
    
    .mobile-nav-section {
        padding: 0 15px;
    }
    
    .mobile-nav-footer {
        padding: 15px;
    }
    
    .mobile-brand-text h3 {
        font-size: 16px;
    }
    
    .mobile-link-title {
        font-size: 15px;
    }
}

/* Animation Classes */
.mobile-nav-link, .mobile-auth-btn, .mobile-social-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-container.active .mobile-nav-link:hover {
    animation: linkPulse 0.6s ease-in-out;
}

@keyframes linkPulse {
    0%, 100% { transform: translateX(5px) scale(1); }
    50% { transform: translateX(8px) scale(1.02); }
}

.mobile-auth-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.mobile-social-btn:active {
    transform: translateY(-1px) scale(0.95);
}
