/* ============================================
   BuyDatabase Custom Styles
   ============================================ */

/* Color Variables */
:root {
    --color-midnight: #1A1F36;
    --color-electric: #007BFF;
    --color-neon: #00FFA3;
    --color-silver: #E5E5E5;
    --color-light-bg: #F8F9FA;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-midnight);
}

/* Skip to Content Link (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-electric);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Brand Colors */
.bg-midnight {
    background-color: var(--color-midnight) !important;
}

.bg-electric {
    background-color: var(--color-electric) !important;
}

.bg-neon {
    background-color: var(--color-neon) !important;
}

.bg-silver {
    background-color: var(--color-silver) !important;
}

.text-midnight {
    color: var(--color-midnight) !important;
}

.text-electric {
    color: var(--color-electric) !important;
}

.text-neon {
    color: var(--color-neon) !important;
}

.text-silver {
    color: var(--color-silver) !important;
}

/* Gradient Backgrounds */
.bg-gradient-midnight {
    background: linear-gradient(135deg, var(--color-midnight) 0%, #2d3561 100%);
}

.bg-gradient-electric {
    background: linear-gradient(135deg, var(--color-electric) 0%, #0056b3 100%);
}

/* Button Styles */
.btn-electric {
    background-color: var(--color-electric);
    border-color: var(--color-electric);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-electric:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-outline-electric {
    border-color: var(--color-electric);
    color: var(--color-electric);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-electric:hover {
    background-color: var(--color-electric);
    border-color: var(--color-electric);
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-neon) !important;
}

/* Hero Section */
.hero-section {
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-section .lead {
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Trust Strip */
.trust-strip .trust-item {
    text-align: center;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-electric);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-electric);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.2);
}

.category-icon {
    height: 60px;
}

/* Step Cards */
.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.05);
}

/* Form Validation Styles */
input.parsley-error,
select.parsley-error,
textarea.parsley-error {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

input.parsley-success,
select.parsley-success,
textarea.parsley-success {
    border-color: #198754 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.parsley-errors-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: #dc3545;
}

.parsley-errors-list li {
    margin-top: 0.25rem;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--color-electric);
}

/* Footer */
footer a:hover {
    color: var(--color-neon) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 31, 54, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Accessibility Focus States */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-electric);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .modal,
    .btn {
        display: none !important;
    }
}
