/*
 * ------------------------------------------------------------------
 *  Featured Banner – Asymmetric Grid (with admin modal styles)
 * ------------------------------------------------------------------
 */

.featured-banner-section {
    padding: 20px 0;
    background: #fff;
}

/* Section header (blinking title and divider) */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Blinking title – already defined in daily-deals.css, inherited automatically */

.section-divider {
    width: 80px;
    height: 4px;
    background: #4caf50;
    margin: 10px auto 20px;
    border-radius: 10px;
}

/* Grid: large left, 2x2 right */
.banner-grid {
    display: grid;
    grid-template-columns: 2fr 2fr;   /* equal halves */
    gap: 15px;
    align-items: stretch;
}

.banner-small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
}

/* Box base – perfect square, rounded, shadow, hover */
.banner-box {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 1 / 1;               /* forces square */
}

.banner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* When an image is present, it will fill the box */
.banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.banner-box:hover img {
    transform: scale(1.05);
}

/* ---------- Placeholder box (shows size text) ---------- */
.box-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;                    /* light grey background */
    color: #888;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    transition: background 0.3s;
}

/* On hover, slightly darken the placeholder */
.banner-box:hover .box-placeholder {
    background: #ebebeb;
}

/* ---------- Admin Modal Styles ---------- */
.admin-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}

.admin-modal-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 2;
    font-family: 'Poppins', sans-serif;
}

.admin-modal-content h3 {
    margin: 0 0 20px;
    font-size: 1.5rem;
    color: #1b3022;
}

.admin-modal-content label {
    display: block;
    font-weight: 600;
    margin: 15px 0 5px;
    color: #333;
}

.admin-modal-content input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.admin-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-save {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-save:hover { background: #388e3c; }

.btn-cancel {
    background: #eee;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-cancel:hover { background: #ddd; }

/* Mobile layout */
@media (max-width: 767px) {
    .banner-grid {
        grid-template-columns: 1fr;       /* stack vertically */
        gap: 10px;
    }
    .banner-small-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 10px;
    }
    .featured-banner-section {
        padding: 10px 0;
    }
}