/* Common Styles for Uvio Platform (Landing & Docs) */

/* Custom Color Palette */
:root {
    --primary-blue: #3B82F6;
    --primary-purple: #A855F7;
    --primary-cyan: #06B6D4;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    --gradient-hero: linear-gradient(135deg, #f5f3ff 0%, #dbeafe 50%, #cffafe 100%);

    /* Docs specific colors */
    --docs-sidebar-bg: #1F2937;
    --docs-sidebar-text: #D1D5DB;
    --docs-sidebar-hover: #374151;
    --docs-sidebar-active: var(--primary-purple);
    --docs-content-bg: #FFFFFF;
    --docs-border: #E5E7EB;
    --docs-code-bg: #1E293B;
    --docs-code-inline-bg: #F1F5F9;
}

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

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

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

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

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Header Styles */
#header {
    transition: all 0.3s ease;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    transition: all 0.3s ease;
}

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

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

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

/* Link Hover Effects */
.link-primary {
    transition: all 0.2s ease;
}

.link-primary:hover {
    transform: translateX(3px);
}

/* Badge Styles */
.badge-success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
}

.badge-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border: none;
}

.badge-info {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    border: none;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Avatar Group Custom Styles */
.avatar-group .avatar .w-8 {
    border: 2px solid white;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Image Loading State */
img {
    transition: opacity 0.3s ease;
}

img[src=""] {
    opacity: 0;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
}

.bg-gradient-hero {
    background: var(--gradient-hero);
}

/* Icon Sizing Consistency */
[data-lucide] {
    stroke-width: 2;
}

/* Footer Link Hover */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Loading State for Images */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .btn,
    .dropdown {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}
