/* static/css/offers-layout-fix.css */

/* Offer Card Layout Fixes */
.offer-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards in a row are the same height */
}

.offer-image {
    position: relative;
    height: 120px; /* Reduced from 180px for smaller, more compact images */
    overflow: hidden;
    background-color: #f0f2f5; /* Placeholder color */
    flex-shrink: 0; /* Prevent image from shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain to center and fit images properly */
    padding: 10px; /* Add padding for better image display */
}

.offer-expiry {
    position: absolute;
    bottom: 0px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.offer-content {
    padding: 1.25rem;
    flex-grow: 1; /* Allows content to fill available space */
}

/* Share Button Color Fix */
.share-btn {
    background-color: #e2e8f0; /* Light gray background */
    color: #4a5568; /* Darker text color */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.share-btn:hover {
    background-color: #cbd5e1; /* Slightly darker on hover */
    color: #2d3748;
}

/* Dark mode adjustments */
[data-theme="dark"] .share-btn {
    background-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .share-btn:hover {
    background-color: #718096;
    color: #ffffff;
}
