/* Certificate Builder by Aadil - Public Verification Styles */

body:has(.cba-verification-container) {
    background:
        radial-gradient(circle at 12% 8%, rgba(14, 165, 233, 0.16), transparent 32rem),
        radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.13), transparent 34rem),
        linear-gradient(135deg, #eef6ff 0%, #f8fbff 48%, #eefbf7 100%);
}

body:has(.cba-verification-container) .site-content,
body:has(.cba-verification-container) .content-area,
body:has(.cba-verification-container) main {
    background: transparent;
}

.cba-verification-container {
    max-width: 820px;
    margin: 48px auto;
    padding: 42px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 4px 14px rgba(37, 99, 235, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
}

.cba-verify-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.cba-verify-header::before {
    content: 'SECURE CREDENTIAL CHECK';
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.cba-verify-header h2 {
    font-size: 30px;
    margin: 0 0 8px 0;
    color: #0f3b67;
    font-weight: 700;
}

.cba-verify-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.cba-verify-form {
    margin-bottom: 30px;
}

.cba-input-group {
    display: flex;
    gap: 10px;
}

.cba-input-group input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cba-input-group input[type="text"]:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.cba-verify-btn {
    padding: 12px 24px;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cba-verify-btn:hover {
    background: #0369a1;
}

.cba-status-card {
    border-radius: 10px;
    padding: 28px;
    text-align: center;
    margin-top: 20px;
}

.cba-status-valid {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
}

.cba-status-revoked {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
}

.cba-status-notfound {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
}

.cba-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
}

.cba-status-valid .cba-status-icon {
    background: #dcfce7;
    color: #16a34a;
}

.cba-status-revoked .cba-status-icon {
    background: #fee2e2;
    color: #dc2626;
}

.cba-status-notfound .cba-status-icon {
    background: #fef3c7;
    color: #d97706;
}

.cba-status-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cba-status-valid .cba-status-title { color: #166534; }
.cba-status-revoked .cba-status-title { color: #991b1b; }
.cba-status-notfound .cba-status-title { color: #92400e; }

.cba-status-desc {
    font-size: 13.5px;
    color: #475569;
    margin: 0 0 20px 0;
}

.cba-record-details {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cba-detail-photo {
    text-align: center;
    margin-bottom: 15px;
    display: block !important;
}

.cba-detail-photo img {
    display: inline-block !important;
    width: 112px;
    height: 136px;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .15);
}

.cba-details-table {
    width: 100%;
    border-collapse: collapse;
}

.cba-details-table th,
.cba-details-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
}

.cba-details-table th {
    width: 35%;
    color: #64748b;
    font-weight: 500;
}

.cba-details-table td {
    color: #1e293b;
}

.cba-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.cba-badge-success {
    background: #dcfce7;
    color: #166534;
}

@media (max-width: 700px) {
    body:has(.cba-verification-container) {
        overflow-x: hidden;
    }

    .cba-verification-container {
        width: calc(100% - 24px);
        max-width: none;
        margin: 18px auto;
        padding: 22px 14px;
        border-radius: 16px;
    }

    .cba-verify-header {
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    .cba-verify-header::before {
        font-size: 9px;
        letter-spacing: .08em;
        padding: 5px 9px;
    }

    .cba-verify-header h2 {
        font-size: 23px;
        line-height: 1.25;
    }

    .cba-verify-header p {
        font-size: 13px;
        line-height: 1.55;
    }

    .cba-verify-form {
        margin-bottom: 20px;
    }

    .cba-input-group {
        flex-direction: column;
        gap: 9px;
    }

    .cba-input-group input[type="text"] {
        width: 100%;
        min-height: 46px;
        box-sizing: border-box;
        font-size: 16px;
    }

    .cba-verify-btn {
        width: 100%;
        min-height: 46px;
        padding: 11px 16px;
    }

    .cba-status-card {
        margin-top: 14px;
        padding: 20px 12px;
        border-radius: 13px;
    }

    .cba-status-title {
        font-size: 17px;
        line-height: 1.35;
    }

    .cba-status-desc {
        font-size: 13px;
        line-height: 1.55;
    }

    .cba-record-details {
        padding: 10px 8px;
        overflow-x: hidden;
    }

    .cba-detail-photo img {
        width: 96px;
        height: 116px;
    }

    .cba-details-table,
    .cba-details-table tbody,
    .cba-details-table tr,
    .cba-details-table th,
    .cba-details-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .cba-details-table tr {
        padding: 8px 4px;
        border-bottom: 1px solid #f1f5f9;
    }

    .cba-details-table th,
    .cba-details-table td {
        padding: 2px 4px;
        border: 0;
        text-align: left;
    }

    .cba-details-table th {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .cba-details-table td {
        font-size: 14px;
        line-height: 1.45;
    }
}
