/* Deals Page Specific Styles */

.deals-hero {
    background: linear-gradient(rgba(255, 107, 53, 0.85), rgba(255, 107, 53, 0.85)), 
                url('../images/deals/deals-hero.jpg') center/cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.deals-hero .search-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Urgency Banner */
.urgency-banner {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.9; }
    100% { opacity: 1; }
}

.countdown-deal {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.countdown-timer {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.countdown-timer span {
    background: rgba(0,0,0,0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin: 0 2px;
}

/* Deal Categories */
.deal-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.category-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Deal Cards */
.deal-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.featured-deal {
    border: 2px solid var(--secondary-color);
}

.deal-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.deal-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.deal-card:hover .deal-image img {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.discount-percent {
    font-size: 1.4rem;
    line-height: 1;
}

.discount-text {
    font-size: 0.8rem;
}

.deal-content {
    padding: 1.5rem;
}

.deal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.deal-hotel {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.deal-location {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.deal-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.deal-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-original {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.95rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--danger);
}

.price-savings {
    background: #d4edda;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.deal-urgency {
    margin-bottom: 1rem;
}

.urgency-badge {
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.urgency-badge.critical {
    background: #dc3545;
    color: white;
    animation: blink 1s infinite;
}

.urgency-badge.high {
    background: #fd7e14;
    color: white;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.deal-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.deal-actions .btn {
    transition: var(--transition);
}

.deal-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.process-step h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.process-step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Deal Benefits */
.deal-benefits ul {
    list-style: none;
    padding: 0;
}

.deal-benefits li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.deal-benefits i {
    color: #28a745;
    margin-right: 0.5rem;
}

/* FAQ Accordion */
.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .deals-hero {
        min-height: 50vh;
    }
    
    .deal-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .deal-image {
        height: 150px;
    }
    
    .discount-badge {
        width: 60px;
        height: 60px;
    }
    
    .discount-percent {
        font-size: 1.2rem;
    }
    
    .price-current {
        font-size: 1.3rem;
    }
    
    .process-step {
        padding: 1rem 0.5rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Animation for deal cards */
.deal-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Special effects for featured deals */
.featured-deal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

/* Hover effects for urgency badges */
.urgency-badge:hover {
    transform: scale(1.05);
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Deal alert form styling */
.deal-benefits {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Seasonal styling */
.deals-summer {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.deals-winter {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.deals-spring {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}