/* ═══ Mobile Menu Styles ═══ */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Hamburger animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Panel */
.mobile-menu {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 380px;
    background: #fff;
    z-index: 9999;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.mobile-menu.active {
    transform: translateX(0);
}

/* Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.mobile-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e9e5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.mobile-avatar span {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}
.mobile-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mobile-user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-user-email {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.mobile-menu-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Session badge */
.mobile-session-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 16px;
    padding: 10px 14px;
    background: rgba(0, 200, 83, 0.08);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
}
.mobile-session-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #1e293b;
}
.mobile-session-dot {
    width: 8px;
    height: 8px;
    background: #00C853;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
    flex-shrink: 0;
}
.mobile-session-leave {
    background: rgba(255, 82, 82, 0.1);
    color: #FF5252;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* Body (scrollable) */
.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
}

/* Navigation links */
.mobile-menu-links {
    list-style: none;
    padding: 0 8px;
    margin: 0;
}

.mobile-nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 8px 16px 4px;
}

.mobile-menu-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.mobile-menu-links li a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: #64748b;
    flex-shrink: 0;
}
.mobile-menu-links li a:hover,
.mobile-menu-links li a:active {
    background: #f8fafc;
    color: #6C5CE7;
}
.mobile-menu-links li a:hover i,
.mobile-menu-links li a:active i {
    color: #6C5CE7;
}

.mobile-link-highlight {
    color: #6C5CE7 !important;
}
.mobile-link-highlight i {
    color: #6C5CE7 !important;
}

.mobile-link-games {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: white !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 12px rgba(249,115,22,0.25);
    margin-top: 4px;
}
.mobile-link-games i {
    color: white !important;
    font-size: 1.15rem !important;
}

/* Bottom actions */
.mobile-menu-actions {
    padding: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.mobile-action-session {
    background: linear-gradient(135deg, #ff6d00, #fbbd15);
    color: white;
}
.mobile-action-session:active {
    transform: scale(0.98);
}

.mobile-action-primary {
    background: #e9e5f5;
    color: white;
}
.mobile-action-primary:active {
    transform: scale(0.98);
}

.mobile-action-secondary {
    background: #f1f5f9;
    color: #334155;
}
.mobile-action-secondary:active {
    background: #e2e8f0;
}

.mobile-action-logout {
    background: rgba(239, 68, 68, 0.08);
    color: #EF4444;
}
.mobile-action-logout:active {
    background: rgba(239, 68, 68, 0.15);
}

/* Nav CTA (single primary action) */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6d00, #fbbd15);
    color: white !important;
    padding: 7px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(255,109,0,0.25);
    transition: all 0.2s ease;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,109,0,0.35);
}
.nav-cta-price {
    background: rgba(255,255,255,0.25);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 900;
}

/* Nav Login (text link) */
.nav-login {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-login:hover {
    background: rgba(108,92,231,0.06);
    color: var(--primary-purple);
}

/* Responsive nav CTA */
@media (max-width: 1200px) {
    .nav-cta { padding: 6px 14px; font-size: 0.82rem; }
    .nav-cta-price { font-size: 0.78rem; padding: 2px 6px; }
}
@media (max-width: 992px) and (min-width: 600px) {
    .nav-cta { padding: 5px 11px; font-size: 0.78rem; }
    .nav-cta-price { font-size: 0.74rem; }
    .nav-login { font-size: 0.8rem; padding: 5px 10px; }
}

/* Clases link in Mobile Menu */
.mobile-link-clases {
    background: linear-gradient(135deg, #ff6d00, #fbbd15) !important;
    color: white !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 12px rgba(255,109,0,0.25);
    margin-top: 4px;
}
.mobile-link-clases i {
    color: white !important;
    font-size: 1.15rem !important;
}

/* Prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
}

/* Hide mobile menu on 600px+ (nav-links visible from 600px) */
@media (min-width: 600px) {
    .mobile-menu {
        display: none !important;
    }
    .mobile-overlay {
        display: none !important;
    }
}
