/**
 * WhatsMyName - OSINT Professional Design System
 * Technical, clean styling with professional dark/light theme
 */

/* Main theme colors - OSINT Professional */
:root {
    --primary-color: #1a202c;
    --secondary-color: #2d3748;
    --accent-color: #3182ce;
    --background-color: #ffffff;
    --surface-color: #f7fafc;
    --border-color: #e2e8f0;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --hover-bg: #edf2f7;
    --focus-ring: #3182ce40;
    --success-color: #38a169;
    --error-color: #e53e3e;
    --warning-color: #d69e2e;
    --osint-blue: #2b6cb0;
    --osint-dark: #1a365d;
    --osint-light: #bee3f8;
}

/* Dark mode support - OSINT Professional Dark Theme */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #e2e8f0;
        --secondary-color: #a0aec0;
        --accent-color: #63b3ed;
        --background-color: #1a202c;
        --surface-color: #2d3748;
        --border-color: #4a5568;
        --text-primary: #e2e8f0;
        --text-secondary: #a0aec0;
        --text-muted: #718096;
        --hover-bg: #4a5568;
        --focus-ring: #63b3ed40;
        --osint-blue: #63b3ed;
        --osint-dark: #2c5282;
        --osint-light: #2d3748;
    }
}

/* Search container - clean white background */
.search-container {
    background-color: var(--background-color);
    color: var(--text-primary);
}

/* Button styling - GitHub inspired */
.search-btn {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    transition: all 0.2s ease;
    font-weight: 500;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
}

.search-btn:hover {
    background-color: var(--osint-dark);
    border-color: var(--osint-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 54, 93, 0.3);
}

.search-btn:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Card styling */
.result-item, .feature-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.result-item:hover, .feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(36, 41, 47, 0.1);
    transform: translateY(-2px);
}

/* Navigation styling */
.nav-link {
    color: var(--text-secondary);
    transition: color 0.2s ease;
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Footer styling */
.footer-link {
    color: var(--text-muted);
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Color overrides for existing classes - GitHub style black buttons */
.text-blue-600, .text-indigo-600 {
    color: var(--primary-color) !important;
}

.bg-blue-600, .bg-indigo-600 {
    background-color: var(--primary-color) !important;
}

.bg-blue-500, .bg-indigo-500 {
    background-color: var(--primary-color) !important;
}

.bg-blue-700, .bg-indigo-800 {
    background-color: var(--primary-color) !important;
}

.hover\:bg-blue-700:hover, .hover\:bg-indigo-900:hover {
    background-color: var(--osint-dark) !important;
}

.hover\:text-blue-600:hover, .hover\:text-indigo-600:hover {
    color: var(--primary-color) !important;
}

.hover\:bg-blue-500:hover, .hover\:bg-indigo-500:hover {
    background-color: var(--osint-dark) !important;
}

.border-blue-600, .border-indigo-600 {
    border-color: var(--primary-color) !important;
}

.focus\:ring-blue-300:focus, .focus\:ring-indigo-500:focus {
    box-shadow: 0 0 0 3px rgba(36, 41, 47, 0.3) !important;
}

/* Custom GitHub-style components */
.github-btn {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.github-btn:hover {
    background-color: var(--hover-bg);
    border-color: var(--primary-color);
}

.github-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.github-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form inputs */
input[type="text"], input[type="email"], textarea {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    transition: all 0.2s ease;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(36, 41, 47, 0.3);
}

/* Progress bars */
.progress-bar {
    background-color: var(--surface-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background-color: var(--primary-color);
    height: 100%;
    transition: width 0.3s ease;
}

/* Status indicators */
.status-success {
    color: #1a7f37;
    background-color: #dafbe1;
    border: 1px solid #1a7f37;
}

.status-error {
    color: #cf222e;
    background-color: #ffebe9;
    border: 1px solid #cf222e;
}

.status-warning {
    color: #9a6700;
    background-color: #fff8c5;
    border: 1px solid #9a6700;
}

/* Utility classes */
.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

.border-light {
    border-color: var(--border-color);
}

.bg-surface {
    background-color: var(--surface-color);
}

/* OSINT Professional Components */
.osint-header {
    background: linear-gradient(135deg, var(--osint-blue) 0%, var(--osint-dark) 100%);
    color: white;
}

.osint-badge {
    background-color: var(--osint-light);
    color: var(--osint-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.osint-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--osint-blue);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.osint-card:hover {
    border-left-color: var(--osint-dark);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.1);
    transform: translateY(-2px);
}

.platform-icon {
    width: 48px;
    height: 48px;
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.platform-icon:hover {
    border-color: var(--osint-blue);
    background-color: var(--osint-light);
}

.platform-icon svg {
    color: var(--text-secondary);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .search-btn {
        width: 100%;
        margin-top: 8px;
    }
    
    .github-card, .osint-card {
        padding: 12px;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.animate-slideIn {
    animation: slideIn 0.4s ease-out forwards;
    opacity: 0;
}
.result-card {
    position: relative;
}
.card-inner {
    position: relative;
    height: 100%;
}
.card-inner:hover {
    transform: translateY(-2px);
}
#results-list {
    animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.favicon-container {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.favicon-img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: contain;
    background: #f3f4f6;
    padding: 2px;
}
.default-favicon-icon {
    font-size: 16px;
    color: #2563eb;
    opacity: 0.7;
}

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

.animate-spin {
    animation: osintSpin 1s linear infinite;
}

.osint-spinner {
    display: inline-block;
    width: 4rem;
    height: 4rem;
    border: 4px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 9999px;
    animation: osintSpin 0.9s linear infinite;
}

.osint-spinner-sm {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-top-color: #2563eb;
    border-radius: 9999px;
    animation: osintSpin 0.9s linear infinite;
}
