/* style.css — MAINHACK Tools shared template */
:root {
    --primary: #00ff88;
    --secondary: #00b3ff;
    --dark-bg: #0a0e17;
    --darker-bg: #050a14;
    --card-bg: #121a2b;
    --text: #e0e6f0;
    --text-secondary: #a0a8b8;
    --error: #ff4d4d;
    --success: #00ff88;
}

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

body {
    background: var(--dark-bg);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 136, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(0, 179, 255, 0.1) 0%, transparent 20%);
    z-index: -2;
    pointer-events: none;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

header {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

header p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}

/* ── Card system (matches CSRF inline template) ── */
.card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 179, 255, 0.2);
    margin-bottom: 2rem;
}

.card-header {
    background: linear-gradient(90deg, rgba(0, 179, 255, 0.2), rgba(0, 255, 136, 0.2));
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
}

.card-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h2 i {
    font-size: 1.3rem;
}

.card-body {
    padding: 2rem;
}

/* ── Result output area ── */
.result-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px dashed var(--primary);
}

.result-container h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.result-code {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    border-left: 3px solid var(--primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ── Copy / secondary button ── */
.copy-btn {
    margin-top: 1rem;
    padding: 8px 15px;
    background: rgba(0, 179, 255, 0.2);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(0, 179, 255, 0.4);
}

.copy-btn i {
    margin-right: 5px;
}

/* ── Utility classes ── */
.text-center {
    text-align: center;
}

.section-title {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.btn-block {
    display: block;
    width: 100%;
}

.search-container {
    margin-bottom: 2rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-container input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(0, 179, 255, 0.3);
    border-radius: 4px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.tool-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 179, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tool-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 179, 255, 0.05) 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 179, 255, 0.3);
}

.tool-item:hover::before {
    opacity: 1;
}

.tool-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

.tool-item h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tool-item .icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.tool-item .badge {
    display: inline-block;
    background: rgba(0, 179, 255, 0.2);
    color: var(--secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: auto;
    align-self: flex-start;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    margin-top: 2rem;
}

footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

footer p a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer p a:hover {
    text-decoration: underline;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(0, 179, 255, 0.2);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.tool-count {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .tool-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .tool-list {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: 1rem;
    }
}

/* Animation for tool items */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-item {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

/* Delay animations for each item */
.tool-item:nth-child(1) { animation-delay: 0.1s; }
.tool-item:nth-child(2) { animation-delay: 0.2s; }
.tool-item:nth-child(3) { animation-delay: 0.3s; }
.tool-item:nth-child(4) { animation-delay: 0.4s; }
.tool-item:nth-child(5) { animation-delay: 0.5s; }
.tool-item:nth-child(6) { animation-delay: 0.6s; }
.tool-item:nth-child(7) { animation-delay: 0.7s; }
.tool-item:nth-child(8) { animation-delay: 0.8s; }
.tool-item:nth-child(9) { animation-delay: 0.9s; }
.tool-item:nth-child(10) { animation-delay: 1s; }
.tool-item:nth-child(11) { animation-delay: 1.1s; }
.tool-item:nth-child(12) { animation-delay: 1.2s; }
.tool-item:nth-child(13) { animation-delay: 1.3s; }
.tool-item:nth-child(14) { animation-delay: 1.4s; }
/* Add these to your existing style.css file */

/* Form Input Styles */
.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(16, 26, 43, 0.8);
    border: 1px solid rgba(0, 179, 255, 0.3);
    border-radius: 6px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2);
    outline: none;
    background: rgba(16, 26, 43, 0.9);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), #00cc77);
    color: var(--darker-bg);
    border: none;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    background: linear-gradient(135deg, #00ff99, #00dd88);
}

.btn i {
    margin-right: 10px;
}

/* Specific scan button style */
.btn-scan {
    width: 100%;
    max-width: 350px;
    margin: 20px auto 0;
    display: block;
}

/* Form label styles */
.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

.form-label i {
    font-size: 1.1rem;
}
