/* AI EHR Directory Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search .input-group {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-search .form-control {
    border: none;
    padding: 0.875rem 1.25rem;
    font-size: 1.1rem;
}

.hero-search .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
}

/* Product Cards */
.product-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.product-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.product-title:hover {
    color: var(--primary-color);
}

.product-vendor {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-description {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success-color);
}

.product-rating {
    color: #ffc107;
}

/* AI Features */
.ai-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.ai-feature-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Listing Type Badges */
.listing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.listing-badge.featured {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
}

.listing-badge.premium {
    background: #6f42c1;
    color: white;
}

/* Filters Sidebar */
.filters-sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.filter-group .form-check {
    margin-bottom: 0.5rem;
}

.filter-group .form-check-label {
    font-size: 0.9rem;
    color: #495057;
}

/* Comparison Table */
.comparison-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.comparison-table td {
    padding: 1rem;
    border-color: #e9ecef;
    vertical-align: middle;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

/* Reviews */
.review-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-rating {
    color: #ffc107;
    font-size: 1.1rem;
}

.review-author {
    color: #6c757d;
    font-size: 0.9rem;
}

.review-content {
    color: #495057;
    line-height: 1.6;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

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

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stats-label {
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Search Results */
.search-results-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.results-count {
    color: #6c757d;
    font-size: 0.95rem;
}

.sort-dropdown {
    min-width: 200px;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .filters-sidebar {
        margin-bottom: 2rem;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Utilities */
.text-gradient {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, #667eea, #764ba2) 1;
}

/* Temporarily hide demo request buttons until feature is ready */
a[href*="demo-request"],
a[href*="/demo-request/"],
.btn-demo,
.demo-button,
.btn:has(i.fa-play) {
    display: none !important;
}

/* Hide any button with "Demo" text using attribute selector */
a.btn[href*="demo"],
button[onclick*="demo"] {
    display: none !important;
}

/* Visual Enhancements */
.glow-effect {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Interactive Cards */
.interactive-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.interactive-card:hover::before {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.fab:hover {
    transform: translateY(-5px) rotate(90deg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Enhanced Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card .new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gradient-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: slideInLeft 0.6s ease-out;
}

.product-card .trending-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff6b6b;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

/* Call to Action Buttons */
.cta-button {
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

/* Engagement Features */
.engagement-banner {
    background: var(--gradient-warm);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.quick-compare-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    max-width: 300px;
    transform: translateX(350px);
    transition: transform 0.3s ease;
    z-index: 999;
}

.quick-compare-widget.show {
    transform: translateX(0);
}

/* Trust Indicators */
.trust-badge {
    display: inline-flex;
    align-items: center;
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0.25rem;
}

.trust-badge i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* Interactive Tooltips */
.custom-tooltip {
    position: relative;
    cursor: help;
}

.custom-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeInUp 0.3s ease-out;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .filters-sidebar {
        display: none;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}