/**
 * Provider Cards - Modern Card Design with Badges
 */

/* Provider Card Styles */
.provider-showcase-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.provider-showcase-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.provider-card-header {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.provider-logo-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.provider-showcase-card:hover .provider-logo-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

.provider-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.provider-logo-fallback {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #667eea;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.provider-card-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.provider-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.badge-cheapest {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(102, 126, 234, 0.5);
}

.badge-popular {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(245, 87, 108, 0.5);
}

.badge-trusted {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(79, 172, 254, 0.5);
}

.badge-new {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(67, 233, 123, 0.5);
}

.badge-premium {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(250, 112, 154, 0.5);
}

.badge-fast {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(48, 207, 208, 0.5);
}

.provider-name {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.provider-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.provider-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.provider-stat-item {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.provider-stat-item:hover {
    background: #e9ecef;
    transform: translateY(-3px);
}

.provider-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.provider-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
}

.provider-price-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px dashed #e9ecef;
}

.provider-price-main {
    text-align: center;
    margin-bottom: 1rem;
}

.provider-price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
}

.provider-price-currency {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

.provider-price-period {
    font-size: 0.875rem;
    color: #6c757d;
}

.provider-card-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Gradient variations for different providers */
.provider-card-header.gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.provider-card-header.gradient-purple {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.provider-card-header.gradient-cyan {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.provider-card-header.gradient-green {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.provider-card-header.gradient-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.provider-card-header.gradient-teal {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .provider-stats {
        grid-template-columns: 1fr;
    }
    
    .provider-card-badges {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 1rem;
    }
}

