/* 
 * mobile-fab.css - Premium Floating Action Button for ExplainMe Tool Pages
 * Specific for Mobile UI Enhancements
 */

.mobile-fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: none; /* Hidden by default, shown via media query */
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
    .mobile-fab-container {
        display: flex;
    }
}

/* Main Button */
.fab-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1002;
    animation: fab-glow 2s infinite;
}

.fab-main-btn:active {
    transform: scale(0.9);
}

.fab-main-btn .material-icons-round {
    font-size: 28px;
    transition: transform 0.3s ease;
}

.fab-container.active .fab-main-btn {
    background: #475569;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: none;
}

.fab-container.active .fab-main-btn .material-icons-round {
    transform: rotate(45deg);
}

/* Options Wrapper */
.fab-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-right: 4px;
}

.fab-container.active .fab-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Individual Option Button */
.fab-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 18px;
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #1E293B;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fab-option-btn:active {
    transform: scale(0.95);
    background: #F1F5F9;
}

.fab-option-btn .option-icon {
    font-size: 18px;
}

/* Glow Animation */
@keyframes fab-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Staggered animation for options when active */
.fab-container.active .fab-option-btn:nth-child(1) { transition-delay: 0.1s; }
.fab-container.active .fab-option-btn:nth-child(2) { transition-delay: 0.05s; }
