/* FAB (Floating Action Button) Styles */

/* FAB Container */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

/* FAB Wrapper */
.fab-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
}

/* FAB Panel - Arka plan, tıklandığında yukarı uzar */
.fab-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Aktif olduğunda panel yukarı uzar ve kırmızı olur */
.fab-container.active .fab-panel {
    height: 260px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 25px rgba(239, 68, 68, 0.5);
}

/* Ana FAB Butonu - En altta sabit */
.fab-main {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.fab-main:hover {

}

.fab-main i {
    font-size: 22px;
    color: #fff;
    transition: transform 0.3s ease;
}

.fab-container.active .fab-main i {
    transform: rotate(45deg);
}

/* FAB Menü - Butonları içerir */
.fab-menu {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    justify-content: flex-start;
}

.fab-container.active .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* FAB Item */
.fab-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-container.active .fab-item {
    opacity: 1;
    transform: scale(1);
}

.fab-container.active .fab-item:nth-child(1) { transition-delay: 0.1s; }
.fab-container.active .fab-item:nth-child(2) { transition-delay: 0.15s; }
.fab-container.active .fab-item:nth-child(3) { transition-delay: 0.2s; }
.fab-container.active .fab-item:nth-child(4) { transition-delay: 0.25s; }
.fab-container.active .fab-item:nth-child(5) { transition-delay: 0.3s; }

/* FAB Label - Tooltip solda */
.fab-label {
    position: absolute;
    right: 55px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.fab-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid rgba(0, 0, 0, 0.9);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

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

/* FAB Button */
.fab-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.fab-button i {
    font-size: 24px;
    color: #fff;
}

.fab-button:hover {
    background: #;
    transform: scale(1.1);
}

/* Warning Button */
.fab-button-warning {
    background: rgba(251, 191, 36, 0.4);
}

.fab-button-warning:hover {
    background: rgba(251, 191, 36, 0.6);
}

/* Scroll Top */
.fab-scroll-top {
    display: none;
}

.fab-scroll-top.visible {
    display: flex;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .fab-container {
        bottom: 16px;
        right: 16px;
    }

    .fab-wrapper {
        width: 52px;
        height: 52px;
    }

    .fab-panel {
        width: 52px;
        height: 52px;
        border-radius: 26px;
    }

    .fab-container.active .fab-panel {
        height: 240px;
    }

    .fab-main {
        width: 52px;
        height: 52px;
    }

    .fab-menu {
        bottom: 64px;
    }

    .fab-button {
        width: 38px;
        height: 38px;
    }

    .fab-label {
        display: none;
    }
}

