/*
Author: @thesanjok
*/

:root {
    --primary: #00b832;
    --secondary: #009926;
    --accent: #00d936;
    --success: #00b832;
    --warning: #cccc00;
    --danger: #cc0033;
    --bg-dark: #080808;
    --bg-darker: #000000;
    --bg-card: rgba(5, 15, 5, 0.95);
    --bg-card-hover: rgba(10, 20, 10, 0.98);
    --text-primary: #00b832;
    --text-secondary: #00992a;
    --text-muted: #006619;
    --glow-soft: 0 0 8px rgba(0, 184, 50, 0.2);
    --glow-medium: 0 0 15px rgba(0, 184, 50, 0.3);
    --glow-strong: 0 0 20px rgba(0, 184, 50, 0.4);
    --border-radius: 0px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

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

/* ========== Particle Canvas ========== */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

/* ========== Loading Screen ========== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.terminal-loader {
    text-align: center;
}

.loader-text {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
    font-family: 'Courier New', monospace;
}

.prompt {
    color: var(--accent);
    font-weight: bold;
}

.loader-bar {
    width: 400px;
    height: 4px;
    background: rgba(0, 184, 50, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary);
}

.loader-bar::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    background: var(--primary);
    animation: loading 1.5s infinite;
    box-shadow: var(--glow-medium);
}

@keyframes loading {
    0% { left: -50%; }
    100% { left: 100%; }
}

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

/* ========== Header ========== */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid var(--primary);
    padding: 15px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 184, 50, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 36px;
    animation: rotate 3s linear infinite;
    filter: drop-shadow(0 0 8px var(--primary));
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo h1 {
    font-size: 24px;
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 184, 50, 0.4);
}

.version-badge {
    background: var(--primary);
    color: var(--bg-darker);
    padding: 4px 12px;
    border-radius: 0;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--primary);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-engine-toggle {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    overflow: hidden;
}

.engine-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.engine-btn:hover {
    background: rgba(0, 184, 50, 0.1);
    color: var(--primary);
}

.engine-btn.active {
    background: var(--primary);
    color: var(--bg-darker);
    font-weight: bold;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 20px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(0, 184, 50, 0.2);
    border-color: var(--accent);
    box-shadow: var(--glow-soft);
    transform: scale(1.05);
}

/* ========== Search Box ========== */
.search-box {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: var(--bg-darker);
    border: 1px solid var(--primary);
    padding: 25px;
    z-index: 999;
    box-shadow: 0 0 30px rgba(0, 184, 50, 0.3);
    transition: var(--transition);
}

.search-box.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-30px);
}

.search-container {
    display: flex;
    gap: 10px;
}

.search-container input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    box-shadow: var(--glow-soft);
    background: rgba(0, 184, 50, 0.05);
    border-color: var(--accent);
}

.search-container input::placeholder {
    color: var(--text-muted);
}

.close-btn {
    background: var(--danger);
    border: 1px solid var(--danger);
    color: white;
    width: 45px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: var(--transition);
    font-family: 'Courier New', monospace;
}

.close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--danger);
}

.search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    background: var(--bg-card);
    border-left: 2px solid transparent;
    padding: 12px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 184, 50, 0.15);
}

.search-result-item:hover {
    border-left-color: var(--primary);
    background: rgba(0, 184, 50, 0.1);
    transform: translateX(5px);
    box-shadow: var(--glow-soft);
}

.search-result-category {
    color: var(--accent);
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-result-dork {
    color: var(--text-secondary);
    font-size: 13px;
}

.no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-size: 14px;
}

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    z-index: 1;
    padding: 50px 0 40px;
}

.mission-statement {
    text-align: center;
    margin-bottom: 50px;
}

.terminal-title {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(0, 184, 50, 0.4);
    text-transform: uppercase;
}

.tagline {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 2px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 184, 50, 0.05), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
}

.stat-card:hover::before {
    animation: scan 2s infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--glow-medium);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px var(--primary));
}

.stat-value {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 0 12px rgba(0, 184, 50, 0.4);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.domain-input-section {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    padding: 35px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--glow-soft);
}

.section-title {
    font-size: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.title-icon {
    font-size: 24px;
}

.total-count {
    color: var(--accent);
    font-size: 14px;
    margin-left: auto;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.input-prefix {
    color: var(--accent);
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
}

.input-group input {
    flex: 1;
    background: var(--bg-darker);
    border: 1px solid var(--primary);
    color: var(--text-primary);
    padding: 14px 18px;
    font-size: 15px;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    box-shadow: var(--glow-soft);
    background: rgba(0, 184, 50, 0.05);
    border-color: var(--accent);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.primary-btn {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: var(--bg-darker);
    padding: 14px 30px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.primary-btn:hover {
    box-shadow: var(--glow-medium);
    transform: translateY(-2px);
    background: var(--accent);
    border-color: var(--accent);
}

.domain-status {
    min-height: 24px;
    font-size: 14px;
    text-align: center;
    color: var(--success);
    font-weight: bold;
}

/* ========== OSINT & Quick Tools ========== */
.osint-tools-section,
.quick-tools-section {
    position: relative;
    z-index: 1;
    padding: 50px 0;
}

.osint-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.quick-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.osint-tool-card,
.quick-action-card {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.osint-tool-card::after,
.quick-action-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.osint-tool-card:hover::after,
.quick-action-card:hover::after {
    width: 100%;
}

.osint-tool-card:hover,
.quick-action-card:hover {
    border-color: var(--accent);
    box-shadow: var(--glow-soft);
    transform: translateY(-3px);
    background: rgba(0, 184, 50, 0.05);
}

.osint-tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.osint-tool-icon,
.quick-action-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 6px var(--primary));
}

.osint-tool-name,
.quick-action-label {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.osint-tool-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
}

/* ========== Categories ========== */
.categories-section {
    position: relative;
    z-index: 1;
    padding: 50px 0 80px;
}

.categories-grid {
    display: grid;
    gap: 15px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    transition: var(--transition);
    overflow: hidden;
}

.category-card:hover {
    border-color: var(--accent);
    box-shadow: var(--glow-soft);
}

.category-card.highlight-pulse {
    animation: highlightPulse 2s;
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 25px rgba(0, 184, 50, 0.6); }
}

.category-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.category-header:hover {
    background: rgba(0, 184, 50, 0.05);
    border-bottom-color: var(--primary);
}

.category-title {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-icon {
    color: var(--accent);
    font-size: 14px;
    transition: transform 0.3s;
}

.category-count {
    background: var(--primary);
    color: var(--bg-darker);
    padding: 5px 14px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-content.active {
    max-height: 5000px;
}

.dorks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
}

.dork-btn {
    background: rgba(5, 15, 5, 0.8);
    border: 1px solid rgba(0, 184, 50, 0.3);
    color: var(--text-secondary);
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dork-btn:hover {
    background: rgba(0, 184, 50, 0.15);
    border-color: var(--accent);
    color: var(--primary);
    transform: translateX(5px);
    box-shadow: var(--glow-soft);
}

/* ========== Footer ========== */
.main-footer {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.98);
    border-top: 1px solid var(--primary);
    padding: 30px 0;
    box-shadow: 0 -5px 15px rgba(0, 184, 50, 0.15);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 1px;
}

.footer-disclaimer {
    color: var(--warning);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-content a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: bold;
}

.footer-content a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(0, 184, 50, 0.4);
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border: 1px solid rgba(0, 184, 50, 0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .terminal-title {
        font-size: 24px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
    }

    .input-prefix {
        display: none;
    }

    .dorks-grid {
        grid-template-columns: 1fr;
    }

    .osint-tools-grid,
    .quick-tools-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        width: 95%;
        padding: 20px;
    }

    .loader-bar {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 18px;
    }

    .terminal-title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .stat-value {
        font-size: 36px;
    }
}

/* ========== RUN ALL BUTTON ========== */
.category-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.run-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent), #00ff00);
    border: none;
    border-radius: 0;
    color: var(--bg-darker);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.run-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.4);
    background: linear-gradient(135deg, #00ff00, var(--accent));
}

.run-all-btn:active {
    transform: translateY(0);
}

.run-all-icon {
    font-size: 16px;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ========== PROGRESS NOTIFICATION ========== */
.progress-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 380px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 0;
    padding: 25px;
    box-shadow: 0 10px 50px rgba(0, 184, 50, 0.5);
    z-index: 10000;
    animation: slideInRight 0.4s ease;
    transition: opacity 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 12px;
}

.progress-icon {
    font-size: 28px;
    animation: rotate-fast 1.5s linear infinite;
    filter: drop-shadow(0 0 8px var(--accent));
}

@keyframes rotate-fast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.progress-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.progress-close {
    background: none;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.progress-close:hover {
    border-color: var(--danger);
    color: var(--danger);
    transform: scale(1.1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.progress-category {
    color: var(--text-primary);
    font-weight: 600;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-count {
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(0, 184, 50, 0.1);
    border: 1px solid var(--primary);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #00ff00);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .run-all-text {
        display: none;
    }
    
    .run-all-btn {
        padding: 8px 12px;
    }
    
    .run-all-icon {
        font-size: 18px;
    }
    
    .progress-notification {
        width: calc(100% - 40px);
        right: 20px;
        top: 80px;
    }
    
    .category-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .progress-notification {
        padding: 20px;
    }
    
    .progress-title {
        font-size: 14px;
    }
}
