@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: #0a0a0a;
    color: #00ff41;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 2px,
            rgba(0, 255, 65, 0.03) 4px);
    animation: flicker 0.15s infinite linear alternate;
}

@keyframes flicker {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.98;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    border: 2px solid #00ff41;
    border-radius: 10px;
    background: rgba(0, 255, 65, 0.05);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.header h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.header .subtitle {
    font-size: 1.1em;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.terminal-prompt {
    color: #00ff41;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.terminal-prompt::before {
    content: '$ ';
    color: #ffff00;
}

.search-container {
    margin-bottom: 30px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 1em;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff41;
    border-radius: 5px;
    color: #00ff41;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #00ffff;
}

.search-input::placeholder {
    color: rgba(0, 255, 65, 0.6);
}

.commands-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.command-card {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #00ff41;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff41, #00ffff, #00ff41);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.command-card:hover::before {
    transform: translateX(0);
}

.command-card:hover {
    border-color: #00ffff;
    transform: translateY(-2px);
}

.command-name {
    font-size: 1.4em;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 10px;
}

.command-name::before {
    content: '> ';
    color: #ffff00;
}

.command-description {
    color: #00ff41;
    margin-bottom: 15px;
    line-height: 1.4;
    opacity: 0.9;
}

.command-link {
    display: inline-block;
    color: #ff6600;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #ff6600;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.command-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 102, 0, 0.1);
    transition: left 0.3s ease;
}

.command-link:hover::before {
    left: 0;
}

.command-link:hover {
    color: #ffffff;
    background: rgba(255, 102, 0, 0.2);
    transform: scale(1.05);
}

.command-link::after {
    content: ' →';
}

.loading {
    text-align: center;
    color: #00ff41;
    font-size: 1.2em;
    margin-top: 50px;
}

.error {
    text-align: center;
    color: #ff6600;
    font-size: 1.1em;
    margin-top: 50px;
    padding: 20px;
    border: 1px solid #ff6600;
    border-radius: 5px;
    background: rgba(255, 102, 0, 0.1);
}

.no-results {
    text-align: center;
    color: #ff6600;
    font-size: 1.2em;
    margin-top: 50px;
    opacity: 0.8;
}

.stats {
    text-align: center;
    margin-top: 40px;
    color: rgba(0, 255, 65, 0.7);
    font-size: 0.9em;
}

.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid #00ff41;
    color: rgba(0, 255, 65, 0.6);
}

.blinking-cursor::after {
    content: '█';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .commands-grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2em;
    }

    .command-card {
        padding: 15px;
    }
}