/* Floating Support Button Styles - Minimal Design */

.floating-support {
    position: fixed;
    z-index: 9999;
    bottom: 30px;
    right: 30px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: floatingSupportEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

.floating-support--bottom-left {
    right: auto;
    left: 30px;
}

/* RTL Support for Floating Support Button */
[dir="rtl"] .floating-support:not(.floating-support--bottom-left) {
    right: 30px;
    left: auto;
}

[dir="rtl"] .floating-support--bottom-left {
    left: 30px;
    right: auto;
}

.floating-support__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    background: #000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

/* Pulse ring animation */
.floating-support__button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: floatingSupportPulse 2s ease-out infinite;
    pointer-events: none;
}

/* Second pulse ring with delay */
.floating-support__button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: floatingSupportPulse 2s ease-out 1s infinite;
    pointer-events: none;
}

/* Remove old pulse rings element */
.floating-support__pulse-ring {
    display: none;
}

.floating-support__button:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.floating-support__button:hover::before,
.floating-support__button:hover::after {
    animation: none;
    opacity: 0;
}

.floating-support__button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.floating-support__icon-wrapper {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.floating-support__icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.floating-support__button:hover .floating-support__icon {
    transform: scale(1.1);
}

/* Animations - Soft & Attractive */
@keyframes floatingSupportEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Soft pulse animation */
@keyframes floatingSupportPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Keep these for compatibility */
@keyframes floatingSupportFloat {
    0%, 100% {
        transform: translateY(0);
    }
}

@keyframes floatingSupportRingPulse {
    0%, 100% {
        opacity: 0;
    }
}

@keyframes floatingSupportExpandRing {
    0%, 100% {
        opacity: 0;
    }
}

@keyframes floatingSupportIconBreathe {
    0%, 100% {
        transform: scale(1);
    }
}

@keyframes floatingSupportIconShake {
    0%, 100% {
        transform: scale(1);
    }
}

.floating-support__text {
    display: none;
}

.floating-support__ripple {
    display: none;
}

.floating-support__button:active .floating-support__ripple {
    display: none;
}

@keyframes floatingSupportRipple {
    0%, 100% {
        opacity: 0;
    }
}

/* Popup Styles - Minimal */
.floating-support__popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.floating-support__popup.floating-support__popup--active {
    opacity: 1;
    visibility: visible;
}

.floating-support__popup-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.floating-support__popup--active .floating-support__popup-content {
    transform: translateY(0);
}

.floating-support__popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    border-radius: 50%;
    z-index: 1;
}

.floating-support__popup-close:hover {
    background: #eee;
    color: #000;
}

.floating-support__popup-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.floating-support__popup-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.floating-support__popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.floating-support__popup-body {
    padding: 24px;
}

.floating-support__popup-message {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.floating-support__popup-actions {
    display: flex;
    gap: 8px;
}

.floating-support__popup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex: 1;
}

.floating-support__popup-link:hover {
    background-color: #222;
}

/* Responsive Styles - Minimal */

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .floating-support {
        bottom: 20px;
        right: 20px;
    }

    .floating-support--bottom-left {
        left: 20px;
    }

    .floating-support__button {
        width: 48px;
        height: 48px;
    }

    .floating-support__icon-wrapper {
        width: 20px;
        height: 20px;
    }

    .floating-support__icon {
        width: 20px;
        height: 20px;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .floating-support {
        bottom: 16px;
        right: 16px;
    }

    .floating-support--bottom-left {
        left: 16px;
    }

    .floating-support__button {
        width: 46px;
        height: 46px;
    }

    .floating-support__icon-wrapper {
        width: 18px;
        height: 18px;
    }

    .floating-support__icon {
        width: 18px;
        height: 18px;
    }

    .floating-support__popup-content {
        max-width: 90%;
        border-radius: 14px;
    }
    
    .floating-support__popup-header {
        padding: 20px 20px 14px 20px;
    }
    
    .floating-support__popup-title {
        font-size: 16px;
    }
    
    .floating-support__popup-body {
        padding: 20px;
    }
    
    .floating-support__popup-message {
        font-size: 13px;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .floating-support {
        bottom: 14px;
        right: 14px;
    }
    
    .floating-support--bottom-left {
        left: 14px;
    }

    .floating-support__button {
        width: 44px;
        height: 44px;
    }

    .floating-support__icon-wrapper {
        width: 18px;
        height: 18px;
    }

    .floating-support__icon {
        width: 18px;
        height: 18px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating-support,
    .floating-support__button,
    .floating-support__icon,
    .floating-support__popup,
    .floating-support__popup-content {
        transition: none !important;
        animation: none !important;
    }
    
    .floating-support {
        opacity: 1;
        transform: none;
    }
}

