/* WhatsApp Business Widget - Premium German Style */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.whatsapp-widget.visible {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-widget.hidden {
    transform: translateY(100px);
    opacity: 0;
}

/* Main Button */
.whatsapp-button {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    position: relative;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

/* Pulse Animation */
.whatsapp-button::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(0.8);
        opacity: 1;
    }
}

/* Icon */
.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
    z-index: 1;
    transition: transform 0.3s ease;
}

.whatsapp-button.menu-open .whatsapp-icon {
    transform: rotate(135deg);
}

/* Notification Badge */
.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    animation: badge-bounce 0.5s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

@keyframes badge-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Menu Container */
.whatsapp-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: bottom right;
}

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

/* Menu Header */
.whatsapp-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 20px;
    border-radius: 20px 20px 0 0;
    color: white;
}

.whatsapp-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.response-time {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 12px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: fit-content;
}

.response-dot {
    width: 8px;
    height: 8px;
    background: #7CFC00;
    border-radius: 50%;
    animation: blink-dot 1.5s infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Menu Options */
.whatsapp-options {
    padding: 10px;
}

.whatsapp-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin: 5px 0;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.whatsapp-option:hover {
    background: white;
    border-color: #25D366;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.1);
}

.option-icon {
    font-size: 24px;
    min-width: 30px;
    text-align: center;
}

.option-content {
    flex: 1;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #1a1a1a;
}

.option-description {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

.option-price {
    font-size: 14px;
    font-weight: 700;
    color: #25D366;
}

/* Special Option Styles */
.whatsapp-option.highlight {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(18, 140, 126, 0.05) 100%);
    border-color: rgba(37, 211, 102, 0.3);
}

.whatsapp-option.urgent {
    position: relative;
    overflow: hidden;
}

.whatsapp-option.urgent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ef4444, transparent);
    animation: urgent-scan 3s linear infinite;
}

@keyframes urgent-scan {
    to { left: 100%; }
}

/* Sound Toggle */
.sound-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 5px 8px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
    
    .whatsapp-menu {
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        right: -20px;
        bottom: 70px;
    }
    
    .whatsapp-option {
        padding: 12px;
    }
    
    .option-title {
        font-size: 15px;
    }
    
    .option-description {
        font-size: 12px;
    }
}

/* Entrance Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-option {
    animation: slideInUp 0.3s ease forwards;
    opacity: 0;
}

.whatsapp-option:nth-child(1) { animation-delay: 0.05s; }
.whatsapp-option:nth-child(2) { animation-delay: 0.1s; }
.whatsapp-option:nth-child(3) { animation-delay: 0.15s; }
.whatsapp-option:nth-child(4) { animation-delay: 0.2s; }
.whatsapp-option:nth-child(5) { animation-delay: 0.25s; }

.whatsapp-menu.active .whatsapp-option {
    opacity: 1;
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: #1a1a1a;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.whatsapp-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 30px;
    width: 10px;
    height: 10px;
    background: #1a1a1a;
    transform: rotate(45deg);
}

/* Click Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-effect 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Accessibility */
.whatsapp-widget:focus-visible .whatsapp-button {
    outline: 3px solid #25D366;
    outline-offset: 3px;
}

.whatsapp-option:focus-visible {
    outline: 2px solid #25D366;
    outline-offset: -2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .whatsapp-menu {
        background: #1a1a1a;
        color: white;
    }
    
    .whatsapp-option {
        background: #2a2a2a;
        color: white;
    }
    
    .whatsapp-option:hover {
        background: #333;
    }
    
    .option-title {
        color: white;
    }
    
    .option-description {
        color: #aaa;
    }
} 