/**
 * Dual Pricing Block - Frontend Styles
 *
 * Estilos para o frontend do site
 *
 * @package Everbrew_Customizations
 * @since 2.1.1
 */

/* ========================================
   Block Container
   ======================================== */

.everbrew-dual-pricing-block {
    margin: 20px 0;
    font-family: inherit;
}

.everbrew-dual-pricing-block__inner {
    background: var(--everbrew-card-bg, #ffffff);
    border: 1px solid var(--everbrew-border-color, #e0e0e0);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ========================================
   Layouts
   ======================================== */

/* Layout Vertical (padrão) */
.everbrew-dual-pricing-block.layout-vertical .everbrew-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

/* Layout Horizontal */
.everbrew-dual-pricing-block.layout-horizontal .everbrew-dual-pricing-block__inner {
    display: flex;
    gap: 20px;
    align-items: center;
}

.everbrew-dual-pricing-block.layout-horizontal .everbrew-price-row {
    flex: 1;
    padding: 12px;
    background: var(--everbrew-bg-light, #f9f9f9);
    border-radius: 6px;
}

.everbrew-dual-pricing-block.layout-horizontal .savings-badge {
    flex: 0 0 auto;
    min-width: 200px;
}

/* Layout Compacto */
.everbrew-dual-pricing-block.layout-compact .everbrew-dual-pricing-block__inner {
    padding: 12px 16px;
}

.everbrew-dual-pricing-block.layout-compact .everbrew-price-row {
    padding: 6px 0;
    font-size: 14px;
}

.everbrew-dual-pricing-block.layout-compact .savings-badge {
    padding: 6px 10px;
    font-size: 12px;
}

/* ========================================
   Alinhamento
   ======================================== */

.everbrew-dual-pricing-block.align-left {
    text-align: left;
}

.everbrew-dual-pricing-block.align-center {
    text-align: center;
}

.everbrew-dual-pricing-block.align-center .everbrew-price-row {
    justify-content: center;
    gap: 12px;
}

.everbrew-dual-pricing-block.align-right {
    text-align: right;
}

/* ========================================
   Price Rows
   ======================================== */

.everbrew-price-row {
    transition: all 0.3s ease;
}

.everbrew-price-row .price-label {
    font-size: 14px;
    color: var(--everbrew-text-secondary, #666);
    font-weight: 500;
    margin-right: 8px;
}

.everbrew-price-row .price-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--everbrew-text-primary, #333);
}

/* Preço Ativo (destaque) */
.everbrew-price-row.active .price-value {
    color: var(--everbrew-primary, #d4af37);
    font-size: 24px;
}

/* Preço de Referência */
.everbrew-price-row.reference {
    opacity: 0.8;
}

.everbrew-price-row.reference .price-label {
    font-size: 13px;
}

.everbrew-price-row.reference .price-value {
    font-size: 16px;
    font-weight: 500;
}

/* Strikethrough */
.everbrew-price-row .price-value.strikethrough {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Highlight */
.everbrew-price-row .price-value.highlight {
    background: linear-gradient(135deg, var(--everbrew-primary, #d4af37), var(--everbrew-primary-light, #f4d03f));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Savings Badge
   ======================================== */

.savings-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.savings-badge .savings-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.savings-badge .savings-text {
    flex: 1;
}

/* Badge Membro (verde) */
.savings-badge.member {
    background: linear-gradient(135deg, #28a745, #34d058);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Badge Incentivo (dourado) */
.savings-badge.incentive {
    background: linear-gradient(135deg, var(--everbrew-primary, #d4af37), var(--everbrew-primary-light, #f4d03f));
    color: #333;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* ========================================
   Responsivo
   ======================================== */

@media (max-width: 768px) {
    .everbrew-dual-pricing-block.layout-horizontal .everbrew-dual-pricing-block__inner {
        flex-direction: column;
    }

    .everbrew-dual-pricing-block.layout-horizontal .savings-badge {
        min-width: auto;
        width: 100%;
    }

    .everbrew-price-row .price-value {
        font-size: 18px;
    }

    .everbrew-price-row.active .price-value {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .everbrew-dual-pricing-block__inner {
        padding: 16px;
    }

    .everbrew-price-row {
        padding: 8px 0;
    }

    .everbrew-price-row .price-label {
        font-size: 13px;
    }

    .everbrew-price-row .price-value {
        font-size: 16px;
    }

    .everbrew-price-row.active .price-value {
        font-size: 20px;
    }

    .savings-badge {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ========================================
   Dark Mode (opcional)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .everbrew-dual-pricing-block__inner {
        background: var(--everbrew-dark-card-bg, #1a1a1a);
        border-color: var(--everbrew-dark-border, #333);
    }

    .everbrew-price-row .price-label {
        color: var(--everbrew-dark-text-secondary, #999);
    }

    .everbrew-price-row .price-value {
        color: var(--everbrew-dark-text-primary, #fff);
    }
}
