/**
 * Modern Mobile UI Styles
 * Ultra-modern, catchy mobile experience with all the bells and whistles
 */

/* ============================================
   MODERN MOBILE MENU
   ============================================ */

.modern-mobile-menu {
    width: 85vw !important;
    max-width: 380px;
    background: linear-gradient(180deg, #1a1a1e 0%, #0f0f12 100%);
    border-left: none;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
}

/* Menu Header with Gradient */
.mobile-menu-header {
    background: linear-gradient(135deg, #1ca4d3 0%, #1584b3 100%);
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.mobile-menu-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.mobile-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.btn-close-modern {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-close-modern:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.btn-close-modern i {
    font-size: 1.1rem;
}

/* Quick Stats Banner */
.mobile-stats-banner {
    background: rgba(28, 164, 211, 0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 1.5rem;
    color: #1ca4d3;
}

.stat-value {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

/* Modern Navigation */
.mobile-nav-modern {
    padding: 1rem 0;
}

.nav-item-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-item-modern:hover {
    background: rgba(28, 164, 211, 0.1);
}

.nav-item-modern:hover::before {
    transform: translateX(0);
}

.nav-item-modern:active {
    transform: scale(0.98);
}

/* Icon Wrappers with Colors */
.nav-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.nav-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item-modern:hover .nav-icon-wrapper::before {
    opacity: 1;
}

.nav-icon-wrapper.home {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-icon-wrapper.packages {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.nav-icon-wrapper.payments {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.nav-icon-wrapper.support {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.nav-icon-wrapper.status {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.nav-icon-wrapper.contact {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

/* Navigation Content */
.nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.nav-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.nav-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

/* Compact Nav Items */
.nav-item-modern.nav-item-compact {
    padding: 0.85rem 1.25rem;
}

.nav-item-modern.nav-item-compact .nav-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.nav-item-modern.nav-item-compact .nav-title {
    font-size: 0.95rem;
}

/* Section Headers */
.nav-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-section-header i {
    font-size: 0.9rem;
}

/* Status Badge */
.status-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(34, 197, 94, 0.15);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 600;
}

.status-badge i {
    font-size: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* CTA Section */
.mobile-cta-section {
    padding: 1.25rem;
    margin: 0.5rem 0;
}

.btn-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(28, 164, 211, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-mobile-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-mobile-cta:hover::before {
    width: 300px;
    height: 300px;
}

.btn-mobile-cta:active {
    transform: scale(0.97);
}

.btn-mobile-cta i {
    position: relative;
    z-index: 1;
}

.btn-mobile-cta span {
    position: relative;
    z-index: 1;
}

/* Quick Contact Section */
.mobile-quick-contact {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-contact-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-align: center;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.quick-contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-contact-btn:hover {
    background: rgba(28, 164, 211, 0.2);
    border-color: #1ca4d3;
    transform: translateY(-2px);
}

.quick-contact-btn.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
}

.quick-contact-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25D366;
}

.quick-contact-btn i {
    font-size: 1.5rem;
    color: #1ca4d3;
}

.quick-contact-btn.whatsapp i {
    color: #25D366;
}

.quick-contact-btn span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   MODERN FAB (Floating Action Button) MENU
   ============================================ */

.mobile-fab-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 30, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0.5rem calc(0.75rem + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.fab-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
}

.fab-item:hover {
    background: rgba(28, 164, 211, 0.2);
    color: #1ca4d3;
    border-color: rgba(28, 164, 211, 0.3);
    transform: translateY(-4px) scale(1.05);
}

.fab-item:active {
    transform: translateY(-2px) scale(0.95);
}

.fab-item i {
    font-size: 1.3rem;
}

/* Primary FAB (WhatsApp) */
.fab-item.fab-primary {
    background: linear-gradient(135deg, #25D366 0%, #1ea952 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.fab-item.fab-primary:hover {
    background: linear-gradient(135deg, #2ee673 0%, #25D366 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: translateY(-6px) scale(1.1);
}

/* CTA FAB (Sign Up) */
.fab-item.fab-cta {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(28, 164, 211, 0.4);
}

.fab-item.fab-cta:hover {
    background: linear-gradient(135deg, #1584b3 0%, #1ca4d3 100%);
    box-shadow: 0 6px 20px rgba(28, 164, 211, 0.6);
    transform: translateY(-6px) scale(1.1);
}

/* Tooltip */
.fab-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.fab-item::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fab-item:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.fab-item:hover::after {
    opacity: 1;
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

/* Remove custom slide animation to prevent double animation with Bootstrap offcanvas */
/* Bootstrap offcanvas already handles the slide-in smoothly */

/* Stagger animation for nav items */
.mobile-nav-modern .nav-item-modern,
.mobile-nav-modern .nav-section-header {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.mobile-nav-modern .nav-item-modern:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-modern .nav-item-modern:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-modern .nav-item-modern:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-modern .nav-section-header { animation-delay: 0.25s; }
.mobile-nav-modern .nav-item-modern:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-modern .nav-item-modern:nth-child(6) { animation-delay: 0.35s; }
.mobile-nav-modern .nav-item-modern:nth-child(7) { animation-delay: 0.4s; }


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ripple effect on touch */
.nav-item-modern,
.quick-contact-btn,
.fab-item {
    position: relative;
    overflow: hidden;
}

.nav-item-modern::after,
.quick-contact-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.nav-item-modern:active::after,
.quick-contact-btn:active::after {
    width: 300px;
    height: 300px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 375px) {
    .mobile-stats-banner {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 0.8rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .fab-item {
        width: 48px;
        height: 48px;
    }
    
    .fab-item i {
        font-size: 1.2rem;
    }
}

@media (min-width: 576px) {
    .mobile-fab-menu {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .modern-mobile-menu {
        background: linear-gradient(180deg, #0a0a0c 0%, #000000 100%);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
