/* AntiCounterfeit Shield — Frontend Styles
   ============================================ */

/* Wrapper */
.anticf-wrapper {
    max-width: 580px;
    margin: 30px auto;
    padding: 32px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

/* Intro text */
.anticf-intro {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.6;
}

/* Scanner section */
.anticf-scanner-section {
    text-align: center;
    margin-bottom: 20px;
}

/* Buttons */
.anticf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    line-height: 1;
}
.anticf-btn:active { transform: scale(0.98); }

.anticf-btn-primary {
    background: #1d4ed8;
    color: #fff;
    white-space: nowrap;
}
.anticf-btn-primary:hover { background: #1e40af; color: #fff; }
.anticf-btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }

.anticf-btn-secondary {
    background: #f9fafb;
    color: #374151;
    border: 2px solid #d1d5db;
}
.anticf-btn-secondary:hover { background: #f3f4f6; border-color: #9ca3af; }

/* Divider */
.anticf-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #9ca3af;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.anticf-divider::before,
.anticf-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Manual input */
.anticf-manual-section {
    margin-bottom: 20px;
}
.anticf-input-group {
    display: flex;
    gap: 10px;
}
.anticf-input {
    flex: 1;
    padding: 12px 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;
}
.anticf-input:focus { border-color: #1d4ed8; }

/* QR reader container */
#anticf-qr-reader {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

/* Result box */
.anticf-result {
    margin-top: 28px;
    padding: 28px 24px;
    border-radius: 12px;
    text-align: center;
    line-height: 1.65;
}
.anticf-result h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0 8px;
    letter-spacing: 1px;
}
.anticf-result p { margin: 8px 0; font-size: 15px; }
.anticf-result-icon { font-size: 52px; line-height: 1; margin-bottom: 8px; }
.anticf-product-name {
    font-size: 17px;
    font-weight: 700;
    margin: 6px 0 10px;
}

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

/* Mobile */
@media (max-width: 480px) {
    .anticf-wrapper { padding: 20px 16px; }
    .anticf-input-group { flex-direction: column; }
    .anticf-btn-primary { width: 100%; justify-content: center; }
}
