/*
==================================================
LAAU

Credential Operations Suite

Professional Recognition Badge

Badge Visual Standard v3.1

Purpose:
Provide a governed visual rendering
surface for Professional Recognition
Badges generated from authoritative
credential records.

Design Objectives:

- Credential First
- Recognition First
- Verification Focused
- Social Sharing Friendly
- PNG Export Ready
- LinkedIn Friendly
- Circular Badge Identity

Visual Standard Updates (v3.1):

- Increased emblem prominence
- Reduced vertical whitespace
- Circular recognition boundary added
- Improved visual balance
- Improved social-sharing presentation
- Maintains distinction from certificates

Governance Rules:

- Badge is NOT a certificate
- Badge is a visual recognition asset
- Badge content must remain concise
- Badge optimized for PNG export
- Fixed rendering surface required
- Credential Code remains primary identifier
- Verification information must remain visible

Status:
CANDIDATE

Version:
3.1

Governance Lock:
Pending Approval

Rendering Authority:
Credential Operations Suite

==================================================
*/

/* ==========================================
   Shared Generator UI Shell
========================================== */

.bg-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}

.bg-page-header {
    margin-bottom: 24px;
}

.bg-page-header h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    font-weight: 700;
}

.bg-page-header p {
    margin: 0;
    color: #6b7280;
}

.bg-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.bg-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.bg-card h2 {
    margin: 0 0 20px 0;
}

.bg-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.bg-field-group {
    display: flex;
    flex-direction: column;
}

.bg-field-group label {
    margin-bottom: 6px;
    font-size: 0.875rem;
    color: #6b7280;
}

.bg-field-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.bg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.bg-field {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
}

.bg-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.bg-value {
    font-weight: 600;
}

.bg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge-template {

    position: relative;

    width: 650px;

    min-height: 650px;

    margin: 0 auto;

    padding: 32px;

    background: #ffffff;

    border: 2px solid #d1d5db;

    border-radius: 16px;

    box-sizing: border-box;

    text-align: center;

    overflow: hidden;

}

/* =====================================
   Circular Recognition Boundary
   Badge Visual Standard v3.1
===================================== */

.badge-template::before {

    content: "";

    position: absolute;

    width: 520px;

    height: 520px;

    border: 2px solid #d8dde3;

    border-radius: 50%;

    top: 50%;

    left: 50%;

    transform:
        translate(-50%, -50%);

    pointer-events: none;

}

.badge-header {

    margin-top: 60px;

    margin-bottom: 8px;

}

.badge-emblem {

    width: 110px;

    height: auto;

    margin-bottom: 12px;

}

.badge-body {

    margin-top: 10px;

    margin-bottom: 5px;

}

.badge-credential-code {

    margin: 0;

    font-size: 4.5rem;

    font-weight: 800;

    letter-spacing: 4px;

    line-height: 1;

}

.badge-credential-title {

    margin-top: 12px;

    margin-bottom: 20px;

    font-size: 1.35rem;

    font-weight: 600;

    line-height: 1.4;

    max-width: 500px;

    margin-left: auto;

    margin-right: auto;

}

.badge-type {

    font-size: 0.95rem;

    font-weight: 700;

    text-transform: none;

    letter-spacing: 1px;

    color: #111827;
}   

.badge-footer {

    margin-top: 24px;

    font-size: 0.95rem;

}

.badge-credential-id {

    margin-bottom: 8px;

}

.badge-verification-url {

    font-weight: 700;

    letter-spacing: 0.5px;

}

.badge-template strong {

    font-weight: 700;

}

.bg-btn {

    padding: 10px 18px;

    border-radius: 8px;

    border: 1px solid #e5e7eb;

    background: #ffffff;

    cursor: pointer;
}

.bg-btn:hover {

    background: #f9fafb;
}

.bg-btn-disabled {

    opacity: 0.6;

    cursor: not-allowed;
}

.bg-preview {

    min-height: 500px;

    border: 2px dashed #e5e7eb;

    border-radius: 12px;

    background: #fafafa;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 32px;

    color: #6b7280;
}

.bg-preview h3 {

    margin-bottom: 12px;
}

.badge-credential-code {
    color: #111827;
}

.badge-credential-title {
    color: #111827;
}

.badge-footer {
    color: #111827;
}

.badge-credential-id {
    color: #111827;
}

.badge-verification-url {
    color: #111827;
}