/* ================================================================
   Nirmol Bangladesh – Smart Record Portal  |  Frontend Styles
   Theme: Nature · Ocean · Environment · Climate
   Version: 3.0
================================================================ */

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

/* ================================================================
   PORTAL WRAPPER
================================================================ */
.nb-portal {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    max-width: 740px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

/* ================================================================
   HERO SECTION
================================================================ */
.nb-hero {
    border-radius: 22px;
    padding: 52px 40px 44px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 16px 48px rgba(0,0,0,.22);
}

/* Decorative watermark leaf */
.nb-hero-watermark {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 120px;
    opacity: .07;
    pointer-events: none;
    line-height: 1;
    transform: rotate(-15deg);
}

/* Org badge */
.nb-org-badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.9);
    margin-bottom: 18px;
}

.nb-hero-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 14px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}

.nb-hero-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: -.4px;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.nb-hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,.82);
    margin: 0 0 32px;
    line-height: 1.6;
}

/* ================================================================
   SEARCH BOX
================================================================ */
.nb-search-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 520px;
    margin: 0 auto;
}

.nb-input-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 360px;
}

.nb-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.nb-input {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 16px 15px 44px;
    border: 2px solid rgba(255,255,255,.28);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(255,255,255,.14);
    color: #fff;
    outline: none;
    letter-spacing: .8px;
    transition: border-color .2s, background .2s;
    backdrop-filter: blur(4px);
}

.nb-input::placeholder { color: rgba(255,255,255,.5); }

.nb-input:focus {
    border-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.2);
}

.nb-btn-search {
    background: #fff;
    color: #0e7c4a;
    border: none;
    border-radius: 12px;
    padding: 15px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.nb-btn-search:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(0,0,0,.28);
}

.nb-btn-search:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.nb-hero-hint {
    font-size: 12px;
    color: rgba(255,255,255,.52);
    margin: 14px 0 0;
}

/* ================================================================
   SPINNER
================================================================ */
.nb-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(14,124,74,.2);
    border-top-color: #0e7c4a;
    border-radius: 50%;
    animation: nb-spin .7s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

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

/* ================================================================
   FADE-IN ANIMATION
================================================================ */
.nb-fade-in {
    animation: nb-fadein .4s cubic-bezier(.22,1,.36,1);
}

@keyframes nb-fadein {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   RESULT CARD
================================================================ */
.nb-result-area { margin-top: 4px; }

.nb-card-wrap {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.10);
    border: 1px solid #e8edf5;
}

.nb-verified-banner {
    text-align: center;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #fff;
}

/* Profile row */
.nb-profile-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.nb-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.nb-rec-name {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 7px;
    line-height: 1.25;
}

.nb-id-chip {
    display: inline-block;
    background: transparent;
    border: 1.5px solid;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    font-family: 'Courier New', monospace;
}

/* Detail rows */
.nb-details { padding: 6px 0; }

.nb-detail-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 26px;
    border-bottom: 1px solid #f8fafc;
    transition: background .12s;
}

.nb-detail-row:last-child { border-bottom: none; }
.nb-detail-row:hover { background: #f8fafc; }

.nb-detail-icon {
    font-size: 17px;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}

.nb-detail-label {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .6px;
    width: 140px;
    flex-shrink: 0;
}

.nb-detail-value {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
    flex: 1;
}

/* Download button */
.nb-dl-wrap {
    padding: 20px 26px 26px;
    text-align: center;
    background: #fafbff;
    border-top: 1px solid #f1f5f9;
}

.nb-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 12px;
    padding: 14px 34px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    transition: transform .15s, box-shadow .15s, filter .15s;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    letter-spacing: .1px;
}

.nb-dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 24px rgba(0,0,0,.26);
    filter: brightness(1.08);
    color: #fff !important;
}

/* ================================================================
   ERROR CARD
================================================================ */
.nb-error-card {
    background: #fff;
    border-radius: 18px;
    text-align: center;
    padding: 44px 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    border: 1px solid #fde8d8;
}

.nb-error-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.nb-error-card h3 {
    font-size: 20px;
    color: #c2410c;
    margin: 0 0 10px;
    font-weight: 700;
}

.nb-error-card p {
    color: #64748b;
    font-size: 15px;
    margin: 0 0 8px;
    line-height: 1.6;
}

.nb-error-sub {
    color: #94a3b8 !important;
    font-size: 13px !important;
}

/* ================================================================
   PORTAL FOOTER
================================================================ */
.nb-portal-footer {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

/* ================================================================
   MISSING PORTAL  (shortcode error state)
================================================================ */
.nb-portal-missing {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 14px 18px;
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 580px) {
    .nb-hero { padding: 38px 20px 32px; border-radius: 16px; }
    .nb-hero-title { font-size: 20px; }
    .nb-search-box { flex-direction: column; align-items: stretch; }
    .nb-input-wrap { max-width: 100%; }
    .nb-btn-search { justify-content: center; width: 100%; }
    .nb-profile-row { flex-direction: column; text-align: center; }
    .nb-detail-label { width: 100px; font-size: 11px; }
    .nb-detail-row { padding: 10px 16px; gap: 10px; }
    .nb-detail-value { font-size: 14px; }
    .nb-dl-btn { width: 100%; justify-content: center; }
    .nb-portal-footer { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
}
