/* Pickle BERRY - Dynamic Pricing Styles */

/* Pricing Display Components */
.dynamic-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    transition: all 0.3s ease;
}

.dynamic-price.price-increase {
    color: #DC2626;
}

.dynamic-price.price-decrease {
    color: #059669;
}

.original-price {
    text-decoration: line-through;
    color: #9CA3AF;
    font-size: 1rem;
    margin-right: 8px;
    display: none;
}

.savings-badge {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: none;
    animation: pulse 2s infinite;
}

.pricing-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    position: relative;
}

/* Pricing Tooltip */
.pricing-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 350px;
}

.pricing-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

.pricing-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #1F2937;
}

.pricing-breakdown h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: white;
    text-align: center;
}

.base-price {
    font-size: 0.9rem;
    color: #D1D5DB;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #374151;
}

.price-factor {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.price-factor.increase {
    color: #FCA5A5;
}

.price-factor.discount {
    color: #86EFAC;
}

.factor-reason {
    font-size: 0.75rem;
    color: #9CA3AF;
    font-style: italic;
    margin-left: 8px;
    flex: 1;
    text-align: right;
}

.final-price {
    font-size: 1rem;
    font-weight: 600;
    color: #10B981;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #374151;
    text-align: center;
}

/* Peak Hour Indicators */
.peak-hour-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.peak-hour-badge i {
    font-size: 0.6rem;
}

/* Weather Impact Indicators */
.weather-impact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #6B7280;
    margin: 4px 0;
}

.weather-impact.rain {
    color: #3B82F6;
}

.weather-impact.hot {
    color: #EF4444;
}

.weather-impact.perfect {
    color: #10B981;
}

/* Demand Indicators */
.demand-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    margin: 4px 0;
}

.demand-level {
    width: 60px;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.demand-level::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.demand-level.very-low::after {
    width: 20%;
    background: #10B981;
}

.demand-level.low::after {
    width: 40%;
    background: #22C55E;
}

.demand-level.normal::after {
    width: 60%;
    background: #F59E0B;
}

.demand-level.high::after {
    width: 80%;
    background: #EF4444;
}

.demand-level.very-high::after {
    width: 100%;
    background: #DC2626;
}

/* Last-Minute Deal Styling */
.last-minute-deal {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    animation: glow 2s ease-in-out infinite alternate;
}

.last-minute-deal i {
    font-size: 1rem;
}

/* Group Discount Display */
.group-discount {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #059669;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.group-discount .discount-amount {
    font-weight: 700;
}

/* Price Comparison */
.price-comparison {
    background: #F3F4F6;
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
}

.price-comparison h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px;
}

.competitor-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6B7280;
    margin: 4px 0;
}

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

.price-disadvantage {
    color: #DC2626;
    font-weight: 600;
}

/* Enhanced Court Cards with Dynamic Pricing */
.court-card-dynamic {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.court-card-dynamic:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.15);
}

.court-card-dynamic .pricing-header {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
}

.court-card-dynamic .pricing-details {
    padding: 16px;
}

.court-card-dynamic .pricing-factors {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0;
}

.pricing-factor-tag {
    background: #F3F4F6;
    color: #6B7280;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.pricing-factor-tag.positive {
    background: #ECFDF5;
    color: #059669;
}

.pricing-factor-tag.negative {
    background: #FEF2F2;
    color: #DC2626;
}

/* Real-time Price Updates */
.price-updating {
    position: relative;
    overflow: hidden;
}

.price-updating::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

/* Seasonal Pricing Indicators */
.seasonal-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #1F2937;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.seasonal-indicator.peak {
    background: #EF4444;
}

.seasonal-indicator.off-peak {
    background: #10B981;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .pricing-tooltip {
        min-width: 250px;
        max-width: 300px;
        font-size: 0.8rem;
    }
    
    .pricing-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .dynamic-price {
        font-size: 1.25rem;
    }
    
    .court-card-dynamic .pricing-factors {
        gap: 2px;
    }
    
    .pricing-factor-tag {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .pricing-tooltip {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 280px;
    }
    
    .pricing-tooltip::after {
        display: none;
    }
    
    .last-minute-deal {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .group-discount {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(124, 58, 237, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.8);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Special Offer Styling */
.special-offer-card {
    border: 2px solid #10B981;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    position: relative;
}

.special-offer-card::before {
    content: 'SPECIAL OFFER';
    position: absolute;
    top: -1px;
    left: 16px;
    background: #10B981;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.5px;
}

/* Price History Chart (for analytics) */
.price-trend-mini {
    width: 60px;
    height: 20px;
    margin-left: 8px;
    opacity: 0.7;
}

.price-trend-line {
    stroke: #10B981;
    stroke-width: 2;
    fill: none;
}

.price-trend-area {
    fill: rgba(16, 185, 129, 0.1);
}

/* Urgency Indicators */
.booking-urgency {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #DC2626;
    font-weight: 500;
    margin: 4px 0;
}

.booking-urgency.medium {
    color: #F59E0B;
}

.booking-urgency.low {
    color: #6B7280;
}

.urgency-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 1.5s infinite;
}