/* Shortlink plugin - frontend styles (v1.0.4)
 * Minimalis putih, blue accent.
 * Tidak ada gambar apapun di halaman Continue (anti Facebook thumbnail).
 * Fully responsive for mobile.
 */

/* ============ Page wrappers (standalone, no WP theme) ============ */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f7f8fa;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

.sc-page-wrap,
.sc-continue-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.sc-page-wrap > .sc-wrap,
.sc-continue-wrap > .sc-card {
    margin: 0 auto;
    width: 100%;
    max-width: 560px;
}
.sc-continue-wrap > .sc-card { max-width: 480px; }

.sc-wrap,
.sc-continue-wrap-inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

/* ============ Card ============ */
.sc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.05);
    padding: 28px;
    text-align: left;
    margin-bottom: 28px;
    box-sizing: border-box;
}
.sc-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    text-align: center;
}
.sc-card-subtitle {
    color: #64748b;
    font-size: 14px;
    text-align: center;
    margin: 0 0 22px;
}

/* ============ Form page elements ============ */
.sc-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.sc-wrap h1,
.sc-page-wrap h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.2;
}

.sc-subtitle {
    color: #64748b;
    font-size: 17px;
    margin: 0 0 32px;
}

/* ============ Form inputs ============ */
.sc-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.sc-wrap input[type="url"],
.sc-wrap input[type="text"],
.sc-continue-wrap input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px; /* 16px penting supaya iOS Safari gak zoom-in saat focus */
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.sc-wrap input[type="url"] { margin-bottom: 16px; }
.sc-wrap input[type="url"]:focus,
.sc-continue-wrap input[type="text"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ============ Buttons ============ */
.sc-btn-primary {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.sc-btn-primary:hover:not(:disabled) { background: #1d4ed8; }
.sc-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.sc-btn-big {
    font-size: 16px;
    padding: 14px 24px;
    max-width: 260px;
    display: block;
    margin: 0 auto;
}
.sc-btn-green { background: #059669 !important; }
.sc-btn-green:hover:not(:disabled) { background: #047857 !important; }

/* ============ Disclaimer & Features ============ */
.sc-disclaimer {
    font-size: 12px;
    color: #64748b;
    margin-top: 14px;
    text-align: center;
    line-height: 1.5;
}

.sc-features {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    font-size: 13px;
    color: #64748b;
}
.sc-feature { white-space: nowrap; }

/* ============ Alerts ============ */
.sc-alert {
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    text-align: left;
    font-size: 14px;
    box-sizing: border-box;
}
.sc-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.sc-alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.sc-short-result {
    display: flex;
    gap: 8px;
    margin: 10px 0 8px;
    flex-wrap: nowrap;
}
.sc-short-result input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font-size: 14px;
    color: #065f46;
    background: #fff;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-weight: 600;
    box-sizing: border-box;
}
.sc-short-result button {
    background: #065f46;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.sc-short-result button:hover { opacity: .85; }

.sc-text-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}
.sc-text-link:hover { text-decoration: underline; }

/* ============ Captcha box ============ */
.sc-captcha-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin: 0 auto 20px;
    text-align: center;
    box-sizing: border-box;
}
.sc-captcha-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.sc-math-q {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .04em;
}
.sc-math-q .sc-plus { color: #2563eb; margin: 0 6px; }
.sc-math-q .sc-eq   { color: #94a3b8; margin: 0 8px; }
.sc-math-q .sc-qmark{ color: #94a3b8; }

.sc-math-input {
    width: 100%;
    max-width: 180px;
    padding: 10px 14px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    color: #0f172a;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.sc-math-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.sc-math-input::placeholder { color: #cbd5e1; font-weight: 400; font-size: 14px; }
.sc-math-hint { font-size: 11px; color: #94a3b8; margin-top: 8px; }
.sc-math-hint.ok { color: #059669; font-weight: 600; }

.sc-captcha-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ============ Destination (legacy, gak dipakai lagi tapi tetap ada) ============ */
.sc-destination {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}
.sc-destination-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.sc-destination-url {
    font-size: 13px;
    color: #0f172a;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ============ Mobile Responsive ============ */
@media (max-width: 600px) {
    .sc-page-wrap,
    .sc-continue-wrap {
        padding: 24px 16px;
        align-items: flex-start; /* atas supaya gak ketutup keyboard mobile */
    }
    .sc-wrap h1,
    .sc-page-wrap h1 {
        font-size: 28px;
    }
    .sc-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    .sc-card {
        padding: 22px 18px;
    }
    .sc-card-title {
        font-size: 20px;
    }
    .sc-features {
        gap: 12px;
        font-size: 12px;
    }
    .sc-math-q {
        font-size: 22px;
    }
    .sc-math-input {
        font-size: 16px;
        max-width: 160px;
    }
    .sc-short-result {
        flex-wrap: nowrap;
    }
    .sc-short-result input {
        font-size: 12px;
        padding: 8px 10px;
    }
    .sc-short-result button {
        padding: 0 14px;
        font-size: 13px;
    }
    .sc-alert {
        padding: 14px 16px;
        font-size: 13px;
    }
    .sc-btn-primary,
    .sc-btn-big {
        font-size: 15px;
        padding: 12px 18px;
    }
    .sc-captcha-box {
        padding: 16px;
    }
    .sc-badge {
        font-size: 10px;
        padding: 5px 12px;
        margin-bottom: 18px;
    }
}

@media (max-width: 380px) {
    .sc-page-wrap,
    .sc-continue-wrap {
        padding: 16px 12px;
    }
    .sc-wrap h1,
    .sc-page-wrap h1 {
        font-size: 24px;
    }
    .sc-card {
        padding: 18px 14px;
    }
    .sc-features {
        flex-direction: column;
        gap: 6px;
    }
    .sc-feature {
        font-size: 11px;
    }
    .sc-short-result input {
        font-size: 11px;
    }
}
