/**
 * Premium Frontend Styles for Local Offers Grid
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.wppm-frontend-container {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 30px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Offers Grid */
.wppm-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Premium Card Design */
.wppm-offer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Decorative element inside the card */
.wppm-offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 50%, #00c6ff 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wppm-offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    border-color: #cbd5e1;
}

.wppm-offer-card:hover::before {
    opacity: 1;
}

/* Card Header - Logo & Info */
.wppm-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.wppm-card-logo-container {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 6px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.wppm-offer-card:hover .wppm-card-logo-container {
    transform: scale(1.05);
    border-color: #cbd5e1;
}

.wppm-card-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wppm-card-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    border-radius: 8px;
    text-transform: uppercase;
}

/* Title & Meta */
.wppm-card-title-area {
    display: flex;
    flex-direction: column;
}

.wppm-card-company-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.wppm-card-badge {
    display: inline-block;
    align-self: flex-start;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 4px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

/* Description */
.wppm-card-body {
    flex-grow: 1;
    margin-bottom: 20px;
}

.wppm-card-description {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* Footer / CTA */
.wppm-card-footer {
    margin-top: auto;
}

.wppm-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 10px;
    text-decoration: none !important;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 4px 6px -1px rgba(30, 60, 114, 0.15);
    transition: all 0.25s ease;
}

.wppm-card-button:hover {
    background: linear-gradient(135deg, #16305f 0%, #1e3c72 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(30, 60, 114, 0.25);
}

.wppm-card-button svg {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.wppm-card-button:hover svg {
    transform: translateX(3px);
}

/* Empty State front-end */
.wppm-no-offers {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    color: #64748b;
}

.wppm-no-offers-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.wppm-no-offers h3 {
    margin: 0 0 8px 0;
    color: #334155;
    font-size: 18px;
    font-weight: 600;
}

.wppm-no-offers p {
    margin: 0;
    font-size: 14px;
}

/* Responsiveness adjustments */
@media (max-width: 480px) {
    .wppm-offers-grid {
        grid-template-columns: 1fr;
    }
}
