/* Minimal CSS for Dcanary - Only animations that cannot be achieved with Tailwind */

/* Essential font import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

/* Font family fallback */
body {
    font-family: 'Inter', sans-serif;
}

/* Search functionality styles */
.search-result {
    transition: all 0.2s ease;
}

.search-result:hover {
    background-color: rgba(51, 65, 85, 0.8);
    border-left: 3px solid #3b82f6;
}

.search-result.bg-slate-600 {
    background-color: rgba(71, 85, 105, 0.9);
    border-left: 3px solid #60a5fa;
}

/* Progress bar for reading */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transform-origin: left;
    z-index: 1000;
    transition: transform 0.2s ease;
}

/* Floating table of contents */
.toc-floating {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    max-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 40;
}

/* Tab transition improvements */
.transition-opacity {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.transition-opacity.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.transition-opacity.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Floating symbols animation - Complex keyframes that require CSS */
@keyframes floatSymbol {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) translateX(-30px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-50px) translateX(10px) rotate(270deg);
        opacity: 0.9;
    }
}

.floating-symbol {
    animation: floatSymbol 20s ease-in-out infinite;
}

/* Individual symbol positioning and delays */
.floating-symbol:nth-child(1) { 
    animation-delay: 0s; 
    animation-duration: 18s; 
    top: 15%; 
    left: 10%; 
}
.floating-symbol:nth-child(2) { 
    animation-delay: -3s; 
    animation-duration: 22s; 
    top: 25%; 
    right: 15%; 
}
.floating-symbol:nth-child(3) { 
    animation-delay: -6s; 
    animation-duration: 25s; 
    top: 60%; 
    left: 5%; 
}
.floating-symbol:nth-child(4) { 
    animation-delay: -9s; 
    animation-duration: 20s; 
    top: 70%; 
    right: 20%; 
}
.floating-symbol:nth-child(5) { 
    animation-delay: -12s; 
    animation-duration: 24s; 
    top: 40%; 
    right: 8%; 
}
.floating-symbol:nth-child(6) { 
    animation-delay: -15s; 
    animation-duration: 19s; 
    top: 30%; 
    left: 25%; 
}
.floating-symbol:nth-child(7) { 
    animation-delay: -18s; 
    animation-duration: 21s; 
    top: 80%; 
    left: 75%; 
}

/* Grid background animation */
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.grid-background {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
}

/* Particle animation */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 1;
    }
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: particleFloat 15s ease-in-out infinite;
}

.particles::before {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.particles::after {
    top: 70%;
    right: 30%;
    animation-delay: -7s;
}

/* Tab functionality for documentation */
.transition-opacity.hidden {
    display: none;
}

.transition-opacity.active {
    display: block;
}
