/* Global Styles for Enhanced Features */

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s;
    position: relative;
    animation: pulse 2s infinite;
}

.chat-button:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(102, 126, 234, 0.8); }
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.chat-container {
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-status {
    font-size: 12px;
    opacity: 0.9;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 70%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
    font-size: 14px;
}

.message-content a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.message-content a:hover {
    text-decoration: underline;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
}

.typing-dots {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    background: white;
    border-radius: 15px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

.chat-quick-replies {
    padding: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.quick-reply {
    padding: 8px 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-reply:hover {
    background: #667eea;
    color: white;
}

.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

#chat-input:focus {
    border-color: #667eea;
}

.chat-send-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

/* Contact Floating Buttons */
.floating-contacts {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.contact-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    text-decoration: none;
}

.contact-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn {
    background: #25D366;
}

.call-btn {
    background: #4CAF50;
}

/* User Counter */
.user-counter {
    position: fixed;
    top: 70px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    z-index: 9998;
    font-weight: 700;
    font-size: 14px;
    animation: slideInRight 0.5s;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.user-counter .counter-icon {
    font-size: 18px;
    margin-right: 5px;
}

.user-counter .counter-number {
    font-size: 16px;
    animation: countUp 2s;
}

/* Live Aviator Preview */
.live-aviator-preview {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 200px;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9997;
    color: white;
}

.live-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.live-indicator {
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.live-plane {
    font-size: 40px;
    text-align: center;
    margin: 15px 0;
    animation: float 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-10px) rotate(-10deg); }
}

.live-multiplier {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #4CAF50;
    margin-bottom: 5px;
}

.live-players {
    text-align: center;
    font-size: 11px;
    color: #aaa;
}

.live-join-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.3s;
}

.live-join-btn:hover {
    transform: scale(1.05);
}

/* Footer Branding */
.elvinixe-footer {
    background: #1a1a2e;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 50px;
}

.elvinixe-footer .logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.elvinixe-footer .tagline {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 20px;
}

.elvinixe-footer .links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.elvinixe-footer .links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.elvinixe-footer .links a:hover {
    text-decoration: underline;
}

.elvinixe-footer .copyright {
    color: #666;
    font-size: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chat-container {
        width: calc(100vw - 40px);
        height: calc(100vh - 40px);
        bottom: 20px;
        right: 20px;
    }

    .live-aviator-preview {
        display: none;
    }

    .user-counter {
        top: auto;
        bottom: 180px;
        right: 20px;
        font-size: 12px;
        padding: 8px 15px;
    }

    .floating-contacts {
        bottom: 90px;
    }

    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* 3D Effects for Games */
.game-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.game-3d-element {
    transition: transform 0.3s;
}

.game-3d-element:hover {
    transform: translateZ(20px);
}

/* Enhanced Shadows and Glow */
.glow-effect {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.8); }
}

/* Player Count Badge */
.player-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.player-count-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}
