/* 
 * RizeDev Portfolio Styles
 * This file should be replaced with Tailwind CSS output in production
 * 
 * Build: npx tailwindcss -i ./src/input.css -o ./static/css/main.css --minify
 */

/* Import Tailwind (for development with CDN, use: https://cdn.tailwindcss.com) */
@import url('https://cdn.tailwindcss.com');

/* Custom Properties */
:root {
    --color-primary: 59 130 246;
    --color-secondary: 139 92 246;
    --radius: 0.75rem;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

::-webkit-scrollbar-track {
    background: rgb(24 24 27);
}

::-webkit-scrollbar-thumb {
    background: rgb(63 63 70);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(82 82 91);
}

/* Selection */
::selection {
    background: rgb(59 130 246 / 0.3);
    color: white;
}

/* HTMX Loading Indicator */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-flex;
}

.htmx-request.htmx-indicator {
    display: inline-flex;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid rgb(59 130 246);
    outline-offset: 2px;
}

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

/* Custom Animations */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out forwards;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, rgb(59 130 246), rgb(139 92 246));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.2);
}
