/* ══════════════════════════════════════════════
   VERIFY PAGE — CERTIFICATE AUTHENTICATION
   ══════════════════════════════════════════════ */

/* ── Hero ── */
.verify-hero {
    position: relative;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 100px 0 80px;
    overflow: hidden;
}
.verify-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.verify-hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.3;
}
.orb-1 { width: 500px; height: 500px; background: #6366f1; top: -150px; right: -100px; }
.orb-2 { width: 350px; height: 350px; background: #8b5cf6; bottom: -100px; left: -80px; }

.verify-hero-content { position: relative; z-index: 1; text-align: center; }

.verify-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px; border-radius: 100px;
    color: #c4b5fd; font-size: 13px; font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase;
    margin-bottom: 28px;
}
.verify-hero-badge sl-icon { font-size: 16px; }

.verify-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 56px);
    color: white; margin-bottom: 20px; line-height: 1.2;
}
.verify-hero-content > .container > p,
.verify-hero-content p {
    color: #a5b4fc; font-size: 18px; max-width: 560px; margin: 0 auto 40px; line-height: 1.7;
}

/* ── Verification Form ── */
.verify-form { max-width: 600px; margin: 0 auto; }
.verify-input-row { display: flex; gap: 12px; }
.verify-input-wrap {
    flex: 1; position: relative;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 14px; display: flex; align-items: center;
    padding: 0 16px; gap: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(8px);
}
.verify-input-wrap:focus-within {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.25);
}
.verify-input-icon { color: rgba(255,255,255,0.4); font-size: 18px; flex-shrink: 0; }
.verify-input {
    flex: 1; background: transparent; border: none;
    outline: none; font-size: 16px; color: white;
    font-family: 'Outfit', monospace; padding: 16px 0;
    letter-spacing: 0.5px;
}
.verify-input::placeholder { color: rgba(255,255,255,0.35); }

.verify-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 32px; border-radius: 14px; border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white; font-weight: 700; font-size: 15px;
    cursor: pointer; white-space: nowrap;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6);
}
.verify-hint { color: rgba(165, 180, 252, 0.7); font-size: 13px; margin-top: 12px; }
.verify-hint code { background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 4px; }

/* ── Results Section ── */
.verify-results-section { padding: 60px 0 100px; background: #f8fafc; }

/* ── Status Banner ── */
.verify-status-banner {
    display: flex; align-items: center; gap: 24px;
    padding: 28px 36px; border-radius: 20px; margin-bottom: 40px;
    max-width: 860px; margin-left: auto; margin-right: auto;
}
.success-banner {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac;
}
.error-banner {
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    border: 1.5px solid #fca5a5;
}
.status-icon { font-size: 40px; flex-shrink: 0; }
.success-banner .status-icon { color: #16a34a; }
.error-banner .status-icon { color: #dc2626; }
.status-text { flex: 1; }
.status-text h2 { font-size: 22px; margin-bottom: 4px; }
.success-banner .status-text h2 { color: #15803d; }
.error-banner .status-text h2 { color: #b91c1c; }
.status-text p { color: #374151; font-size: 15px; margin: 0; }
.status-seal {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: #16a34a; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.status-seal sl-icon { font-size: 36px; }

/* ── Certificate Wrapper ── */
.certificate-wrapper { max-width: 860px; margin: 0 auto; }

.certificate {
    background: #fefefe;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
}

.cert-border-outer {
    padding: 12px;
    background: linear-gradient(135deg, #1e1b4b, #312e81, #4c1d95, #312e81, #1e1b4b);
}
.cert-border-inner {
    background: white;
    padding: 48px;
    border: 2px solid #e0e7ff;
    position: relative;
    overflow: hidden;
}
/* Watermark */
.cert-border-inner::before {
    content: 'RESEARCHERS MEDIA';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 72px; font-weight: 900; color: rgba(99, 102, 241, 0.04);
    white-space: nowrap; pointer-events: none; letter-spacing: 4px;
    font-family: 'Playfair Display', serif;
}

/* ── Certificate Head ── */
.cert-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.cert-logo-area { display: flex; align-items: center; gap: 16px; }
.cert-logo-img { height: 56px; width: auto; object-fit: contain; display: block; }
.cert-type-label {
    font-size: 13px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
    color: #6366f1; background: #ede9fe; padding: 8px 16px; border-radius: 100px;
    align-self: center;
}

/* ── Divider ── */
.cert-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 24px 0;
}
.divider-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, #c7d2fe, transparent); }
.divider-star { color: #818cf8; font-size: 14px; }

/* ── Body Text ── */
.cert-preamble { text-align: center; margin-bottom: 20px; }
.preamble-text { font-size: 15px; color: #6b7280; font-style: italic; margin: 0; }

.cert-title-block {
    text-align: center; background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 12px; padding: 24px 40px; margin-bottom: 24px;
    border: 1px solid #ddd6fe;
}
.cert-article-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 600; color: #1e1b4b; line-height: 1.4; margin: 0;
}

.cert-author-block { text-align: center; margin-bottom: 32px; }
.cert-author-name {
    font-size: 24px; font-weight: 700; color: #312e81;
    font-family: 'Playfair Display', serif; margin: 8px 0 4px;
}
.cert-institution { font-size: 14px; color: #6b7280; margin: 0; }

/* ── Meta Row ── */
.cert-meta-row {
    display: flex; align-items: stretch; justify-content: center;
    gap: 0; border: 1px solid #e0e7ff; border-radius: 14px; overflow: hidden;
    margin-bottom: 40px;
}
.cert-meta-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 6px; padding: 20px 24px; text-align: center; background: #fafafa;
}
.cert-meta-item sl-icon { font-size: 20px; color: #818cf8; }
.cert-meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: #9ca3af; font-weight: 700; }
.cert-meta-value { font-size: 15px; font-weight: 700; color: #1e1b4b; }
.cert-ref-id { font-family: 'Outfit', monospace; color: #6366f1; font-size: 14px; }
.cert-meta-divider { width: 1px; background: #e0e7ff; }

/* ── Certificate Footer ── */
.cert-foot {
    display: flex; justify-content: space-between; align-items: flex-end;
    padding-top: 28px; border-top: 1px solid #e0e7ff;
}
.cert-foot-seal { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.seal-circle {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 30px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.cert-foot-seal span { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }

.cert-foot-signature { text-align: center; }
.signature-line {
    width: 160px; height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 1px; margin: 0 auto 10px;
}
.cert-foot-signature p { font-size: 14px; font-weight: 600; color: #1e1b4b; margin: 0; font-family: 'Playfair Display', serif; }
.sig-org { font-size: 12px !important; color: #6b7280 !important; font-style: italic; font-family: 'Inter', sans-serif !important; }

.cert-foot-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-placeholder {
    width: 64px; height: 64px; border-radius: 8px;
    background: #f5f3ff; border: 2px solid #e0e7ff;
    display: flex; align-items: center; justify-content: center;
    color: #6366f1; font-size: 32px;
}
.cert-foot-qr span { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }

/* ── Cert Actions ── */
.cert-actions {
    display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap;
}
.cert-action-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.2s ease; text-decoration: none;
}
.primary-action {
    background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.primary-action:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45); color: white; }
.secondary-action {
    background: white; color: #374151; border: 1.5px solid #e0e7ff;
}
.secondary-action:hover { background: #f5f3ff; color: #4f46e5; border-color: #c4b5fd; }

/* ── Error Help ── */
.verify-error-help {
    display: flex; align-items: flex-start; gap: 14px;
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: 12px; padding: 20px 24px; max-width: 860px; margin: 0 auto;
}
.verify-error-help sl-icon { color: #f59e0b; font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.verify-error-help p { font-size: 15px; color: #374151; margin: 0; }
.verify-error-help a { color: #6366f1; font-weight: 600; }

/* ── How it Works (default state) ── */
.verify-how { max-width: 860px; margin: 0 auto; text-align: center; }
.verify-how h3 { font-size: 24px; font-weight: 700; color: #1e1b4b; margin-bottom: 40px; font-family: 'Playfair Display', serif; }
.verify-steps { display: flex; align-items: flex-start; gap: 0; justify-content: center; }
.vstep { flex: 1; max-width: 260px; text-align: center; padding: 0 24px; }
.vstep-num { font-size: 48px; font-weight: 900; color: #e0e7ff; line-height: 1; margin-bottom: 8px; font-family: 'Playfair Display', serif; }
.vstep-icon { font-size: 36px; color: #6366f1; margin-bottom: 16px; }
.vstep h4 { font-size: 17px; font-weight: 700; color: #1e1b4b; margin-bottom: 8px; }
.vstep p { font-size: 14px; color: #6b7280; line-height: 1.6; }
.vstep-arrow { font-size: 28px; color: #c7d2fe; flex-shrink: 0; align-self: center; padding: 0 8px; padding-bottom: 40px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .verify-input-row { flex-direction: column; }
    .cert-border-inner { padding: 28px 20px; }
    .cert-head { flex-direction: column; gap: 16px; }
    .cert-meta-row { flex-direction: column; }
    .cert-meta-divider { width: 100%; height: 1px; }
    .cert-foot { flex-direction: column; align-items: center; gap: 24px; }
    .verify-steps { flex-direction: column; align-items: center; }
    .vstep-arrow { transform: rotate(90deg); }
    .verify-status-banner { flex-direction: column; text-align: center; }
    .status-seal { flex-direction: row; justify-content: center; }
}

@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    body > *:not(.verify-results-section) { display: none !important; }
    .verify-results-section { padding: 0 !important; background: white !important; }
    .verify-status-banner, .cert-actions, .verify-error-help, .verify-how { display: none !important; }
    .certificate-wrapper { max-width: 100% !important; }
    .certificate { box-shadow: none !important; page-break-inside: avoid; }
    .cert-border-outer { padding: 6px !important; }
    .cert-border-inner { padding: 20px 28px !important; border: 1.5px solid #e0e7ff !important; }
    .cert-divider { margin: 12px 0 !important; }
    .cert-preamble { margin-bottom: 10px !important; }
    .cert-title-block { padding: 14px 24px !important; margin-bottom: 14px !important; }
    .cert-article-title { font-size: 18px !important; }
    .cert-author-block { margin-bottom: 16px !important; }
    .cert-author-name { font-size: 20px !important; }
    .cert-meta-row { margin-bottom: 20px !important; }
    .cert-meta-item { padding: 12px 16px !important; }
    .cert-foot { padding-top: 16px !important; }
    .seal-circle { width: 48px !important; height: 48px !important; font-size: 22px !important; }
    .qr-placeholder { width: 48px !important; height: 48px !important; font-size: 24px !important; }
    .signature-line { width: 120px !important; }
    .cert-logo-img { height: 40px !important; }
}
