/* Matrix Hintergrund */
body {
    background: #000;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: 0.3;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 40px auto 0 auto;
    background: rgba(0, 20, 0, 0.85);
    border: 2px solid #0f0;
    border-radius: 20px;
    box-shadow: 0 0 30px #0f05;
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(45deg, #000 0%, #002200 100%);
    color: #0f0;
    padding: 30px 15px 20px 15px;
    text-align: center;
    border-bottom: 2px solid #0f0;
    box-shadow: 0 0 30px #0f03;
}

.header h1 {
    font-size: 2.3em;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 0 8px #0f0, 0 0 2px #fff;
    font-family: 'Courier New', monospace;
    animation: glitch 1.2s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% { text-shadow: 2px 0 #0f0, -2px 0 #fff; }
    20% { text-shadow: -2px 0 #0f0, 2px 0 #fff; }
    40% { text-shadow: 2px 2px #fff, -2px -2px #0f0; }
    60% { text-shadow: 2px -2px #fff, -2px 2px #0f0; }
    80% { text-shadow: 0 0 8px #0f0, 0 0 2px #fff; }
    100% { text-shadow: 2px 0 #0f0, -2px 0 #fff; }
}

.header p {
    font-size: 1.1em;
    color: #aaffaa;
    opacity: 0.85;
    margin-bottom: 0;
}

/* Tabs */
.search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #0f0;
    background: #001100;
    padding: 12px 10px 0 10px;
}

.tab-button {
    padding: 10px 20px;
    border: 1px solid #0f0;
    background: #002200;
    color: #0f0;
    border-radius: 20px 20px 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    outline: none;
}

.tab-button.active,
.tab-button:hover {
    background: linear-gradient(90deg, #0f0 35%, #003300 100%);
    color: #000;
    transform: translateY(-2px) scale(1.05);
    border-bottom: 2px solid #000;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Suchformulare */
.search-form {
    background: rgba(0, 10, 0, 0.92);
    padding: 25px 20px;
    border-radius: 15px;
    border: 1px solid #0f0;
    margin-bottom: 20px;
    box-shadow: 0 0 15px #0f03;
}

.search-form h3 {
    color: #0f0;
    margin-bottom: 18px;
    font-size: 1.2em;
    letter-spacing: 1px;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.input-group input,
.input-group select,
.input-group textarea {
    flex: 1;
    padding: 12px 15px;
    border: 1.5px solid #0f0;
    border-radius: 8px;
    font-size: 1em;
    background: #000;
    color: #0f0;
    min-width: 180px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border: 2px solid #aaffaa;
    box-shadow: 0 0 8px #0f0;
}

/* Checkbox Optionen */
.search-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px 10px 10px 5px;
    background: #001900;
    border-radius: 8px;
    border: 1px solid #0f0;
}

.search-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1em;
    color: #aaffaa;
}

.search-options input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #0f0;
    transform: scale(1.2);
}

/* Buttons */
.search-btn, .dork-btn {
    background: linear-gradient(90deg, #0f0 60%, #003300 100%);
    color: #000;
    border: 1.5px solid #0f0;
    padding: 10px 22px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    margin-top: 7px;
    margin-right: 7px;
    box-shadow: 0 0 10px #0f03;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.search-btn:hover, .dork-btn:hover {
    background: #0f0;
    color: #000;
    transform: scale(1.07);
}

.dork-btn {
    background: #002200;
    color: #0f0;
    border: 1px solid #0f0;
    font-size: 0.95em;
    margin-bottom: 6px;
    transition: background 0.2s, color 0.2s;
}

.dork-btn:hover {
    background: #0f0;
    color: #000;
}

/* Predefined Dorks */
.predefined-dorks {
    margin-top: 18px;
    padding: 15px;
    background: #001900;
    border-radius: 8px;
    border: 1px solid #0f0;
}

.predefined-dorks h4 {
    color: #aaffaa;
    margin-bottom: 10px;
    font-size: 1em;
}

/* OSINT Links */
.osint-links {
    background: rgba(0, 20, 0, 0.85);
    border: 1px solid #0f0;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}
.osint-links h4 {
    color: #0f0;
    margin-bottom: 10px;
}
.osint-links input {
    background: #000;
    color: #0f0;
    border: 1px solid #0f0;
    margin-bottom: 8px;
}
.osint-links a {
    color: #0f0;
    text-decoration: underline;
    transition: color 0.2s, background 0.2s;
}
.osint-links a:hover {
    color: #000;
    background: #0f0;
    border-radius: 3px;
    padding: 2px 4px;
}

/* Ergebnisse */
.results-section {
    padding: 20px 15px;
    background: #000e00;
    border-top: 2px solid #0f0;
}

.results-section h3 {
    color: #0f0;
    margin-bottom: 14px;
}

#search-results {
    background: #001900;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #0f0;
    min-height: 120px;
}

.no-results {
    color: #aaffaa;
    text-align: center;
    font-style: italic;
    padding: 30px;
    opacity: 0.75;
}

.result-item {
    padding: 12px 0;
    border-bottom: 1px solid #0f0;
    margin-bottom: 10px;
}

.result-item:last-child {
    border-bottom: none;
}

.result-query {
    font-weight: bold;
    color: #0f0;
    margin-bottom: 7px;
    font-family: 'Courier New', monospace;
}

.result-link {
    display: inline-block;
    padding: 7px 15px;
    background: #0f0;
    color: #000;
    text-decoration: none;
    border-radius: 15px;
    font-size: 1em;
    font-weight: 600;
    margin-top: 3px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.result-link:hover {
    background: #aaffaa;
    color: #000;
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #001100;
    color: #aaffaa;
    padding: 18px 10px;
    text-align: center;
    font-size: 1em;
    border-top: 2px solid #0f0;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(0, 255, 0, 0.25);
    border-radius: 50%;
    border-top-color: #0f0;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 900px) {
    .container { margin: 10px; }
    .header { padding: 18px 5px 12px 5px; }
    .header h1 { font-size: 1.3em; }
    .search-section, .results-section { padding: 10px; }
    .tab-button { font-size: 0.95em; }
    .input-group { flex-direction: column; }
    .input-group input, .input-group select, .input-group textarea { min-width: 120px; width: 100%; }
    .search-options { flex-direction: column; gap: 8px; }
}
