/* home.css - Recreated automatically */

/* Leaderboard row hover animation */
.leaderboard-row {
    cursor: default;
    transition: background 0.2s ease, transform 0.2s ease;
}

.leaderboard-row:hover {
    transform: translateX(4px);
}

/* Typewriter cursor blink */
.typewriter-cursor {
    display: inline-block;
    color: var(--primary-color, #fbbf24);
    animation: blink 0.75s step-end infinite;
    font-weight: 300;
    margin-left: 2px;
}

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

/* Filter Dropdown - show on hover */
.filter-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.filter-wrapper:hover .filter-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Custom Scrollbar for the AI results area */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

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

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

/* Tool Buttons Click Animation */
.tool-btn {
    position: relative;
    overflow: hidden;
}

.tool-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.tool-btn:active::after {
    width: 200px;
    height: 200px;
    transition: width 0s, height 0s;
}

/* Toast Notifications Animation */
.toast-enter {
    animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-exit {
    animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
        margin-bottom: -50px;
    }
}

/* Markdown Prose Styles */
.prose {
    color: #cbd5e1;
    line-height: 1.6;
}

.prose h1, .prose h2, .prose h3 {
    color: #fff;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.prose p {
    margin-bottom: 1em;
}

.prose strong {
    color: #fff;
    font-weight: 600;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.prose li {
    margin-bottom: 0.25em;
}

.prose blockquote {
    border-left: 3px solid var(--primary-color, #fbbf24);
    padding-left: 1em;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 4px 4px 0;
}

/* Typing Effect Cursor */
@keyframes blink-cursor {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}
.typing-cursor {
    border-right: 4px solid var(--primary-color);
    padding-right: 4px;
    animation: blink-cursor 1s step-end infinite;
}

/* =========================================
   NEXT-LEVEL UI GLOBAL UPGRADES
   ========================================= */

/* Noise Texture Overlay */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Premium Glassmorphism Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-panel-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-panel-hover:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
    border-color: color-mix(in srgb, var(--primary-color) 30%, rgba(255, 255, 255, 0.1));
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5), 
                0 0 20px -5px color-mix(in srgb, var(--primary-color) 20%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Glowing Search Bar */
.search-bar-glow {
    transition: all 0.3s ease;
}
.search-bar-glow:focus-within {
    box-shadow: 0 0 30px -5px color-mix(in srgb, var(--primary-color) 30%, transparent),
                inset 0 0 15px -5px color-mix(in srgb, var(--primary-color) 10%, transparent);
    border-color: color-mix(in srgb, var(--primary-color) 50%, rgba(255,255,255,0.2));
}

/* Bento Grid inner glow fix */
.bento-inner-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--primary-color) 10%, transparent) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.glass-panel-hover:hover .bento-inner-glow {
    opacity: 1;
}
