﻿/* Simple dark theme for DorkIndex */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 1rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
h1 {
    color: #ef4444;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

h1 .logo {
    width: 2rem;
    height: 2rem;
    display: inline-block;
}

/* Scroll Buttons */
.scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 1.5rem auto;
    padding: 0.8rem 1.2rem;
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.18);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
    min-height: 36px;
}

.scroll-btn:hover {
    transform: translateY(-1px);
    background: rgba(239, 68, 68, 0.08);
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.2);
}

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

.scroll-btn:focus-visible {
    outline: 2px solid #fca5a5;
    outline-offset: 2px;
}

.scroll-to-bottom {
    margin: 0;
}

.scroll-to-top {
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Credits Section */
.credits {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
}

.credits p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.credits p:last-child {
    margin-bottom: 0;
}

.credits a {
    color: #ef4444;
    text-decoration: none;
    transition: color 0.2s;
}

.credits a:hover {
    color: #dc2626;
    text-decoration: underline;
}

.author-links {
    margin-top: 0.5rem;
}

.kofi-cta {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.kofi-text {
    color: #9ca3af;
    font-size: 0.85rem;
}

.kofi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    background: transparent;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1px solid #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.18);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
    min-height: 36px;
}

.kofi-button:hover {
    transform: translateY(-1px);
    background: rgba(239, 68, 68, 0.08);
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.2);
}

.kofi-button:focus-visible {
    outline: 2px solid #fca5a5;
    outline-offset: 2px;
}

.kofi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
}

/* Input Section */
.input-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.input-section label {
    display: block;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 600px;
}

#domainInput {
    width: 100%;
    padding: 0.6rem 0.875rem;
    padding-right: 2.5rem;
    font-size: 1rem;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 6px;
    color: #e0e0e0;
    transition: border-color 0.2s;
}

#domainInput:focus {
    outline: none;
    border-color: #ef4444;
}

.clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

.clear-btn:hover {
    color: #ef4444;
}

.hint {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Engine Tabs */
.engine-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.engine-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #404040;
    border-radius: 4px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.engine-tab:hover {
    border-color: #ef4444;
    color: #e0e0e0;
}

.engine-tab.active {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

/* Dorks List */
.dorks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Category Headers */
.category-header {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.category-header:first-child {
    margin-top: 0;
}

.category-header h2 {
    color: #ef4444;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.category-divider {
    height: 2px;
    background: linear-gradient(to right, #ef4444, transparent);
    border-radius: 2px;
}

.dork-item {
    padding: 0.75rem 0;
}

.dork-item h3 {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.dork-query {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    background: #1e1e1e;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #333;
}

.dork-query:last-child {
    margin-bottom: 0;
}

.dork-query code {
    flex: 1;
    color: #9ca3af;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.search-link {
    background: #ef4444;
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.search-link:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .dork-query {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-link {
        text-align: center;
    }
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #505050;
}
