/* ═══════════════════════════════════════════════
   APS Gas Bottle Checker – v1.0.0
   Scoped under .aps-gbc to avoid theme conflicts
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.aps-gbc {
    --aps-primary: #0066c0;
    --aps-primary-dark: #004e93;
    --aps-primary-light: #e8f1fb;

    max-width: 28rem;
    margin: 0 auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.05);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    color: #18181b;
    line-height: 1.5;
}

.aps-gbc *, .aps-gbc *::before, .aps-gbc *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Header ────────────────────────────────── */

.aps-gbc__header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.aps-gbc__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: .5rem;
    background: var(--aps-primary-light);
    color: var(--aps-primary);
}

.aps-gbc__icon svg {
    width: 1.375rem;
    height: 1.375rem;
}

.aps-gbc__heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #18181b;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.aps-gbc__subheading {
    font-size: .8125rem;
    color: #71717a;
    margin: .125rem 0 0 !important;
    padding: 0 !important;
    line-height: 1.4;
}

/* ── Form ──────────────────────────────────── */

.aps-gbc__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aps-gbc__input-wrap {
    position: relative;
}

.aps-gbc__input {
    width: 100%;
    padding: .75rem;
    font-size: .9375rem;
    font-family: inherit;
    color: #18181b;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: .75rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    text-transform: uppercase;
}

.aps-gbc__input::placeholder {
    text-transform: none;
    color: #a1a1aa;
}

.aps-gbc__input:focus {
    border-color: var(--aps-primary);
    box-shadow: 0 0 0 3px rgba(0,102,192,.12);
}

/* ── Button ────────────────────────────────── */

.aps-gbc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .75rem 1rem;
    font-size: .9375rem;
    font-weight: 500;
    font-family: inherit;
    color: #fff;
    background: var(--aps-primary);
    border: none;
    border-radius: .75rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    transition: background .2s, opacity .2s, transform .1s;
    line-height: 1;
}

.aps-gbc__btn:hover:not(:disabled) {
    background: var(--aps-primary-dark);
}

.aps-gbc__btn:active:not(:disabled) {
    transform: scale(.985);
}

.aps-gbc__btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.aps-gbc__btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.aps-gbc__btn--loading .aps-gbc__btn-icon {
    animation: aps-gbc-spin 1s linear infinite;
}

@keyframes aps-gbc-spin {
    to { transform: rotate(360deg); }
}

/* ── Results ───────────────────────────────── */

.aps-gbc__result {
    overflow: hidden;
}

.aps-gbc__result:empty {
    display: none;
}

.aps-gbc__msg {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: .75rem;
    animation: aps-gbc-fadeUp .35s cubic-bezier(.22,1,.36,1) both;
}

@keyframes aps-gbc-fadeUp {
    from { opacity: 0; transform: translateY(.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

.aps-gbc__msg-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .125rem;
}

/* Success */
.aps-gbc__msg--success {
    background: var(--aps-primary-light);
    border: 1px solid rgba(0,102,192,.15);
}

.aps-gbc__msg--success .aps-gbc__msg-icon {
    color: var(--aps-primary);
}

.aps-gbc__msg--success .aps-gbc__msg-title {
    font-weight: 600;
    color: var(--aps-primary-dark);
    font-size: .9375rem;
}

.aps-gbc__msg--success .aps-gbc__msg-body {
    font-size: .8125rem;
    color: var(--aps-primary);
    margin-top: .25rem;
    line-height: 1.5;
}

.aps-gbc__msg--success a {
    color: var(--aps-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s;
}

.aps-gbc__msg--success a:hover {
    color: var(--aps-primary-dark);
}

/* Fail */
.aps-gbc__msg--fail {
    background: #fffbeb;
    border: 1px solid #fef3c7;
}

.aps-gbc__msg--fail .aps-gbc__msg-icon {
    color: #d97706;
}

.aps-gbc__msg--fail .aps-gbc__msg-title {
    font-weight: 600;
    color: #78350f;
    font-size: .9375rem;
}

.aps-gbc__msg--fail .aps-gbc__msg-body {
    font-size: .8125rem;
    color: #b45309;
    margin-top: .25rem;
    line-height: 1.5;
}

.aps-gbc__msg--fail a {
    color: #b45309;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #fcd34d;
    text-underline-offset: 2px;
    transition: text-decoration-color .2s;
}

.aps-gbc__msg--fail a:hover {
    text-decoration-color: #f59e0b;
}

/* ── Footer ────────────────────────────────── */

.aps-gbc__footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f4f4f5;
    text-align: center;
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 500;
    color: #a1a1aa;
}

/* ── Selling Points (USPs) ─────────────────── */

.aps-gbc-usps {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    max-width: 28rem;
    margin: 0 auto;
    padding: 1.5rem 0 0;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.aps-gbc-usps *, .aps-gbc-usps *::before, .aps-gbc-usps *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.aps-gbc-usps__item {
    flex: 1 1 0% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: .75rem .5rem;
    position: relative;
}

.aps-gbc-usps__item + .aps-gbc-usps__item {
    border-left: 1px solid #e4e4e7;
}

.aps-gbc-usps__title {
    display: block !important;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--aps-primary, #0066c0);
    line-height: 1.3;
    letter-spacing: -.01em;
}

.aps-gbc-usps__subtitle {
    display: block !important;
    font-size: .625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #71717a;
    margin-top: .1875rem;
    line-height: 1.3;
}
