/* =================================================================== */
/* ==   ✨ OFFER MODAL - Same Style as Quick View Modal ✨   == */
/* =================================================================== */

/* Overlay */
.offer-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.offer-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Wrapper */
.offer-modal-wrapper {
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.offer-modal-overlay.active .offer-modal-wrapper {
    transform: scale(1);
}

/* Main Content Container */
.offer-modal-content {
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface-color, #1C1C23);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    flex-direction: column;
}

.offer-modal-content:active {
    cursor: grabbing;
}

/* ⭐ Image Container - منفصل زي Quick View */
.offer-modal-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-color, #2A2A35);
}

.offer-modal-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Close Button - فوق الصورة */
.offer-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF !important;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    -webkit-text-fill-color: #FFFFFF !important;
}

.offer-modal-close:hover {
    background: var(--primary-color, #FF6B6B);
    color: #FFFFFF !important;
    transform: rotate(90deg);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.5);
}

.offer-modal-close i {
    color: #FFFFFF !important;
}

body.light-mode .offer-modal-close {
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.2);
}

body.light-mode .offer-modal-close:hover {
    background: var(--primary-color, #FF6B6B);
    color: #FFFFFF !important;
}

body.light-mode .offer-modal-close i {
    color: #FFFFFF !important;
}

/* ⭐ Navigation Arrows - على الصورة */
.offer-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.offer-nav-arrow:hover {
    opacity: 1;
    background: var(--primary-color, #FF6B6B);
    transform: translateY(-50%) scale(1.1);
}

.offer-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.offer-nav-arrow.left {
    left: 16px;
}

.offer-nav-arrow.right {
    right: 16px;
}

body.light-mode .offer-nav-arrow {
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .offer-nav-arrow:hover {
    background: var(--primary-color, #FF6B6B);
    color: white;
}

/* ⭐ Content Panel - تحت الصورة */
.offer-modal-body {
    padding: 24px 28px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Title */
.offer-modal-title {
    font-size: 1.625rem !important;
    font-weight: 700 !important;
    color: var(--text-color, #ffffff) !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.25 !important;
}

/* Description */
.offer-modal-description {
    font-size: 0.9375rem !important;
    color: var(--item-description, #a0a0b0) !important;
    line-height: 1.6 !important;
    margin: 0 0 16px 0 !important;
    max-height: 120px !important;
    overflow-y: auto !important;
}

.offer-modal-description::-webkit-scrollbar {
    width: 4px;
}

.offer-modal-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.offer-modal-description::-webkit-scrollbar-thumb {
    background: var(--primary-color, #FF6B6B);
    border-radius: 2px;
}

/* Details */
.offer-modal-details {
    margin-bottom: 16px;
}

/* Footer */
.offer-modal-footer {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

/* Price */
.offer-modal-price-section {
    flex: 1;
}

.offer-modal-price {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--text-color, #ffffff) !important;
    margin: 0 !important;
}

/* Button */
.offer-modal-btn {
    height: 52px;
    padding: 0 2rem;
    border-radius: 0.75rem;
    border: none;
    background-color: var(--primary-color, #FF6B6B);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.offer-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.offer-modal-btn i {
    font-size: 1rem;
}

/* Light Mode */
body.light-mode .offer-modal-content {
    background: var(--surface-color, #ffffff);
}

body.light-mode .offer-modal-image-container {
    background: var(--bg-color, #f5f5f5);
}

body.light-mode .offer-modal-title {
    color: var(--text-color, #111) !important;
}

body.light-mode .offer-modal-price {
    color: var(--text-color, #111) !important;
}

body.light-mode .offer-modal-description {
    color: var(--item-description, #555) !important;
}

/* Responsive */
@media (max-width: 480px) {
    .offer-modal-wrapper {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .offer-modal-image-container {
        height: 240px;
    }
    
    .offer-modal-body {
        padding: 20px 20px 24px 20px;
    }
    
    .offer-modal-title {
        font-size: 1.375rem !important;
    }
    
    .offer-modal-description {
        font-size: 0.875rem !important;
        max-height: 90px !important;
    }
    
    .offer-modal-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .offer-modal-btn {
        width: 100%;
        justify-content: center;
    }
    
    .offer-nav-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .offer-nav-arrow.left {
        left: 10px;
    }
    
    .offer-nav-arrow.right {
        right: 10px;
    }
}
