/* AnyMe Custom Styles */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #00BFFF; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #0099CC; }

/* Animations */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.animate-slide-up { animation: slideUp 0.4s ease-out; }
.animate-pulse-ring { animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; }
.animate-spin-slow { animation: spin-slow 3s linear infinite; }
.animate-bounce-soft { animation: bounce-soft 2s ease-in-out infinite; }

/* Matching animation */
.matching-pulse {
    position: relative;
}
.matching-pulse::before,
.matching-pulse::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid #00BFFF;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.matching-pulse::after {
    animation-delay: 0.5s;
}

/* Chat bubble styles */
.chat-bubble-sent {
    background: linear-gradient(135deg, #00BFFF, #0099CC);
    border-radius: 18px 18px 4px 18px;
}
.chat-bubble-received {
    background: white;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Channel card hover */
.channel-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Timer circle */
.timer-circle {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Room speaker card */
.speaker-card {
    transition: all 0.3s ease;
}
.speaker-card:hover {
    transform: scale(1.05);
}
.speaker-card.speaking {
    box-shadow: 0 0 0 3px #00BFFF, 0 0 15px rgba(0,191,255,0.3);
}

/* Online indicator pulse */
.online-dot {
    position: relative;
}
.online-dot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-ring 2s infinite;
}

/* Notification badge */
.notif-badge {
    animation: bounce-soft 2s ease-in-out infinite;
}

/* Flash message */
.flash-message {
    animation: slideUp 0.3s ease-out;
}

/* Video call overlays */
.video-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}

/* Gold shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.gold-shimmer {
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .full-mobile { width: 100% !important; }
}

/* Loading spinner */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00BFFF;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin-slow 1s linear infinite;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: #1f2937;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    margin-bottom: 4px;
}
