/* Daytok - Social Pulse Custom Styles */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
}

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

/* Custom Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6d28d9);
}

.gradient-text {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

/* Story Ring Animation */
.story-ring {
    position: relative;
    background: linear-gradient(45deg, #f59e0b, #ec4899, #8b5cf6);
    padding: 3px;
    border-radius: 50%;
}

.story-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #f59e0b, #ec4899, #8b5cf6);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-glow 2s infinite;
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: scale(1.05);
}

.btn-secondary {
    background: white;
    color: #8b5cf6;
    border: 2px solid #8b5cf6;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #8b5cf6;
    color: white;
    transform: scale(1.05);
}

/* Input Focus Styles */
.input-focus:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    outline: none;
}

/* Custom Shadows */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.shadow-hard {
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 0.875rem;
    }
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Transitions */
.transition-all-300 {
    transition: all 0.3s ease;
}

.transition-transform-300 {
    transition: transform 0.3s ease;
}

/* Custom Utilities */
.text-balance {
    text-wrap: balance;
}

/* Story Progress Bar */
.story-progress {
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    border-radius: 2px;
    animation: progress 10s linear forwards;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}