/* assets/css/base.css */
/* All styles scoped under .wasd-calc — zero theme bleed */

/* Scope reset — only affects plugin widget */
.wasd-calc *,
.wasd-calc *::before,
.wasd-calc *::after {
    box-sizing: border-box;
}

/* Root container */
.wasd-calc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    /* Establish stacking context */
    position: relative;
}

/* Card container (each calculator is a card) */
.wasd-calc__card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
    max-width: 560px;
    margin: 0 auto;
}

/* Input group */
.wasd-calc__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.wasd-calc__label {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.wasd-calc__input {
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: inherit;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
}

.wasd-calc__input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Result area — aria-live region */
.wasd-calc__result {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #1d4ed8;
    min-height: 56px;
}

/* Primary action button */
.wasd-calc__btn {
    display: block;
    width: 100%;
    height: 48px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    font-family: inherit;
    transition: background 0.15s;
}

.wasd-calc__btn:hover { background: #1d4ed8; }
.wasd-calc__btn:disabled { background: #93c5fd; cursor: not-allowed; }

/* Responsive */
@media (max-width: 480px) {
    .wasd-calc__card { padding: 16px; }
    .wasd-calc__input,
    .wasd-calc__btn { height: 44px; }
}
