/**
 * WP ClickContactPro Frontend Styles
 * 
 * @package WP_ClickContactPro
 * @since 1.0.0
 */

/* Button Container */
.ccp-buttons-container {
    position: fixed;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.ccp-buttons-container.ccp-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Position Classes */
.ccp-bottom-right {
    bottom: 20px;
    right: 20px;
}

.ccp-bottom-left {
    bottom: 20px;
    left: 20px;
}

.ccp-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.ccp-bottom-center.ccp-loaded {
    transform: translateX(-50%) translateY(0);
}

/* Individual Buttons */
.ccp-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    justify-content: center;
    white-space: nowrap;
}

.ccp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.ccp-button:active {
    transform: translateY(0);
}

.ccp-button-icon {
    font-size: 18px;
    line-height: 1;
}

.ccp-button-text {
    font-size: inherit;
}

/* Shadow Effect */
.ccp-shadow .ccp-button {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ccp-shadow .ccp-button:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Animations */
.ccp-animation-pulse .ccp-button {
    animation: ccp-pulse 2s infinite;
}

.ccp-animation-bounce .ccp-button {
    animation: ccp-bounce 2s infinite;
}

@keyframes ccp-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes ccp-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ccp-buttons-container {
        padding: 10px;
        gap: 8px;
    }
    
    .ccp-button {
        padding: 10px 16px;
        min-width: 120px;
        font-size: 13px;
    }
    
    .ccp-button-icon {
        font-size: 16px;
    }
    
    .ccp-bottom-right,
    .ccp-bottom-left {
        bottom: 15px;
        right: 15px;
        left: 15px;
    }
    
    .ccp-bottom-center {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .ccp-buttons-container {
        padding: 8px;
        gap: 6px;
    }
    
    .ccp-button {
        padding: 8px 12px;
        min-width: 100px;
        font-size: 12px;
    }
    
    .ccp-button-icon {
        font-size: 14px;
    }
    
    .ccp-bottom-right,
    .ccp-bottom-left {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .ccp-bottom-center {
        bottom: 10px;
    }
}

/* Accessibility */
.ccp-button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ccp-button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ccp-buttons-container,
    .ccp-button {
        animation: none !important;
        transition: none !important;
    }
    
    .ccp-button:hover {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .ccp-buttons-container {
        display: none !important;
    }
} 