/* ==========================================================================
   Latest Providers – Responsive Card Layout with Glow Effect
   All classes use bf-provider- prefix to avoid conflicts with themes/plugins.
   ========================================================================== */

.bf-provider-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bf-provider-card {
    position: relative;
    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;
}

/* Stiftet (founding year) oblique badge */
.bf-provider-stiftet-badge {
    position: absolute;
    top: 8px;
    left: -30px;
    background: linear-gradient(135deg, #ffff00 0%, #e6e600 100%);
    color: #000000;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 35px;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
}

.bf-provider-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-provider-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
}

/* Logo section */
.bf-provider-logo {
    width: 110px;
    min-width: 110px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex-shrink: 0;
    box-sizing: border-box;
    border-right: 3px solid #7ed957;
}

.bf-provider-logo img {
    max-width: 85%;
    max-height: 60px;
    width: auto;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

/* Vertical divider - deprecated, using border-right on logo instead */
.bf-provider-divider {
    display: none;
}

/* Content section */
.bf-provider-content {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Allow text truncation */
}

.bf-provider-name {
    font-size: 16px;
    font-weight: bold;
    color: #7ed957;
    margin-bottom: 4px;
    line-height: 1.3;
}

.bf-provider-offer {
    font-size: 14px;
    font-weight: 600;
    color: #ffff00;
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Promo code label */
.bf-provider-promo-code {
    display: inline-block;
    background: #FFFF00 !important;
    color: #000000 !important;
    font-size: 9px;
    font-weight: normal;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    text-shadow: none !important;
}

.bf-provider-promo-code-value {
    color: #000000 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

/* Rating display */
.bf-provider-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1;
}

.bf-provider-stars {
    display: inline-flex;
    gap: 1px;
}

.bf-provider-stars .bf-star {
    font-size: 14px;
    line-height: 1;
}

.bf-provider-stars .bf-star-full {
    color: #ffcc00;
}

.bf-provider-stars .bf-star-half {
    color: #ffcc00;
    position: relative;
    display: inline-block;
}

.bf-provider-stars .bf-star-half::after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #ffcc00;
}

.bf-provider-stars .bf-star-empty {
    color: #555555;
}

.bf-provider-rating-number {
    color: #cccccc;
    font-size: 12px;
}

.bf-provider-description {
    font-size: 12px;
    color: #cccccc;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action section */
.bf-provider-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    gap: 8px;
    flex-shrink: 0;
}

.bf-provider-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-provider-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;
}

.bf-provider-review-link {
    font-size: 11px;
    color: #7ed957;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.bf-provider-review-link:hover {
    color: #ffff00;
}

/* Terms footer */
.bf-provider-terms {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px 7px;
    border-top: 1px solid rgba(126, 217, 87, 0.3);
}

.bf-provider-terms small {
    font-size: 9px;
    color: #aaaaaa;
    line-height: 1.4;
    display: block;
}

.bf-provider-terms small p {
    margin: 0 0 4px;
}

.bf-provider-terms small p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablets */
@media (max-width: 768px) {
    .bf-provider-logo {
        width: 90px;
        min-width: 90px;
        padding: 10px 15px;
    }

    .bf-provider-logo img {
        max-width: 85%;
        max-height: 50px;
    }

    .bf-provider-content {
        padding: 10px;
    }

    .bf-provider-name {
        font-size: 14px;
    }

    .bf-provider-offer {
        font-size: 12px;
    }

    .bf-provider-description {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }

    .bf-provider-rating {
        font-size: 12px;
    }

    .bf-provider-stars .bf-star {
        font-size: 13px;
    }

    .bf-provider-rating-number {
        font-size: 11px;
    }

    .bf-provider-action {
        padding: 10px;
    }

    .bf-provider-cta {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .bf-provider-inner {
        flex-wrap: wrap;
    }

    .bf-provider-logo {
        width: 90px;
        min-width: 90px;
        padding: 10px 15px;
        align-self: stretch;
        border-right: 3px solid #7ed957;
    }

    .bf-provider-logo img {
        max-width: 85%;
        max-height: 50px;
    }

    .bf-provider-content {
        flex: 1;
        min-width: calc(100% - 140px);
    }

    .bf-provider-action {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        padding: 10px 15px;
        border-top: 1px solid rgba(126, 217, 87, 0.2);
    }

    .bf-provider-cta {
        flex: 1;
        max-width: none;
        padding: 10px 8px;
        font-size: 11px;
        min-height: 44px;
        box-sizing: border-box;
        border: 2px solid #4a9c2d;
    }

    .bf-provider-review-link {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: #7ed957;
        padding: 10px 8px;
        border-radius: 6px;
        font-weight: bold;
        font-size: 11px;
        text-decoration: none;
        border: 2px solid #7ed957;
        box-sizing: border-box;
        min-height: 44px;
        text-align: center;
        transition: all 0.3s ease;
    }

    .bf-provider-review-link:hover {
        background: rgba(126, 217, 87, 0.2);
        color: #7ed957;
    }
}

/* Type variations removed - all provider cards use the same green styling */