/**
 * Floating Phone Widget Styles
 * Плаваюча іконка телефону з правого боку
 */

.floating-phone-widget {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 1000;
}

.floating-phone-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    color: white;
}

.floating-phone-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}

.floating-phone-button:active {
    transform: translateY(0);
}

.floating-phone-button .phone-icon {
    width: 24px;
    height: 24px;
}

/* Спливаюче меню */
.floating-phone-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    min-width: 280px;
}

.floating-phone-widget.active .floating-phone-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Номер телефону */
.floating-phone-number {
    display: block;
    padding: 18px 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.phone-number-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-number-content svg {
    flex-shrink: 0;
    color: #4CAF50;
}

.phone-number-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-number-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

.phone-number-value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.floating-phone-number:hover {
    background-color: #f5f5f5;
}

.floating-phone-number:hover .phone-number-value {
    color: #4CAF50;
}

/* Розділювач */
.floating-phone-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e0e0e0 20%, #e0e0e0 80%, transparent 100%);
    margin: 0 12px;
}

/* CTA Кнопка - як на головній */
.floating-phone-cta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 24px;
    background-color: #91d072;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 0 0 12px 12px;
    position: relative;
    overflow: hidden;
}

.cta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.floating-phone-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.floating-phone-cta:hover {
    background-color: #7bc05a;
    transform: translateY(-1px);
}

.floating-phone-cta:hover::before {
    width: 300px;
    height: 300px;
}

/* Анімація іконки при відкритті меню - темніший зелений */
.floating-phone-widget.active .floating-phone-button {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.5);
}

.floating-phone-widget.active .floating-phone-button .phone-icon {
    transform: rotate(135deg);
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .floating-phone-widget {
        right: 15px;
        bottom: 20px;
    }

    .floating-phone-button {
        width: 50px;
        height: 50px;
    }

    .floating-phone-button .phone-icon {
        width: 22px;
        height: 22px;
    }

    .floating-phone-menu {
        min-width: 240px;
        bottom: 65px;
    }

    .floating-phone-number {
        padding: 16px 16px;
    }

    .phone-number-label {
        font-size: 10px;
    }

    .phone-number-value {
        font-size: 15px;
    }

    .floating-phone-cta {
        padding: 16px 20px;
        font-size: 14px;
    }

    .cta-label {
        font-size: 10px;
    }
}

/* Анімація появи при завантаженні сторінки */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-phone-widget {
    animation: fadeInUp 0.5s ease-out 0.5s both;
}
