/* =========================================
   VERTICAL NAVIGATION & MOBILE ADAPTATION
   ========================================= */

/* ── Vertical indicators (Section Nav) ── */
.section-nav {
    position: fixed;
    left: 20px; /* Adjusted for better spacing */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center !important;
    gap: 12px;
    z-index: 1000; /* High z-index to stay above other elements */
    transition: all 0.4s ease;
}

.nav-dot {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    border: 1px solid rgba(232, 163, 79, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.nav-dot .dot-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    transition: all .4s ease;
}

.nav-dot.active {
    background: rgba(232, 163, 79, 0.2);
    border-color: rgba(232, 163, 79, 0.8);
    box-shadow: 0 0 15px rgba(232, 163, 79, 0.4);
}

.nav-dot.active .dot-icon {
    color: #fff;
    transform: scale(1.15);
}

.nav-dot:hover {
    transform: scale(1.1);
    border-color: rgba(232, 163, 79, 0.6);
    background: rgba(0, 0, 0, 0.8);
}

.nav-dot:hover .dot-icon {
    color: #e8a34f;
}

/* ── Mobile/Tablet Specific Overrides ── */
@media (max-width: 991px) {
    /* Ensure the top navbar is the primary meta-navigation on mobile */
    .section-nav {
        left: 10px;
        gap: 8px;
    }
    
    .nav-dot {
        width: 38px;
        height: 38px;
    }

    /* Fix body overflow for mobile scrolling sections */
    body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    /* Section content adjustments */
    .panel-content {
        padding-top: 80px !important;
        justify-content: flex-start !important;
    }

    /* Adjust character sizes for vertical screens */
    .class-character img {
        height: 45vh !important;
        width: auto;
    }

    .class-content {
        text-align: center !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }

    #class-title {
        font-size: 28px !important;
        margin-left: 0 !important;
    }

    .class-stats {
        align-items: center;
    }

    .stat-row {
        width: 100%;
        max-width: 300px;
    }

    /* Premium touch for mobile headers */
    .auth-title, .page-title, #class-title {
        text-shadow: 0 4px 10px rgba(0,0,0,0.8), 0 0 15px rgba(232, 163, 79, 0.3) !important;
    }

    /* Better spacing for modules on mobile */
    .card-modules {
        width: 95% !important;
        margin: 0 auto !important;
        max-height: 85vh !important;
        padding: 15px !important;
    }
}

/* ── Social Icons Mobile ── */
@media (max-width: 768px) {
    .rrss-icon {
        display: none !important; /* Solicitado por el usuario para limpiar vista */
    }
}

/* ========== COLLAPSED DOTS VERTICAL MENU (Idle/Premium Animation) ========== */
.section-nav {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1) !important;
}

/* Collapsed Dots Navigation (Idle state when not hovered) */
.section-nav.section-nav-collapsed:not(:hover) .nav-dot {
    width: 10px !important;
    height: 10px !important;
    margin: 0 auto !important; /* Center the dot in the navigation track */
    background: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
    opacity: 0.55;
    transform: scale(1) !important;
}

.section-nav.section-nav-collapsed:not(:hover) .nav-dot .dot-icon {
    opacity: 0 !important;
    transform: scale(0) !important;
}

.section-nav.section-nav-collapsed:not(:hover) .nav-dot.active {
    background: #e8a34f !important;
    border-color: #e8a34f !important;
    box-shadow: 0 0 12px #e8a34f !important;
    opacity: 1;
    transform: scale(1.3) !important;
}

/* ========== GLOBAL EVENT TIME (FAB) POSITIONING ========== */
.events-fab {
    position: fixed;
    z-index: 9999;
}

@media (max-width: 991px) {
    .events-fab {
        left: 15px;
        bottom: 10px;
    }
}

/* ========== SOCIAL SIDEBAR TOGGLE & SLIDE OUT ========== */
.rrss-icon-premium {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1) !important;
}

/* Collapsed state: slides exactly off-screen by translating right-offset (20px) + icons width (48px with borders) + separation (18px) = 86px */
.rrss-icon-premium.rrss-collapsed {
    transform: translateY(-50%) translateX(86px) !important;
}

.rrss-toggle-btn {
    background: url('../img/fon-bg-news.webp') center/cover no-repeat !important;
    border: 1px solid rgba(232, 163, 79, 0.6) !important;
    color: #e8a34f !important;
    width: 24px !important; /* Consistent premium width whether expanded or collapsed */
    height: 40px !important; /* Consistent premium height whether expanded or collapsed */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px 0 0 6px !important; /* Consistent premium border-radius */
    cursor: pointer !important;
    position: absolute !important;
    right: calc(100% + 18px) !important; /* Elegant 18px separation gap from the icons stack */
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5) !important;
    z-index: 100001 !important;
    transition: all 0.3s ease !important;
}

.rrss-toggle-btn:hover {
    color: #fff !important;
    border-color: rgba(232, 163, 79, 0.8) !important;
    box-shadow: -4px 0 15px rgba(232, 163, 79, 0.4) !important;
}

.rrss-toggle-btn i {
    font-size: 11px !important;
    transition: transform 0.3s ease !important;
}

/* Flip chevron when collapsed to face pull-out direction */
.rrss-icon-premium.rrss-collapsed .rrss-toggle-btn i {
    transform: rotate(180deg) !important;
}

/* ========== MOBILE COLLAPSED STATES & SPECIFIC POSITIONING ========== */
@media (max-width: 768px) {
    /* Mobile Collapsed State: slides exactly off-screen by translating right-offset (10px) + icons width (42px with borders) + separation (15px) = 67px */
    .rrss-icon-premium.rrss-collapsed {
        transform: translateY(-50%) translateX(67px) !important;
    }
    
    /* Mobile Toggle Button overrides for comfort and larger touch target */
    .rrss-toggle-btn {
        width: 30px !important; /* Locked consistent touch target size whether expanded or collapsed */
        height: 44px !important;
        border-radius: 8px 0 0 8px !important;
        right: calc(100% + 15px) !important; /* Elegant 15px separation gap from mobile icons stack */
    }
}

