/* ========================================
   SouqPhone - Offers Page
   File: assets/css/offers.css
======================================== */

/* Offers Hero */

.offers-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(ellipse at 15% 20%,
            rgba(37, 99, 235, .30),
            transparent 45%),
        linear-gradient(135deg, #101828, #172554);
}

.offers-hero-content {
    padding-top: 65px;
    padding-bottom: 60px;
}

.offers-hero .eyebrow {
    display: inline-block;
    color: #bfdbfe;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .13);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
}

.offers-hero h1 {
    margin: 18px 0 8px;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.5;
    font-weight: 800;
}

.offers-hero p {
    margin: 0;
    color: #d0d5dd;
    font-size: 16px;
}

/* Deals Section */

#deals-section {
    min-height: 300px;
}

.deals-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.deals-heading h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 800;
}

.deals-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Deals Grid */

.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* Deal Card */

.deal-card-public {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.deal-card-public:hover {
    transform: translateY(-5px);
    border-color: #dbeafe;
    box-shadow: 0 14px 35px rgba(16, 24, 40, .10);
}

/* Discount Badge */

.deal-discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 55px;
    min-height: 32px;
    padding: 5px 11px;
    color: #ffffff;
    background: #dc2626;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
    direction: ltr;
    box-shadow: 0 4px 12px rgba(220, 38, 38, .18);
}

/* Deal Image */

.deal-img-link {
    display: grid;
    place-items: center;
    height: 235px;
    overflow: hidden;
    background: #f2f5fa;
}

.deal-img-link img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 18px;
    object-fit: contain;
    transition: transform .3s ease;
}

.deal-card-public:hover .deal-img-link img {
    transform: scale(1.05);
}

.deal-img-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 70px;
    color: var(--muted);
    background: #f2f5fa;
}

/* Deal Information */

.deal-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
}

.deal-phone-name {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.deal-card-body h3 {
    margin: 3px 0 8px;
    color: var(--dark);
    font-size: 19px;
    line-height: 1.6;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.deal-shop {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.deal-desc {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

/* Prices */

.deal-prices-public {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.deal-original-pub {
    color: #98a2b3;
    font-size: 13px;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.deal-new-pub {
    color: var(--primary);
    font-size: 25px;
    line-height: 1.6;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.deal-new-pub small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

/* Deal Timer */

.deal-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
    padding: 10px 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 11px;
}

.timer-label {
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
}

.timer-display {
    color: #c2410c;
    font-size: 13px;
    font-weight: 800;
    direction: ltr;
    unicode-bidi: isolate;
}

.deal-timer.expired {
    background: #fef2f2;
    border-color: #fecaca;
}

.deal-timer.expired .timer-label,
.deal-timer.expired .timer-display {
    color: #b91c1c;
}

/* Reserve Button */

.deal-cta {
    width: 100%;
    min-height: 46px;
    margin-top: 16px;
    border-radius: 11px;
    font-size: 14px;
}

.deal-cta:hover {
    box-shadow: 0 5px 14px rgba(37, 99, 235, .20);
}

/* Empty State */

#deals-section>.empty-state {
    padding: 55px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #d0d5dd;
    border-radius: var(--radius);
}

#deals-section .empty-icon {
    font-size: 48px;
}

#deals-section .empty-state h3 {
    margin: 8px 0;
    color: var(--dark);
    font-size: 21px;
    font-weight: 800;
}

#deals-section .empty-state p {
    max-width: 450px;
    margin: 8px auto;
    color: var(--muted);
    font-size: 14px;
}

/* Accessibility */

.deal-img-link:focus-visible,
.deal-cta:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: -3px;
}

/* Tablet */

@media (max-width: 950px) {
    .deals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .deal-img-link {
        height: 215px;
    }

    .deal-card-body {
        padding: 15px;
    }
}

/* Mobile */

@media (max-width: 650px) {
    .offers-hero-content {
        padding-top: 43px;
        padding-bottom: 40px;
    }

    .offers-hero h1 {
        margin-top: 13px;
        font-size: 34px;
    }

    .offers-hero p {
        font-size: 13px;
    }

    #deals-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .deals-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 18px;
    }

    .deals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .deal-img-link {
        height: 155px;
    }

    .deal-img-link img {
        padding: 10px;
    }

    .deal-discount-badge {
        top: 8px;
        right: 8px;
        min-width: 44px;
        min-height: 27px;
        padding: 3px 7px;
        font-size: 11px;
        border-radius: 7px;
    }

    .deal-card-body {
        padding: 11px;
    }

    .deal-phone-name {
        font-size: 10px;
        line-height: 1.7;
    }

    .deal-card-body h3 {
        font-size: 14px;
        line-height: 1.6;
    }

    .deal-shop {
        font-size: 10px;
        line-height: 1.8;
    }

    .deal-desc {
        font-size: 11px;
        line-height: 1.8;
    }

    .deal-prices-public {
        gap: 5px 8px;
        padding-top: 8px;
    }

    .deal-original-pub {
        font-size: 10px;
    }

    .deal-new-pub {
        font-size: 18px;
    }

    .deal-new-pub small {
        font-size: 10px;
    }

    .deal-timer {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        padding: 7px;
        margin-top: 10px;
    }

    .timer-label,
    .timer-display {
        font-size: 10px;
    }

    .deal-cta {
        min-height: 39px;
        margin-top: 11px;
        padding: 8px 5px;
        font-size: 11px;
        gap: 4px;
    }

    #deals-section>.empty-state {
        padding: 35px 15px;
    }
}

/* Very Small Screens */

@media (max-width: 360px) {
    .deals-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .deal-img-link {
        height: 210px;
    }

    .deal-card-body {
        padding: 15px;
    }

    .deal-card-body h3 {
        font-size: 17px;
    }

    .deal-new-pub {
        font-size: 23px;
    }

    .deal-cta {
        font-size: 13px;
    }
}

/* Respect reduced motion */

@media (prefers-reduced-motion: reduce) {

    .deal-card-public,
    .deal-img-link img,
    .deal-cta {
        transition: none;
    }

    .deal-card-public:hover,
    .deal-card-public:hover .deal-img-link img {
        transform: none;
    }
}