/**
 * Frontend styles for eslamdev-fcb Floating Buttons
 *
 * @package eslamdev-fcbFloatingButtons
 * @since 1.0.0
 */

/* Container */
.eslamdev-fcb-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* RTL Support */
[dir="rtl"] .eslamdev-fcb-container,
.rtl .eslamdev-fcb-container {
    right: auto;
    left: 20px;
    font-family: 'Tajawal', 'Arial', sans-serif;
}

/* Animation keyframes */
@keyframes eslamdev-fcb-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Base */
.eslamdev-fcb-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: eslamdev-fcb-fadeInUp 0.5s ease-out backwards;
    position: relative;
    outline: none;
    border: none;
    overflow: visible;
}

.eslamdev-fcb-button:nth-child(1) {
    animation-delay: 0.1s;
}

.eslamdev-fcb-button:nth-child(2) {
    animation-delay: 0.2s;
}

.eslamdev-fcb-button:nth-child(3) {
    animation-delay: 0.3s;
}

.eslamdev-fcb-button:nth-child(4) {
    animation-delay: 0.4s;
}

.eslamdev-fcb-button:nth-child(5) {
    animation-delay: 0.5s;
}

.eslamdev-fcb-button:nth-child(6) {
    animation-delay: 0.6s;
}

.eslamdev-fcb-button:nth-child(7) {
    animation-delay: 0.7s;
}

.eslamdev-fcb-button:nth-child(8) {
    animation-delay: 0.8s;
}

.eslamdev-fcb-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.eslamdev-fcb-button:active {
    transform: scale(1.05);
}

.eslamdev-fcb-button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Button Icons */
.eslamdev-fcb-button svg {
    width: 22px;
    height: 22px;
    fill: #fff !important;
    color: #fff !important;
    flex-shrink: 0;
}

.eslamdev-fcb-button:hover svg {
    fill: #fff !important;
    color: #fff !important;
}

.eslamdev-fcb-button img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Platform Colors */
.eslamdev-fcb-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.eslamdev-fcb-whatsapp:hover {
    background: linear-gradient(135deg, #2EE072 0%, #1BA36B 100%);
}

.eslamdev-fcb-telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
}

.eslamdev-fcb-telegram:hover {
    background: linear-gradient(135deg, #40B9F4 0%, #33ADE0 100%);
}

.eslamdev-fcb-discord {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
}

.eslamdev-fcb-discord:hover {
    background: linear-gradient(135deg, #6B76F4 0%, #5A65D4 100%);
}

.eslamdev-fcb-facebook {
    background: linear-gradient(135deg, #0084FF 0%, #0063D1 100%);
}

.eslamdev-fcb-facebook:hover {
    background: linear-gradient(135deg, #1A91FF 0%, #1A75E0 100%);
}





/* Labels - Always show on hover */
.eslamdev-fcb-label {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    margin-right: 12px;
    background: #1e1e1e;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.eslamdev-fcb-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1e1e1e;
}

/* RTL Label */
[dir="rtl"] .eslamdev-fcb-label,
.rtl .eslamdev-fcb-label {
    right: auto;
    left: 100%;
    margin-right: 0;
    margin-left: 12px;
    transform: translateY(-50%) translateX(-10px);
}

[dir="rtl"] .eslamdev-fcb-label::after,
.rtl .eslamdev-fcb-label::after {
    right: auto;
    left: -6px;
    border-left-color: transparent;
    border-right-color: #1e1e1e;
}

/* Show labels on hover - ONLY if enabled */
.eslamdev-fcb-show-labels .eslamdev-fcb-button:hover .eslamdev-fcb-label,
.eslamdev-fcb-show-labels .eslamdev-fcb-button:focus .eslamdev-fcb-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Mobile Responsive */
@media screen and (max-width: 480px) {
    .eslamdev-fcb-container {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    [dir="rtl"] .eslamdev-fcb-container,
    .rtl .eslamdev-fcb-container {
        right: auto;
        left: 15px;
    }

    .eslamdev-fcb-button {
        width: 45px;
        height: 45px;
    }

    .eslamdev-fcb-button svg,
    .eslamdev-fcb-button img {
        width: 20px;
        height: 20px;
    }

    .eslamdev-fcb-label {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .eslamdev-fcb-button,
    .eslamdev-fcb-label {
        transition: none;
        animation: none;
    }

    .eslamdev-fcb-button:hover {
        transform: none;
    }
}

/* Print styles - hide buttons */
@media print {
    .eslamdev-fcb-container {
        display: none !important;
    }
}
