/**
 * Flatişler WhatsApp Pro - Combined Styles
 * Frontend + Premium styles in one file
 */

/* Basic WhatsApp Button */
.fwp-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.fwp-button:hover {
    background: #128C7E;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.fwp-button .fwp-icon {
    font-size: 16px;
}

/* Floating Widget */
.fwp-floating-widget {
    position: fixed;
    z-index: 999999;
}

.fwp-floating-widget.bottom-right {
    bottom: 20px;
    right: 20px;
}

.fwp-floating-widget.bottom-left {
    bottom: 20px;
    left: 20px;
}

.fwp-floating-widget.top-right {
    top: 20px;
    right: 20px;
}

.fwp-floating-widget.top-left {
    top: 20px;
    left: 20px;
}

.fwp-floating-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--button-color, #25D366);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: fwp-pulse 2s infinite;
}

.fwp-floating-button:hover {
    color: white;
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.fwp-floating-button svg {
    width: 28px;
    height: 28px;
}

/* Pulse Animation */
@keyframes fwp-pulse {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    }
}

/* Basic Contact Form */
.fwp-contact-form {
    max-width: 400px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.fwp-contact-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #25D366;
}

.fwp-field {
    margin-bottom: 15px;
}

.fwp-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.fwp-field input,
.fwp-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.fwp-submit-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.fwp-submit-btn:hover {
    background: #128C7E;
}

/* Upgrade Notice */
.fwp-upgrade-notice {
    padding: 20px;
    border: 2px solid #f56e28;
    background: #fff3cd;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
}

.fwp-upgrade-notice h3 {
    margin-top: 0;
    color: #f56e28;
}

.fwp-upgrade-notice .button {
    margin: 0 5px;
}

/* Premium Contact Form */
.fwp-contact-form-premium {
    max-width: 500px;
    padding: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.fwp-contact-form-premium h3 {
    color: white;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}

.fwp-contact-form-premium .fwp-field {
    margin-bottom: 20px;
}

.fwp-contact-form-premium .fwp-field label {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

.fwp-contact-form-premium .fwp-field input,
.fwp-contact-form-premium .fwp-field textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
}

.fwp-contact-form-premium .fwp-field input::placeholder,
.fwp-contact-form-premium .fwp-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.fwp-contact-form-premium .fwp-submit-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 15px 30px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.fwp-contact-form-premium .fwp-submit-btn:hover {
    background: white;
    color: #25D366;
    transform: translateY(-2px);
}

/* Premium Chat Widget */
.fwp-premium-chat-widget {
    position: fixed;
    width: 320px;
    max-height: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 999998;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fwp-premium-chat-widget.position-bottom-right {
    bottom: 90px;
    right: 20px;
}

.fwp-premium-chat-widget.position-bottom-left {
    bottom: 90px;
    left: 20px;
}

.fwp-premium-chat-widget.position-top-right {
    top: 90px;
    right: 20px;
}

.fwp-premium-chat-widget.position-top-left {
    top: 90px;
    left: 20px;
}

.fwp-chat-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fwp-chat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.fwp-online-status {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 10px;
}

.fwp-chat-agents {
    max-height: 300px;
    overflow-y: auto;
}

.fwp-agent {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fwp-agent:hover {
    background: #f8f9fa;
}

.fwp-agent:last-child {
    border-bottom: none;
}

.fwp-agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.fwp-agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fwp-agent-info strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.fwp-agent-info span {
    font-size: 12px;
    color: #666;
}

/* Premium Button Styles */
.fwp-button.premium-style {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    border-radius: 30px;
    padding: 15px 25px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.fwp-button.premium-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.fwp-button.premium-style:hover::before {
    left: 100%;
}

/* Premium Animations */
.fwp-premium-chat-widget.style-modern {
    animation: fwp-slide-in 0.5s ease-out;
}

@keyframes fwp-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Team Display Premium Styles */
.fwp-team-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.fwp-team-member {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.fwp-team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.fwp-team-member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid #25D366;
}

.fwp-team-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fwp-team-member h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.fwp-team-member .role {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.fwp-team-member .whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.fwp-team-member .whatsapp-btn:hover {
    background: #128C7E;
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

/* Premium Analytics Widgets */
.fwp-analytics-widget {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.fwp-analytics-widget h3 {
    margin: 0 0 15px 0;
    color: #25D366;
    font-size: 18px;
}

.fwp-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #25D366;
    display: block;
}

.fwp-stat-label {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fwp-floating-button {
        width: 50px;
        height: 50px;
    }
    
    .fwp-floating-button svg {
        width: 24px;
        height: 24px;
    }
    
    .fwp-floating-widget.bottom-right,
    .fwp-floating-widget.bottom-left {
        bottom: 15px;
    }
    
    .fwp-floating-widget.bottom-right {
        right: 15px;
    }
    
    .fwp-floating-widget.bottom-left {
        left: 15px;
    }
    
    .fwp-contact-form {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .fwp-premium-chat-widget {
        width: calc(100vw - 40px);
        max-width: 320px;
    }
    
    .fwp-contact-form-premium {
        max-width: calc(100vw - 40px);
        margin: 0 20px;
        padding: 20px;
    }
    
    .fwp-team-display {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fwp-premium-chat-widget.position-bottom-right,
    .fwp-premium-chat-widget.position-bottom-left {
        bottom: 80px;
        right: 20px;
        left: 20px;
    }
}