/* Average Discount Block — v1.0.0 */

/* ── Tailwind Reset (Rule 3) ── */
.adb-wrapper * { box-sizing: border-box !important; }
.adb-wrapper a { line-height: inherit !important; }

/* ── Block Container ── */
.adb-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 32px;
    margin: 24px 0;
    background: #fafbfc;
    border: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* ── Divider ── */
.adb-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.adb-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
}

.adb-divider-diamond {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    flex-shrink: 0;
}

/* ── Percentage ── */
.adb-pct {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #20C997;
    letter-spacing: -0.02em;
    margin: 20px 0 8px;
}

/* ── Label ── */
.adb-label {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin: 0 0 4px;
}

/* ── Subtext ── */
.adb-subtext {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #9ca3af;
    margin: 0 0 20px;
}

/* ── Dark Mode ── */
@media (prefers-color-scheme: dark) {
    .adb-block {
        background: #1a1a2e;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .adb-pct {
        color: #6ee7b7;
    }

    .adb-label {
        color: #9ca3af;
    }

    .adb-subtext {
        color: #6b7280;
    }

    .adb-divider-line {
        background: linear-gradient(to right, transparent, #374151, transparent);
    }

    .adb-divider-diamond {
        color: #374151;
    }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .adb-block,
    .adb-block * {
        transition: none !important;
        animation: none !important;
    }
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .adb-block {
        padding: 36px 20px;
        margin: 16px 0;
    }

    .adb-divider {
        max-width: 140px;
    }

    .adb-pct {
        margin: 16px 0 6px;
    }

    .adb-subtext {
        margin: 0 0 16px;
    }
}
