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

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

.bf-provider-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bf-gradient-card);
    background-color: var(--bf-bg-card);
    border: var(--bf-border-width) solid var(--bf-border-color);
    border-radius: var(--bf-border-radius-lg);
    box-shadow: var(--bf-shadow-card);
    overflow: visible;
    transition: transform var(--bf-transition-base), border-color var(--bf-transition-base), box-shadow var(--bf-transition-base);
    text-decoration: none;
    color: var(--bf-text-primary);
    margin-top: 12px; /* Space for flags label that sits on edge */
}

.bf-provider-card .bf-provider-inner {
    overflow: hidden;
    border-radius: var(--bf-border-radius-lg) var(--bf-border-radius-lg) 0 0;
}

.bf-provider-card .bf-provider-terms {
    border-radius: 0 0 var(--bf-border-radius-lg) var(--bf-border-radius-lg);
}

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

/* Country flags label - positioned on top edge like promotion countdown labels */
.bf-provider-flags-label {
    position: absolute;
    top: -1px;
    left: 15px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 10;
    background: #333333;
    padding: 3px 6px;
    border-radius: var(--bf-border-radius-sm);
    box-shadow: var(--bf-shadow-button);
}

.bf-provider-flag {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bf-provider-card:hover {
    border-color: var(--bf-border-color-hover);
    transform: translateY(-3px);
    box-shadow: var(--bf-shadow-card-hover);
}

.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 var(--bf-primary);
}

.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: var(--bf-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.bf-provider-offer {
    font-size: 14px;
    font-weight: 600;
    color: var(--bf-accent);
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Promo code label */
.bf-provider-promo-code {
    display: inline-block;
    background: var(--bf-accent) !important;
    color: var(--bf-bg-dark) !important;
    font-size: 9px;
    font-weight: normal;
    padding: 2px 8px;
    border-radius: var(--bf-border-radius-sm);
    margin-left: 8px;
    vertical-align: middle;
    text-shadow: none !important;
}

.bf-provider-promo-code-value {
    color: var(--bf-bg-dark) !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: var(--bf-text-secondary);
    font-size: 12px;
}

.bf-provider-description {
    font-size: 12px;
    color: var(--bf-text-secondary);
    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: var(--bf-gradient-button-primary) !important;
    color: var(--bf-text-primary) !important;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: var(--bf-border-radius-md);
    text-align: center;
    transition: all var(--bf-transition-base);
    white-space: nowrap;
    box-shadow: var(--bf-shadow-button);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.bf-provider-cta:hover {
    background: var(--bf-gradient-button-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--bf-shadow-button-hover);
    color: var(--bf-text-primary) !important;
    text-decoration: none !important;
}

.bf-provider-review-link {
    font-size: 11px;
    color: var(--bf-primary);
    text-decoration: underline;
    transition: color var(--bf-transition-base);
}

.bf-provider-review-link:hover {
    color: var(--bf-accent);
}

/* Terms footer */
.bf-provider-terms {
    background: var(--bf-bg-subtle);
    padding: 8px 15px 7px;
    border-top: 1px solid rgba(var(--bf-primary-rgb), 0.3);
}

.bf-provider-terms small {
    font-size: 9px;
    color: var(--bf-text-secondary);
    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;
    }

    .bf-provider-flags-label {
        padding: 2px 5px;
    }

    .bf-provider-flag {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        max-width: 14px !important;
        min-height: 14px !important;
        max-height: 14px !important;
    }
}

/* 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 var(--bf-primary);
    }

    .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-reverse;
        gap: 8px;
        padding: 10px 15px;
        border-top: 1px solid rgba(var(--bf-primary-rgb), 0.2);
    }

    .bf-provider-cta {
        flex: 1;
        max-width: none;
        padding: 10px 8px;
        font-size: 11px;
        min-height: 44px;
        box-sizing: border-box;
        border: var(--bf-border-width) solid var(--bf-primary-darker);
    }

    .bf-provider-review-link {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: var(--bf-primary);
        padding: 10px 8px;
        border-radius: var(--bf-border-radius-md);
        font-weight: bold;
        font-size: 11px;
        text-decoration: none;
        border: var(--bf-border-width) solid var(--bf-primary);
        box-sizing: border-box;
        min-height: 44px;
        text-align: center;
        transition: all var(--bf-transition-base);
    }

    .bf-provider-review-link:hover {
        background: rgba(var(--bf-primary-rgb), 0.2);
        color: var(--bf-primary);
    }

    .bf-provider-flags-label {
        left: 10px;
        padding: 2px 4px;
        gap: 2px;
    }

    .bf-provider-flag {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        max-width: 12px !important;
        min-height: 12px !important;
        max-height: 12px !important;
    }
}

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