/* ==========================================================================
   Fixa Offer Section Styles - 1-Line Desktop Vouchers & Responsive
   ========================================================================== */

.fixa-offer {
    padding: 65px 0 55px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    border-top: 1px solid #f1f5f9;
}

.fixa-offer .section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.fixa-offer .section-title span {
    background: linear-gradient(135deg, #5682B1 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.offer-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Voucher Cards Grid Mode (1 Line on Desktop) */
.offer-slider.voucher-grid-mode {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow: visible;
    padding: 10px 0;
}

.fixa-voucher-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(86, 130, 177, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.fixa-voucher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(86, 130, 177, 0.2);
    border-color: #cbd5e1;
}

.voucher-card-top {
    padding: 24px 20px 20px;
    color: #ffffff;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.voucher-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.voucher-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.voucher-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.voucher-sub {
    font-size: 0.82rem;
    opacity: 0.92;
    margin: 0;
    font-weight: 500;
}

.voucher-card-bottom {
    padding: 18px 16px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: space-between;
    border-top: 1px dashed #e2e8f0;
}

.voucher-code-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    padding: 8px 14px;
    border-radius: 12px;
}

.code-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
}

.code-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 1px;
}

.voucher-claim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #5682B1 0%, #3b82f6 100%);
    color: #ffffff !important;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.voucher-claim-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Fallback Poster Slider styles (if Firebase posters load) */
.offer-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 0.75rem 0;
    scrollbar-width: none;
}

.offer-slider::-webkit-scrollbar {
    display: none;
}

.offer-slide {
    flex: 0 0 auto;
    width: 260px;
    height: 380px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.offer-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.offer-slide img,
.offer-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .offer-slider.voucher-grid-mode {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .fixa-offer {
        padding: 38px 0 26px;
    }

    .fixa-offer .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    .offer-slider.voucher-grid-mode {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .voucher-card-top {
        padding: 16px 12px 14px;
    }

    .voucher-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .voucher-title {
        font-size: 0.98rem;
    }

    .voucher-sub {
        font-size: 0.72rem;
    }

    .voucher-card-bottom {
        padding: 12px 10px;
        gap: 8px;
    }

    .voucher-code-wrap {
        padding: 6px 8px;
    }

    .code-label {
        font-size: 0.6rem;
    }

    .code-text {
        font-size: 0.78rem;
    }

    .voucher-claim-btn {
        padding: 8px 12px;
        font-size: 0.76rem;
    }
}

@media (max-width: 480px) {
    .fixa-offer {
        padding: 30px 0 20px;
    }

    .fixa-offer .section-title {
        font-size: 1.45rem;
    }

    .offer-slider.voucher-grid-mode {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .voucher-badge {
        display: none;
    }
}
