/**
 * Betformatics Betalingsmetoder (Payment Methods) Styles
 *
 * Dependencies: betformatics-variables (loaded via PHP)
 *
 * @package Betformatics
 * @subpackage Assets/CSS
 */

/* ========================================================================
   CONTAINER
   ======================================================================== */
.bf-betalingsmetoder {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
}

.bf-betalingsmetoder-inner {
    background: var(--bf-white);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-base);
    overflow: hidden;
}

/* ========================================================================
   HEADER
   ======================================================================== */
.bf-betalingsmetoder-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bf-bg-light);
    border-bottom: 1px solid var(--bf-border);
}

.bf-betalingsmetoder-icon {
    color: var(--bf-primary);
    flex-shrink: 0;
}

.bf-betalingsmetoder-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--bf-text-secondary);
    margin: 0;
}

/* ========================================================================
   CONTENT
   ======================================================================== */
.bf-betalingsmetoder-content {
    padding: 12px 16px;
}

/* ========================================================================
   LIST
   ======================================================================== */
.bf-betalingsmetoder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ========================================================================
   ITEM
   ======================================================================== */
.bf-betalingsmetode-item {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

/* ========================================================================
   LINK & CONTENT WRAPPER
   ======================================================================== */
.bf-betalingsmetode-link,
span.bf-betalingsmetode-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 44px;
    padding: 6px 12px;
    background: var(--bf-bg-light);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-md);
    box-sizing: border-box;
    transition: border-color var(--bf-transition-base), background-color var(--bf-transition-base);
}

.bf-betalingsmetode-link {
    text-decoration: none;
}

.bf-betalingsmetode-link:hover {
    border-color: var(--bf-primary);
    background-color: var(--bf-primary-light);
}

/* ========================================================================
   LOGO
   ======================================================================== */
.bf-betalingsmetode-logo {
    max-width: 80px;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ========================================================================
   NAME (fallback when no logo)
   ======================================================================== */
.bf-betalingsmetode-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--bf-gray-700);
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================================================
   COLUMN VARIANTS (via data-columns attribute)
   ======================================================================== */
.bf-betalingsmetoder[data-columns="4"] .bf-betalingsmetode-item {
    flex: 0 0 calc(25% - 8px);
}

.bf-betalingsmetoder[data-columns="5"] .bf-betalingsmetode-item {
    flex: 0 0 calc(20% - 8px);
}

.bf-betalingsmetoder[data-columns="6"] .bf-betalingsmetode-item {
    flex: 0 0 calc(16.666% - 8px);
}

.bf-betalingsmetoder[data-columns="8"] .bf-betalingsmetode-item {
    flex: 0 0 calc(12.5% - 9px);
}

/* When columns specified, make items fill width */
.bf-betalingsmetoder[data-columns] .bf-betalingsmetode-link,
.bf-betalingsmetoder[data-columns] .bf-betalingsmetode-content {
    width: 100%;
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media screen and (max-width: 768px) {
    .bf-betalingsmetoder-list {
        gap: 10px;
    }

    .bf-betalingsmetode-link,
    .bf-betalingsmetode-content {
        min-width: 90px;
        height: 44px;
        padding: 6px 12px;
    }

    .bf-betalingsmetode-logo {
        max-width: 70px;
        max-height: 32px;
    }

    .bf-betalingsmetode-name {
        font-size: 11px;
    }

    /* Reset column constraints on mobile */
    .bf-betalingsmetoder[data-columns] .bf-betalingsmetode-item {
        flex: 0 0 auto;
    }

    .bf-betalingsmetoder[data-columns] .bf-betalingsmetode-link,
    .bf-betalingsmetoder[data-columns] .bf-betalingsmetode-content {
        min-width: 90px;
    }
}

@media screen and (max-width: 480px) {
    .bf-betalingsmetoder-header {
        padding: 10px 12px;
    }

    .bf-betalingsmetoder-content {
        padding: 10px 12px;
    }

    .bf-betalingsmetoder-list {
        gap: 8px;
    }

    .bf-betalingsmetode-link,
    span.bf-betalingsmetode-content {
        min-width: 70px;
        height: 38px;
        padding: 5px 8px;
        border-radius: 5px;
    }

    .bf-betalingsmetode-logo {
        max-width: 55px;
        max-height: 26px;
    }

    .bf-betalingsmetode-name {
        font-size: 10px;
    }
}

/* ========================================================================
   ACCESSIBILITY
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
    .bf-betalingsmetode-link,
    .bf-betalingsmetode-content {
        transition: none;
    }
}

/* Focus state for accessibility */
.bf-betalingsmetode-link:focus {
    outline: 2px solid var(--bf-primary);
    outline-offset: 2px;
}

.bf-betalingsmetode-link:focus:not(:focus-visible) {
    outline: none;
}

.bf-betalingsmetode-link:focus-visible {
    outline: 2px solid var(--bf-primary);
    outline-offset: 2px;
}

/* ========================================================================
   ELEMENTOR COMPATIBILITY - CENTER SHORTCODE
   ======================================================================== */
.elementor-shortcode {
    display: flex;
    justify-content: center;
    width: 100%;
}

