/* ReconForge - Tools Styles - Clean Version */
.search-container {
    background: linear-gradient(135deg, var(--darker) 0%, var(--darkest) 100%);
    border: 2px solid var(--border);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(57, 255, 20, 0.1),
        inset 0 1px 0 rgba(57, 255, 20, 0.1);
    margin-bottom: 3rem;
    text-align: center;
    transition: all var(--transition-speed);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.search-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.05), transparent);
    animation: searchGlow 3s linear infinite;
}

@keyframes searchGlow {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.search-container h1 {
    color: var(--primary);
    font-family: var(--font-display);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow:
        0 0 20px var(--primary),
        0 0 40px var(--primary);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    flex: 1;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--darkest) 0%, var(--darker) 100%);
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: all var(--transition-speed);
    min-width: 0;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow:
        0 0 20px rgba(57, 255, 20, 0.4),
        inset 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--darker) 0%, var(--darkest) 100%);
}

.search-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: 2px solid var(--primary);
    color: var(--dark);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    cursor: pointer;
    border-radius: 12px;
    font-weight: bold;
    transition: all var(--transition-speed);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(57, 255, 20, 0.4),
        0 0 30px rgba(57, 255, 20, 0.3);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
    opacity: 1;
    transition: opacity var(--transition-speed);
    padding: 0;
    align-items: stretch;
}

.tool-card {
    background: linear-gradient(135deg, var(--darker) 0%, var(--darkest) 100%);
    border: 1px solid #1a4d1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    transition: all var(--transition-speed);
    position: relative;
    width: 100%;
    backdrop-filter: blur(5px);
    min-height: 260px;
    max-height: 260px;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(57, 255, 20, 0.3);
    border-color: var(--primary);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4444, #39ff14, #ff4444);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-header {
    background: linear-gradient(135deg, #1a4d1a 0%, #0d1a0d 100%);
    padding: 1.2rem 1.5rem;
    border-bottom: 2px solid #2d6b2d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.tool-header h3 {
    color: var(--primary);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: none;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tool-header h3 i {
    color: #ff4444;
    font-size: 1.2rem;
}

.tool-description {
    padding: 1.2rem 1.5rem;
    font-size: 0.9rem;
    color: #8a8a8a;
    line-height: 1.6;
    background: #0a0f0a;
    flex-shrink: 0;
}

/* CLEAN TERMINAL BOX IMPLEMENTATION */
.terminal-box {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: var(--text-primary);
    position: relative;
    background: #000;
    border-radius: 0 0 12px 12px;
    line-height: 1.4;
    border-top: 1px solid #1a4d1a;
    flex-grow: 1;
    min-height: 80px;
    max-height: 80px;
    overflow-y: hidden !important;
    overflow-x: auto !important;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #1a1a1a;
    scroll-behavior: smooth;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.prompt {
    color: #ff4444;
    flex-shrink: 0;
    user-select: none;
    font-weight: bold;
    text-shadow: none;
    align-self: flex-start;
    line-height: 1.4;
    margin-top: 0;
}

.command {
    color: var(--primary);
    flex-shrink: 0;
    overflow: visible;
    tab-size: 4;
    max-width: none;
    font-weight: 400;
    text-shadow: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    white-space: nowrap;
    word-break: normal;
    line-height: 1.4;
}

.copy-btn {
    background: #1a4d1a;
    border: 1px solid #2d6b2d;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
    padding: 0.5rem;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0;
}

.copy-btn:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
    transform: scale(1.05);
}

.copy-btn.copied {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* HORIZONTAL SCROLLBARS */

.terminal-box::-webkit-scrollbar {
    height: 12px !important;
}

.terminal-box::-webkit-scrollbar-track {
    background: #1a1a1a !important;
    border-radius: 6px !important;
}

.terminal-box::-webkit-scrollbar-thumb {
    background: var(--primary) !important;
    border-radius: 6px !important;
    min-width: 50px;
}

.terminal-box::-webkit-scrollbar-thumb:hover {
    background: var(--secondary) !important;
}

/* Color different parts of commands */
.command .flag {
    color: #ff6b6b;
    font-weight: 600;
    text-shadow: 0 0 3px rgba(255, 107, 107, 0.3);
}

.command .url {
    color: #4ecdc4;
    text-decoration: underline;
    text-shadow: 0 0 3px rgba(78, 205, 196, 0.3);
}

.command .filename {
    color: #ffe66d;
    font-style: italic;
    text-shadow: 0 0 3px rgba(255, 230, 109, 0.3);
}

.command .pipe {
    color: #ff8c42;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 140, 66, 0.3);
}

.command .domain {
    color: #a8e6cf;
    font-weight: 500;
}

.command .number {
    color: #ffd93d;
    font-weight: 500;
}

.command .command-name {
    color: #ff6b9d;
    font-weight: 600;
}

.tool-category {
    margin: 3rem 0 1.5rem;
    color: var(--primary);
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 500;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-shadow: none;
    letter-spacing: 1px;
    position: relative;
}

.tool-category i {
    font-size: 1.2rem;
    color: #ff6b9d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
        box-sizing: border-box;
    }

    .search-btn {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
    }

    .tools-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .tool-card {
        min-height: 240px;
        max-height: 240px;
    }

    .terminal-box {
        font-size: 0.75rem;
        padding: 1rem;
        max-height: 70px;
        min-height: 70px;
    }

    .command {
        font-size: 0.8rem;
    }

    .copy-btn {
        font-size: 0.8rem;
        padding: 0.4rem;
        min-width: 32px;
        height: 32px;
    }

    .tool-category {
        font-size: 1.2rem;
        margin: 2rem 0 1rem;
    }
}