/* Provider-specific styles for the comparison app */

/* Header Navigation */
.header-nav {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-link.active .nav-indicator {
    transform: scaleX(1);
    opacity: 1;
}

.nav-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
    transform: scaleX(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.build-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Provider Overview Section */
.providers-overview {
    margin-bottom: 4rem;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Provider Card Styles */
.provider-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 340px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.25rem;
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.provider-card:hover::before {
    transform: scaleX(1);
}

.provider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Provider Card Header */
.provider-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-height: 56px;
}

.provider-icon-wrapper {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 48px;
    min-height: 48px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    position: relative;
}

.provider-icon {
    width: auto;
    height: 50px;
    max-width: 50px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.provider-icon-fallback {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 1.5rem;
}

.provider-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.provider-title h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
    word-break: break-word;
}

.provider-tagline {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}

/* Provider Card Body */
.provider-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
    min-height: 60px;
}

.provider-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialty-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.specialty-tag:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.provider-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.stat:hover {
    background: #f1f5f9;
}

.stat i {
    color: #3b82f6;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.stat span {
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Provider Card Footer */
.provider-card-footer {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.provider-card-footer .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.provider-card-footer .btn-primary,
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.provider-card-footer .btn-primary:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.provider-card-footer .btn-secondary,
.btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.provider-card-footer .btn-secondary:hover,
.btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Market Analytics Grid */
.market-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.analytic-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.2s ease;
}

.analytic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.analytic-card h4 {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.analytic-value {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.analytic-growth {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
}

.analytic-detail {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Global Presence */
.global-presence {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.presence-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.presence-item:hover {
    background: #e2e8f0;
}

.presence-item .provider-name {
    font-weight: 600;
    color: #2c3e50;
}

.headquarters {
    color: #64748b;
    font-size: 0.9rem;
}

/* Animation for loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Price comparison table styles */
.price-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.price-comparison-table th,
.price-comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.price-comparison-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-comparison-table .provider-column {
    width: 120px;
}

.price-comparison-table .service-column {
    width: 200px;
}

.price-comparison-table .tier-column {
    width: 100px;
}

.price-comparison-table .price-column {
    width: 150px;
}

.pricing-tier {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-tier.basic {
    background: #e0f2fe;
    color: #0277bd;
}

.pricing-tier.standard {
    background: #e8f5e8;
    color: #2e7d32;
}

.pricing-tier.premium {
    background: #fff3e0;
    color: #ef6c00;
}

.pricing-tier.enterprise {
    background: #f3e5f5;
    color: #7b1fa2;
}

.price-value {
    font-weight: 600;
    color: #059669;
}

.price-description {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Provider Detail Page Styles */
.provider-info-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.provider-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.provider-logo {
    width: 64px;
    height: 64px;
    margin-right: 16px;
    border-radius: 12px;
    object-fit: contain;
}

.provider-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Provider Stats */
.provider-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-item i {
    font-size: 20px;
    color: #3b82f6;
    margin-right: 12px;
}

.stat-item span {
    font-size: 14px;
    color: #4b5563;
}

/* Financial Highlights */
.financial-highlights {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.financial-highlights h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
}

.financial-highlights h4 i {
    margin-right: 8px;
    color: #3b82f6;
}

.financial-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.financial-item:last-child {
    border-bottom: none;
}

.financial-label {
    font-size: 14px;
    color: #4b5563;
}

.financial-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.growth-positive {
    color: #10b981;
}

.growth-negative {
    color: #ef4444;
}

/* Provider Specialties */
.provider-specialties {
    margin-bottom: 24px;
}

.provider-specialties h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
}

.provider-specialties h4 i {
    margin-right: 8px;
    color: #3b82f6;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-tag {
    background: #e5e7eb;
    color: #4b5563;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Chart Container */
.chart-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.service-header {
    margin-bottom: 16px;
}

.service-title h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.service-subcategory {
    font-size: 14px;
    color: #6b7280;
}

.service-description {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 16px;
    line-height: 1.5;
}

.service-features {
    margin-bottom: 16px;
}

.feature-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-label {
    font-size: 14px;
    color: #4b5563;
}

.feature-value {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.feature-tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.free-tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.free-tier-badge.available {
    background: #dcfce7;
    color: #059669;
}

.free-tier-badge.unavailable {
    background: #fee2e2;
    color: #dc2626;
}

.free-tier-badge i {
    margin-right: 4px;
}

.service-actions {
    display: flex;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .providers-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .market-analytics-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }
    
    .providers-grid {
        grid-template-columns: 1fr;
    }
    
    .provider-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .market-analytics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .analytic-value {
        font-size: 2rem;
    }
    
    .filter-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .market-analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .providers-grid {
        gap: 1rem;
    }
    
    .provider-card {
        padding: 1rem;
    }
    
    .provider-card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .provider-stats-grid {
        grid-template-columns: 1fr;
    }
} 