/**
 * Custom styles for AI Video Generation Platform - Dribbble Style
 */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar - Dark style */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Chat bubbles animation - Dribbble style */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Message animation */
[class*="flex justify-"] {
    animation: fadeInUp 0.3s ease-out;
}

/* Video player styling */
video {
    border-radius: 0.5rem;
    max-height: 400px;
    object-fit: contain;
}

/* Progress bar animation */
.progress {
    transition: value 0.3s ease;
}

/* Loading spinner */
.loading {
    pointer-events: none;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* Button hover effects */
.btn {
    transition: all 0.2s ease;
}

/* Hero gradient animation */
.hero {
    background: linear-gradient(135deg, hsl(var(--p)) 0%, hsl(var(--s)) 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Menu active state */
.menu li > *:where(.active) {
    background-color: hsl(var(--p));
    color: hsl(var(--pc));
}

/* Truncate text */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Stat card styling */
.stat {
    padding: 1rem;
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tab transitions */
.tabs .tab {
    transition: all 0.2s ease;
}

/* Form focus effects */
.input:focus,
.textarea:focus {
    outline: 2px solid hsl(var(--p));
    outline-offset: 2px;
}

/* Dropdown menu styling */
.dropdown-content {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Badge styling */
.badge {
    font-weight: 600;
}

/* Responsive improvements */
@media (max-width: 640px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    /* Better spacing for mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-content {
        padding: 2rem 1.5rem;
    }
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    button, a, input, select, textarea {
        min-height: 44px;
    }
    
    /* Improve readability on small screens */
    p, span, li {
        line-height: 1.6;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .menu {
        display: none;
    }
}

