/**
 * Professional Pricing Tables CSS
 * Enhanced pricing displays for services and packages
 */

/* Pricing Tables Container */
.pricing-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0;
}

/* Enhanced Service Cards with Pricing Focus */
.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Featured/Popular Service Highlight */
.service-card.featured {
    border: 2px solid #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
    position: relative;
}

.service-card.featured::after {
    content: 'Most Popular';
    position: absolute;
    top: -1px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 0 0 12px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

/* Service Icon */
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

.service-icon svg,
.service-icon i {
    font-size: 24px;
    color: #667eea;
}

/* Service Header */
.service-header {
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Pricing Display */
.service-pricing {
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-display {
    text-align: center;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-currency {
    font-size: 1.5rem;
    opacity: 0.8;
}

.price-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.5rem;
}

.price-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.price-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Service Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Alternative checkmark style */
.service-features.modern li::before {
    content: '';
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%2322c55e"><path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd"/></svg>') center/contain no-repeat;
}

/* Service Action Button */
.service-action {
    margin-top: 2rem;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.service-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    color: #ffffff;
}

.service-btn:active {
    transform: translateY(0);
}

.service-btn.btn-outline {
    background: transparent;
    border: 2px solid rgba(102, 126, 234, 0.5);
    color: #667eea;
}

.service-btn.btn-outline:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    color: #ffffff;
}

/* Comparison Table Layout */
.pricing-comparison {
    overflow-x: auto;
    margin: 3rem 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: rgba(102, 126, 234, 0.1);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.comparison-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.comparison-table .feature-name {
    text-align: left;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.comparison-table .feature-included {
    color: #22c55e;
    font-weight: 700;
}

.comparison-table .feature-not-included {
    color: rgba(255, 255, 255, 0.3);
}

/* Package Tiers */
.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.pricing-tier {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.pricing-tier.recommended {
    border: 2px solid #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.pricing-tier.recommended::before {
    content: 'Recommended';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 0 0 12px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.tier-price {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.tier-period {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.tier-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.tier-features li::before {
    content: '✓';
    color: #22c55e;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-tables {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-card.featured {
        transform: none;
        margin: 1rem 0;
    }
    
    .service-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .pricing-comparison {
        margin: 2rem -1rem;
        border-radius: 0;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .pricing-tiers {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-tier.recommended {
        transform: none;
    }
    
    .tier-price {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .price-amount {
        font-size: 1.8rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon svg,
    .service-icon i {
        font-size: 20px;
    }
    
    .service-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-card {
        background: #000000;
        border: 2px solid #ffffff;
    }
    
    .service-card.featured {
        border-color: #ffffff;
        background: #1a1a1a;
    }
    
    .service-btn {
        background: #ffffff;
        color: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-icon,
    .service-btn,
    .pricing-tier {
        transition: none;
    }
    
    .service-card:hover,
    .service-card.featured:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .pricing-tables {
        display: block;
    }
    
    .service-card {
        break-inside: avoid;
        margin-bottom: 2rem;
        border: 1px solid #000;
        background: #fff;
        color: #000;
    }
    
    .service-btn {
        display: none;
    }
}