/* Offers Page Styles */
body {
    background-color: #f8fafc;
}

.offers-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto 80px;
}

.offers-header {
    margin-bottom: 24px;
}

.offers-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.offers-header p {
    color: #64748b;
    font-size: 14px;
}

/* Search & Filter Bar */
.search-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #1e293b;
}

.filter-btn {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.offer-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    border: 1px solid #f1f5f9;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.offer-badge {
    position: absolute;
    top: 12px;
    background: #6366f1;
    /* Purple */
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    left: auto;
    right: 50px;
    /* Offset from share button */
}

.timer-badge {
    position: absolute;
    top: 12px;
    right: auto;
    left: 12px;
    /* Move timer to top-left */
    background: rgba(255, 59, 48, 0.9);
    /* Red urgent color */
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.offer-image-wrapper {
    height: 160px;
    background: #e2e8f0;
    position: relative;
}

.offer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-vendor-overlay {
    position: absolute;
    bottom: -15px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.offer-content {
    padding: 20px 16px 16px;
}

.offer-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 8px;
}

.offer-vendor-name {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.price-original {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 3px;
}

.book-btn {
    width: 100%;
    padding: 12px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.book-btn:hover {
    background: #4f46e5;
}

.book-btn:active {
    transform: scale(0.98);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.loading-skel {
    height: 300px;
    background: #e2e8f0;
    border-radius: 16px;
    animation: pulse 1.5s infinite;
}


@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0f2fe;
    color: #0284c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
}

.social-proof {
    font-size: 11px;
    color: #059669;
    /* Green to signify trust/activity */
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.share-btn-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.share-btn-icon:hover {
    color: #6366f1;
    transform: scale(1.1);
}

/* Vendor Popup Modal */
.vendor-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vendor-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.vm-header {
    background: #1e293b;
    height: 80px;
    position: relative;
}

.vm-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #f1f5f9;
    object-fit: cover;
}

.vm-body {
    padding: 50px 24px 24px;
    text-align: center;
}

.vm-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.vm-location {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

.vm-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
}

.vm-stat-item {
    text-align: center;
}

.vm-stat-val {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.vm-stat-lbl {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
}

.vm-bio {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: left;
}

.vm-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}