/* OSINT Detective Hub - Enhanced Styles */

:root {
    --matrix-green: #00ff41;
    --matrix-dark-green: #008f11;
    --matrix-light-green: #41ff00;
    --matrix-bg: #0d1117;
    --matrix-card-bg: #161b22;
    --matrix-border: #30363d;
    --matrix-text: #c9d1d9;
    --matrix-text-dim: #8b949e;
    --danger-red: #ff0000;
    --warning-orange: #ff6600;
}

/* Enhanced Tool Cards */
.tool-card {
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.9) 0%, rgba(13, 17, 23, 0.9) 100%);
    border: 2px solid var(--matrix-border);
    transition: all 0.4s ease;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 255, 65, 0.2);
    border-color: var(--matrix-green);
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--matrix-green));
}

.tool-icon {
    transition: all 0.3s ease;
}

/* Enhanced Results Display */
.result-section {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid var(--matrix-green);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.result-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--matrix-green), var(--matrix-light-green), var(--matrix-green));
    animation: slideGradient 3s linear infinite;
}

@keyframes slideGradient {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Data Table Styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.data-table th {
    background: rgba(0, 255, 65, 0.1);
    color: var(--matrix-green);
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--matrix-green);
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--matrix-border);
    color: var(--matrix-text);
}

.data-table tr:hover {
    background: rgba(0, 255, 65, 0.05);
}

/* Loading Animation */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.search-loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--matrix-border);
    border-top-color: var(--matrix-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error Messages */
.alert-matrix {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-matrix.success {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--matrix-green);
    color: var(--matrix-green);
}

.alert-matrix.error {
    background: rgba(255, 0, 0, 0.1);
    border-color: var(--danger-red);
    color: var(--danger-red);
}

/* Credit Display Enhancement */
.credit-display {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--matrix-card-bg);
    border: 2px solid var(--matrix-green);
    border-radius: 8px;
    padding: 1rem;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.credit-display .credit-count {
    font-size: 1.5rem;
    color: var(--matrix-green);
    font-weight: bold;
    text-shadow: 0 0 10px var(--matrix-green);
}

/* Enhanced Form Inputs */
.search-form input[type="text"],
.search-form input[type="email"],
.search-form input[type="tel"],
.search-form select {
    background: rgba(13, 17, 23, 0.8);
    border: 2px solid var(--matrix-border);
    color: var(--matrix-text);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    width: 100%;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
}

.search-form input:focus,
.search-form select:focus {
    outline: none;
    border-color: var(--matrix-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1);
    background: rgba(13, 17, 23, 1);
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--matrix-green);
}

.checkbox-item label {
    cursor: pointer;
    color: var(--matrix-text);
    transition: color 0.3s ease;
}

.checkbox-item:hover label {
    color: var(--matrix-green);
}
