/* Import Tailwind CSS from CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Custom styles for code blocks */
.code-block {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.6;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.code-block pre {
    margin: 0;
}

.code-block:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.code-block code {
    color: #e5e7eb;
    font-weight: 500;
}

/* Enhanced code syntax highlighting */
.language-bash {
    color: #10b981;
}

.language-python {
    color: #3b82f6;
}

.language-bash::before {
    content: "$ ";
    color: #6b7280;
    font-weight: 600;
}

.language-python .keyword {
    color: #f59e0b;
}

.language-python .string {
    color: #10b981;
}

.hero-search {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-search:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

html {
    background: linear-gradient(180deg, #0f1629 0%, #1e3a5f 40%, #2563eb 70%, #1e40af 100%);
    background-attachment: fixed;
    height: 100%;
}

body {
    background: transparent;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
}

.card-gradient {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card-gradient:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

h1, h2, h3, p {
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Ocean wave animations */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.wave-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(180deg, 
        rgba(30, 64, 175, 0.15) 0%, 
        rgba(37, 99, 235, 0.25) 50%, 
        rgba(30, 64, 175, 0.35) 100%
    );
    z-index: -1;
}

.wave {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 100px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.25) 0%, 
        rgba(37, 99, 235, 0.35) 25%, 
        rgba(30, 64, 175, 0.4) 50%, 
        rgba(37, 99, 235, 0.35) 75%, 
        rgba(59, 130, 246, 0.25) 100%
    );
    border-radius: 50% 50% 0 0;
    animation: oceanWave 6s ease-in-out infinite;
    transform-origin: center bottom;
}

.wave:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 8s;
    opacity: 0.8;
    height: 85px;
    left: -5%;
    width: 110%;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(37, 99, 235, 0.3) 50%, 
        rgba(59, 130, 246, 0.2) 100%
    );
}

.wave:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 10s;
    opacity: 0.6;
    height: 65px;
    left: -15%;
    width: 130%;
    background: linear-gradient(90deg, 
        rgba(30, 64, 175, 0.15) 0%, 
        rgba(37, 99, 235, 0.25) 50%, 
        rgba(30, 64, 175, 0.15) 100%
    );
}

.wave:nth-child(4) {
    animation-delay: -6s;
    animation-duration: 12s;
    opacity: 0.4;
    height: 50px;
    left: -8%;
    width: 115%;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(37, 99, 235, 0.18) 50%, 
        rgba(59, 130, 246, 0.1) 100%
    );
}

@keyframes oceanWave {
    0%, 100% {
        transform: translateX(-15%) scaleY(1);
    }
    25% {
        transform: translateX(-8%) scaleY(1.2);
    }
    50% {
        transform: translateX(0%) scaleY(0.8);
    }
    75% {
        transform: translateX(8%) scaleY(1.1);
    }
}

/* Subtle floating animation for hero elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* Wave floating animation for code blocks */
.wave-float {
    animation: waveFloat 8s ease-in-out infinite;
}

.wave-float:nth-child(2) {
    animation-delay: -2s;
}

.wave-float:nth-child(3) {
    animation-delay: -4s;
}

@keyframes waveFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-8px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-0.5deg);
    }
}

/* Terminal-like styling for Search Results */
.terminal-container {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    text-align: left;
    padding: 0;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.terminal-container:hover {
    border-color: rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.9);
    color: #00ff00;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    margin: 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.terminal-header::before {
    content: "$ ";
    color: #00ff00;
    opacity: 0.7;
    margin-right: 8px;
}

.terminal-content {
    padding: 16px;
    color: #e0e0e0;
    font-size: 13px;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.7);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 400;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.terminal-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-content code {
    color: #00ff41;
    font-family: inherit;
}

/* Terminal cursor effect - only on the final results */
.terminal-final::after {
    content: "█";
    color: #00ff00;
    animation: blink 1s infinite;
    opacity: 0;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
