/* Offers Page - New Design */

/* Hero Section */
.offers-hero-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out; /* لتأثير انتقال سلس إذا تغيرت الصورة */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* لإبراز النص */
}

.offers-hero-section .hero-bg-overlay {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)); /* تدرج لوني للخلفية */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.offers-hero-section .container {
    z-index: 1;
    max-width: 800px;
}

.offers-hero-section .btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    transition: all 0.3s ease;
}
.offers-hero-section .btn-primary:hover {
    background-color: var(--bs-primary-dark) !important; /* أو لون أغمق من primary */
    transform: translateY(-3px);
}

.timer-text {
    font-size: 1.25rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 20px;
}


/* Offer Cards - New Design */
.offer-card-new {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none; /* إزالة الحدود الافتراضية */
    position: relative;
}

.offer-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.offer-card-new .offer-image-container {
    height: 220px; /* ارتفاع ثابت للصور */
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid var(--bs-light);
}

.offer-card-new .offer-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.offer-card-new:hover .offer-image-container img {
    transform: scale(1.05); /* تكبير الصورة عند التمرير */
}

.offer-card-new .offer-badge-featured,
.offer-card-new .offer-badge-discount {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    z-index: 2; /* فوق الصورة */
}

.offer-card-new .offer-badge-featured {
    background-color: var(--bs-danger) !important; /* لون أحمر للعروض المميزة */
    left: 15px; /* ضعها على اليسار لتميزها */
    right: auto;
}

.offer-card-new .offer-badge-discount {
    background-color: var(--bs-success) !important; /* لون أخضر للخصومات */
}

.offer-card-new .card-body {
    padding: 25px;
    text-align: center;
}

.offer-card-new .card-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--bs-dark);
}

.offer-card-new .card-subtitle {
    font-size: 0.95rem;
    color: var(--bs-secondary);
}

.offer-card-new .offer-description-short {
    font-size: 0.9rem;
    color: var(--bs-secondary);
    line-height: 1.6;
}

.offer-card-new .offer-meta span {
    font-size: 0.85rem;
    color: var(--bs-dark);
}

.offer-card-new .offer-meta .fa-hourglass-half,
.offer-card-new .offer-meta .fa-hourglass-end {
    color: var(--bs-danger);
}

.offer-card-new .offer-actions .btn {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px; /* أزرار مستديرة أكثر */
}

.offer-card-new .btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white;
}
.offer-card-new .btn-primary:hover {
    background-color: var(--bs-primary-dark) !important;
}

.offer-card-new .btn-outline-secondary {
    color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}
.offer-card-new .btn-outline-secondary:hover {
    background-color: var(--bs-secondary);
    color: white;
}


/* Featured Offer Card Specific Styling */
.offer-featured-card {
    border: 3px solid var(--bs-primary); /* إطار سميك للعروض المميزة */
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2); /* ظل أزرق خفيف */
}
.offer-featured-card:hover {
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.3);
}

/* Expiring Soon Offer Card */
.expiring-soon {
    border: 2px solid var(--bs-warning);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.15);
}
.expiring-soon:hover {
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.25);
}


/* Expired Offer Card */
.expired-offer {
    opacity: 0.7; /* إخفاء جزئي */
    filter: grayscale(80%); /* تحويل الألوان للرمادي */
    pointer-events: none; /* لمنع النقر على الزر إذا كان غير نشط */
}
.expired-offer .card-title,
.expired-offer .card-subtitle,
.expired-offer .card-text {
    color: var(--bs-gray-600) !important; /* لون رمادي للنصوص */
}
.expired-offer .offer-image-container img {
    filter: grayscale(80%);
}
.expired-offer .offer-actions .btn {
    cursor: not-allowed;
}

/* Modal Styling */
#offerDetailsModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
#offerDetailsModal .modal-header {
    background-color: var(--bs-primary);
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom: none;
}
#offerDetailsModal .btn-close {
    filter: invert(1); /* لجعلها بيضاء */
}
#offerDetailsModal .modal-body {
    padding: 30px;
}
#offerDetailsModal .modal-body .offer-full-description p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
#modalOfferCTA {
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .offers-hero-section {
        min-height: 350px;
    }
    .offers-hero-section h1 {
        font-size: 2.5rem;
    }
    .offer-card-new .offer-image-container {
        height: 180px;
    }
}





