/* Custom CSS - Dark Mode Compatible */


/* Dark Mode Overrides */

body {
    background-color: #111827 !important;
    /* bg-gray-900 */
    color: #f3f4f6 !important;
    /* text-gray-100 */
}


/* Header - Dark Mode */

.header {
    background: #1f2937 !important;
    /* bg-gray-800 */
    color: #f3f4f6 !important;
    /* text-gray-100 */
    border-bottom: 1px solid #374151 !important;
    /* border-gray-700 */
}

.header-nav a {
    color: #d1d5db !important;
    /* text-gray-300 */
    transition: color 0.2s;
}

.header-nav a:hover {
    color: #60a5fa !important;
    /* text-blue-400 */
    background-color: rgba(96, 165, 250, 0.1);
}


/* Enhanced Header Styles */

.sticky-header {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}


/* Logo Animation */

.logo-container:hover .logo-icon {
    transform: rotate(5deg) scale(1.05) !important;
}


/* Navigation Hover Effects */

.nav-link {
    position: relative !important;
    overflow: hidden !important;
}

.nav-link::before {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
    transition: width 0.3s ease !important;
}

.nav-link:hover::before {
    width: 100% !important;
}


/* Search Input Enhancement */

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
}


/* Button Hover Effects */

.btn-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    transition: all 0.3s ease !important;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3) !important;
}


/* Hero Section - Dark Mode */

.hero {
    background: #111827 !important;
    /* bg-gray-900 */
    color: #f3f4f6 !important;
    /* text-gray-100 */
}


/* Cards - Dark Mode */

.card {
    background: #1f2937 !important;
    /* bg-gray-800 */
    border: 1px solid #374151 !important;
    /* border-gray-700 */
    color: #f3f4f6 !important;
    /* text-gray-100 */
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}


/* Buttons - Dark Mode */

.btn-primary {
    background-color: #2563eb !important;
    /* bg-blue-600 */
    color: white !important;
}

.btn-primary:hover {
    background-color: #1d4ed8 !important;
    /* bg-blue-700 */
}

.btn-secondary {
    background-color: #4b5563 !important;
    /* bg-gray-600 */
    color: white !important;
}

.btn-secondary:hover {
    background-color: #374151 !important;
    /* bg-gray-700 */
}


/* Form Elements - Dark Mode */

input,
textarea,
select {
    background-color: #374151 !important;
    /* bg-gray-700 */
    border: 1px solid #4b5563 !important;
    /* border-gray-600 */
    color: #f3f4f6 !important;
    /* text-gray-100 */
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
    /* text-gray-400 */
}


/* Links - Dark Mode */

a {
    color: #60a5fa !important;
    /* text-blue-400 */
}

a:hover {
    color: #93c5fd !important;
    /* text-blue-300 */
}


/* Text Colors - Dark Mode */

.text-primary {
    color: #f3f4f6 !important;
    /* text-gray-100 */
}

.text-secondary {
    color: #d1d5db !important;
    /* text-gray-300 */
}

.text-muted {
    color: #9ca3af !important;
    /* text-gray-400 */
}


/* Background Colors - Dark Mode */

.bg-primary {
    background-color: #111827 !important;
    /* bg-gray-900 */
}

.bg-secondary {
    background-color: #1f2937 !important;
    /* bg-gray-800 */
}

.bg-tertiary {
    background-color: #374151 !important;
    /* bg-gray-700 */
}


/* Borders - Dark Mode */

.border-primary {
    border-color: #374151 !important;
    /* border-gray-700 */
}

.border-secondary {
    border-color: #4b5563 !important;
    /* border-gray-600 */
}


/* Footer */

.footer {
    background-color: #1f2937;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}


/* Search */

.search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
}


/* Loading */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Responsive */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .header-nav {
        flex-direction: column;
        gap: 1rem;
    }
}


/* Utility classes */

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}