/**
 * Premium Info Blocks - Shared Styles
 * Used by: Did You Know, Grants, Savings, Price, Takeaway
 * Variants: Full (blue gradient) and Light (light-blue inline)
 */

/* ─── Container ──────────────────────────────────────────────────────────── */

.bobex-info-block {
    margin: 2rem 0;
}

.bobex-info-container {
    border-radius: var(--bobex-radius-md);
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .bobex-info-container {
        padding: 2rem;
    }
}

/* ─── Full Variant (Brand Blue Gradient) ─────────────────────────────────── */

.bobex-info-block--full .bobex-info-container--full {
    background: var(--bobex-gradient-brand-blue);
    box-shadow: var(--bobex-shadow-card);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .bobex-info-block--full .bobex-info-container--full {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Icon wrapper - white circle with icon */
.bobex-info-icon-wrapper--full {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bobex-info-icon-wrapper--full svg {
    width: 32px;
    height: 32px;
    fill: var(--bobex-color-primary);
}

/* Content wrapper - groups title, text and CTA */
.bobex-info-block--full .bobex-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Text content in Full variant */
.bobex-info-block--full .bobex-block-title {
    margin: 0;
    color: white;
}

.bobex-info-block--full .bobex-info-text {
    color: white;
    margin: 0;
}

.bobex-info-block--full .bobex-orange-button {
    align-self: flex-start;
}

@media (max-width: 767px) {
    .bobex-info-block--full .bobex-orange-button {
        align-self: center;
    }
}

/* ─── Light Variant (Light Blue Inline) ──────────────────────────────────── */

.bobex-info-block--light .bobex-info-container--light {
    background: var(--bobex-gradient-light);
    box-shadow: var(--bobex-shadow-sm);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

/* Icon wrapper - small gradient icon */
.bobex-info-icon-wrapper--light {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bobex-info-icon-wrapper--light svg {
    width: 24px;
    height: 24px;
}

/* Gradient icon color */
.bobex-info-icon-wrapper--light svg {
    fill: url(#bobex-icon-gradient);
}

/* If no gradient defined, fallback to brand blue */
.bobex-info-icon-wrapper--light svg:not([fill*="url"]) {
    fill: var(--bobex-brand-blue);
}

/* Text with inline label in Light variant */
.bobex-info-text--light {
    margin: 0;
    color: var(--bobex-text-primary);
    flex: 1;
}

.bobex-inline-label {
    font-weight: 600;
    color: var(--bobex-brand-blue);
    font-family: var(--bobex-font-heading);
    display: inline;
}

/* ─── Empty State ────────────────────────────────────────────────────────── */

.bobex-info-block-empty {
    padding: 2rem;
    text-align: center;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: var(--bobex-radius-md);
    color: #666;
    font-style: italic;
}

/* ─── Icon Size Variants ─────────────────────────────────────────────────── */

.bobex-icon-xs {
    width: 16px;
    height: 16px;
}

.bobex-icon-sm {
    width: 20px;
    height: 20px;
}

.bobex-icon-md {
    width: 24px;
    height: 24px;
}

.bobex-icon-lg {
    width: 32px;
    height: 32px;
}

.bobex-icon-xl {
    width: 48px;
    height: 48px;
}
