/* Prices Page Specific Styles */

/* Prices Table Section */
.prices-table-section {
    padding: 0 0 80px;
    background: var(--bg-primary);
}

.prices-table {
    position: relative;
}

.prices-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
}

.prices-table tbody tr {
    transition: background 0.2s ease;
}

/* Tab animation */
.prices-tab {
    animation: fadeInUp 0.5s ease-out both;
}

.prices-tab:nth-child(1) { animation-delay: 0.1s; }
.prices-tab:nth-child(2) { animation-delay: 0.15s; }
.prices-tab:nth-child(3) { animation-delay: 0.2s; }
.prices-tab:nth-child(4) { animation-delay: 0.25s; }
.prices-tab:nth-child(5) { animation-delay: 0.3s; }

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

/* Price value highlight effect */
.price-value {
    position: relative;
    display: inline-block;
}

.price-value::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.prices-table tbody tr:hover .price-value::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Type tag hover effect */
.type-tag {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prices-table tbody tr:hover .type-tag {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Model cell hover effect */
.model-name-text {
    transition: color 0.2s ease;
}

.prices-table tbody tr:hover .model-name-text {
    color: var(--primary);
}

/* CTA section */
.prices-cta {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.prices-cta-buttons .btn {
    animation: scaleIn 0.3s ease-out both;
}

.prices-cta-buttons .btn:nth-child(1) { animation-delay: 0.6s; }
.prices-cta-buttons .btn:nth-child(2) { animation-delay: 0.7s; }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prices-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .prices-table {
        min-width: 700px;
    }
    
    .prices-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .prices-cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Table row animation on filter */
#prices-tbody tr {
    animation: rowFade 0.3s ease-out;
}

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

/* Provider badge subtle glow */
.model-provider-badge {
    transition: box-shadow 0.2s ease;
}

.prices-table tbody tr:hover .model-provider-badge {
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}
