/* ==========================================================================
   Latest Promotions – Responsive Horizontal Card Layout with Glow
   All classes use bf-promo- prefix to avoid conflicts with themes/plugins.
   ========================================================================== */

.bf-promo-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bf-promo-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(75deg, rgba(126, 217, 87, 0.15), rgba(255, 255, 0, 0.15));
    background-color: rgba(0, 0, 0, 0.75);
    border: 2px solid #7ed957;
    border-radius: 10px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 0 5px rgba(126, 217, 87, 0.2),
        0 0 6px rgba(255, 255, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #ffffff;
}

.bf-promo-card:hover {
    border-color: #ffff00;
    transform: translateY(-3px);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 255, 0, 0.3),
        0 0 30px rgba(126, 217, 87, 0.3);
}

.bf-promo-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
}

.bf-promo-logo {
    width: 100px;
    min-width: 100px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.bf-promo-logo img {
    max-width: 70px;
    max-height: 50px;
    width: auto;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

/* Vertical divider line */
.bf-promo-divider {
    width: 2px;
    background-color: #7ed957;
    flex-shrink: 0;
    margin: 10px 0;
}

.bf-promo-content {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Allow text truncation */
}

.bf-promo-title,
.bf-promo-subtitle,
.bf-promo-meta {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.bf-promo-title {
    font-size: 16px;
    font-weight: bold;
    color: #7ed957;
    margin-bottom: 4px;
}

.bf-promo-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #ffff00;
    margin-bottom: 4px;
}

.bf-promo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 12px;
    color: #cccccc;
}

.bf-promo-site {
    font-weight: bold;
    color: #7ed957;
}

.bf-promo-code {
    display: inline-block;
    background: #FFFF00;
    color: #000000;
    font-size: 8px;
    font-weight: normal;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.bf-promo-code-value {
    color: #000000;
    font-weight: 900;
    text-shadow: none;
}

.bf-promo-dates {
    color: #cccccc;
}

/* Action section */
.bf-promo-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    gap: 8px;
    flex-shrink: 0;
}

.bf-promo-cta {
    display: inline-block;
    background: linear-gradient(180deg, #4a9c2d 0%, #3d8526 100%) !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.bf-promo-cta:hover {
    background: linear-gradient(180deg, #5cb82e 0%, #4a9c2d 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Terms footer */
.bf-promo-terms {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px 7px;
    border-top: 1px solid rgba(126, 217, 87, 0.3);
}

.bf-promo-terms small {
    font-size: 9px;
    color: #aaaaaa;
    line-height: 1.4;
    display: block;
}

.bf-promo-terms small p {
    margin: 0 0 4px;
}

.bf-promo-terms small p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablets */
@media (max-width: 768px) {
    .bf-promo-logo {
        width: 80px;
        min-width: 80px;
        padding: 10px;
    }

    .bf-promo-logo img {
        max-width: 60px;
        max-height: 40px;
    }

    .bf-promo-content {
        padding: 10px;
    }

    .bf-promo-title {
        font-size: 14px;
    }

    .bf-promo-subtitle {
        font-size: 12px;
    }

    .bf-promo-meta {
        font-size: 10px;
    }

    .bf-promo-action {
        padding: 10px;
    }

    .bf-promo-cta {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .bf-promo-inner {
        flex-wrap: wrap;
    }

    .bf-promo-logo {
        width: 70px;
        min-width: 70px;
        padding: 10px;
    }

    .bf-promo-divider {
        display: none;
    }

    .bf-promo-content {
        flex: 1;
        min-width: calc(100% - 140px);
    }

    .bf-promo-action {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 15px;
        border-top: 1px solid rgba(126, 217, 87, 0.2);
    }

    .bf-promo-cta {
        flex: 1;
        max-width: 150px;
    }
}