/* Helions Pharma — Product Authenticator Frontend */

.hpa-wrapper {
    max-width: 560px;
    margin: 30px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.hpa-intro {
    font-size: 15px;
    color: #4b5563;
    text-align: center;
    margin-bottom: 22px;
    line-height: 1.6;
}

/* Input row */
.hpa-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.hpa-input {
    flex: 1;
    padding: 13px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.15s;
    min-width: 0;
    background: #fff;
    color: #111;
}
.hpa-input:focus { border-color: #1d4ed8; }

.hpa-btn {
    padding: 13px 22px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
}
.hpa-btn:hover   { background: #1e40af; }
.hpa-btn:active  { transform: scale(0.98); }
.hpa-btn:disabled{ background: #93c5fd; cursor: not-allowed; }

/* Result box */
.hpa-result {
    padding: 26px 22px;
    border-radius: 12px;
    text-align: center;
    line-height: 1.65;
    margin-top: 10px;
}
.hpa-result h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 10px;
    letter-spacing: 0.5px;
}
.hpa-result p { margin: 7px 0; font-size: 15px; }
.hpa-icon { font-size: 50px; line-height: 1.1; margin-bottom: 6px; }

.hpa-product-name {
    font-size: 18px;
    font-weight: 700;
    margin: 6px 0 10px;
}

.hpa-product-img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin: 12px auto;
    display: block;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Status colours */
.hpa-authentic {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    color: #14532d;
}
.hpa-suspicious {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    color: #78350f;
}
.hpa-notfound {
    background: #fef2f2;
    border: 2px solid #ef4444;
    color: #7f1d1d;
}
.hpa-error {
    background: #f9fafb;
    border: 2px solid #d1d5db;
    color: #374151;
}

.hpa-authentic a,
.hpa-suspicious a,
.hpa-notfound a { color: inherit; text-decoration: underline; }

/* Mobile */
@media (max-width: 480px) {
    .hpa-input-group { flex-direction: column; }
    .hpa-btn { width: 100%; }
}
