/* Max Intel OSINT Suite - Styles */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #16161f;
    --border-color: #2a2a3a;
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #555566;
    --accent-primary: #00ff88;
    --accent-secondary: #00ccff;
    --accent-warning: #ffaa00;
    --accent-danger: #ff4466;
    --accent-purple: #aa66ff;
    --gradient-main: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
    --shadow-glow: 0 0 40px rgba(0, 255, 136, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 204, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo-icon {
    width: 36px; height: 36px;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.nav-logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hamburger Menu Button */
.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 5px;
}

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

.menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.menu-btn-text {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-left: 8px;
}

/* Navigation Dropdown */
.nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    min-width: 280px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 1000;
}

.nav-links.open {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown {
    padding: 8px;
}

.nav-category {
    margin-bottom: 8px;
}

.nav-category:last-child {
    margin-bottom: 0;
}

.nav-category-title {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px 6px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-dropdown-link:hover {
    color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.1);
}

.nav-dropdown-link.active {
    color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.15);
}

.nav-dropdown-link .icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

/* Header */
header {
    text-align: center;
    padding: 50px 20px 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.page-title .icon { font-size: 36px; }

.page-desc {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Box */
.search-section {
    max-width: 800px;
    margin: 0 auto 50px;
}

.search-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.search-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-main);
}

.input-group { margin-bottom: 16px; }

.input-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.main-input {
    width: 100%;
    padding: 18px 22px;
    font-family: var(--font-mono);
    font-size: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.main-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
}

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

.input-row { display: flex; gap: 12px; }
.input-row .main-input { flex: 1; }

.scan-btn {
    padding: 18px 32px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    background: var(--gradient-main);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.scan-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.scan-btn:active { transform: scale(0.98); }

.input-hint {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Results */
.results-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.results-section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.results-title {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-title .badge {
    padding: 4px 10px;
    font-size: 11px;
    font-family: var(--font-mono);
    background: rgba(0, 255, 136, 0.15);
    border-radius: 20px;
    color: var(--accent-primary);
}

.results-actions { display: flex; gap: 12px; }

.action-btn {
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.results-grid { display: grid; gap: 16px; }

/* Data Cards */
.data-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: all 0.2s ease;
}

.data-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.data-card-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.data-card-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Link Categories */
.link-category { margin-bottom: 32px; }

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

.category-icon {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.category-title { font-size: 16px; font-weight: 600; }

.category-count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.link-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.link-card-icon {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.link-card-content { flex: 1; min-width: 0; }
.link-card-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }

.link-card-desc {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-card-arrow {
    font-size: 18px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.link-card:hover .link-card-arrow {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* Dork Sections */
.dork-section { margin-bottom: 28px; }

.dork-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.dork-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

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

.dork-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.dork-card:hover {
    border-color: var(--accent-secondary);
    background: rgba(0, 204, 255, 0.05);
}

.dork-card-icon { font-size: 16px; }
.dork-card-text { flex: 1; font-size: 13px; }

/* Status Messages */
.status-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.status-message.error { border-left: 3px solid var(--accent-danger); }
.status-message.warning { border-left: 3px solid var(--accent-warning); }
.status-message.info { border-left: 3px solid var(--accent-secondary); }

/* Crypto Indicator */
.crypto-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    margin-bottom: 20px;
}

.crypto-type.btc { color: #f7931a; }
.crypto-type.eth { color: #627eea; }
.crypto-type.doge { color: #c3a634; }
.crypto-type.unknown { color: #888; }

/* Loader */
.loader {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.loader.active { display: flex; }

.spinner {
    width: 48px; height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
footer {
    text-align: center;
    padding: 50px 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

footer a {
    color: var(--accent-primary);
    text-decoration: none;
}

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

/* Homepage */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-desc {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.tools-grid {
    margin-top: 40px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.tool-card:hover::before { background: var(--gradient-main); }

.tool-card-icon { font-size: 36px; margin-bottom: 16px; }
.tool-card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.tool-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Homepage Category Anchors */
.category-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.anchor-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.anchor-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.anchor-link span {
    font-size: 16px;
}

/* Homepage Tool Categories */
.tool-category {
    margin-bottom: 50px;
    scroll-margin-top: 80px;
}

.tool-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.tool-category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.tool-category-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-category-count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 20px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .page-title { font-size: 24px; }
    .page-title .icon { font-size: 28px; }
    
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    
    .search-container { padding: 20px; }
    .main-input { padding: 16px; font-size: 14px; }
    
    .input-row { flex-direction: column; }
    .scan-btn { width: 100%; }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .results-actions { width: 100%; }
    .action-btn { flex: 1; justify-content: center; }
    
    .links-grid, .dork-grid, .data-cards { grid-template-columns: 1fr; }
    
    .category-anchors {
        gap: 8px;
        padding: 16px;
    }
    
    .anchor-link {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .tool-category-header {
        flex-wrap: wrap;
    }
    
    .tool-category-count {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .tool-category-grid {
        grid-template-columns: 1fr;
    }
}
