/* === Certificat digital — Ținutul Banilor === */
/* Ecran + @media print — A4 landscape */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.zero-slash {
    position: relative;
    display: inline-block;
    font-variant-numeric: lining-nums;
}
.zero-slash::after {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    top: 50%;
    border-top: 0.09em solid currentColor;
    transform: translateY(-50%) rotate(-32deg);
}

body.cert-page {
    background: #e8ecf2;
    font-family: 'Georgia', 'Times New Roman', serif;
    min-height: 100vh;
    padding: 40px 20px 60px;
    color: #1e293b;
}

/* ── Butoane acțiune (ascunse la print) ────────────────────────── */
.cert-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: opacity 0.2s;
}

.cert-btn:hover { opacity: 0.85; }

.cert-btn--primary {
    background: #1A4B8C;
    color: #fff;
    border-color: #1A4B8C;
}

.cert-btn--outline {
    background: transparent;
    color: #1A4B8C;
    border-color: #1A4B8C;
}

/* ── Hârtia certificatului ─────────────────────────────────────── */
.cert-paper {
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 72px;
    box-shadow: 0 12px 48px rgba(0,0,0,.18);
    position: relative;
    border: 3px solid #1A4B8C;
    border-radius: 2px;
}

/* Chenar interior decorativ */
.cert-paper::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(26,75,140,.25);
    pointer-events: none;
}

/* ── Header ────────────────────────────────────────────────────── */
.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 44px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1A4B8C;
}

.cert-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', 'Arial', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #1A4B8C;
    letter-spacing: -0.01em;
}

.cert-logo__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.cert-badge {
    font-family: 'Inter', 'Arial', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #F0A500;
    border: 2px solid #F0A500;
    padding: 5px 16px;
    border-radius: 24px;
}

/* ── Corp ──────────────────────────────────────────────────────── */
.cert-body {
    text-align: center;
    padding: 12px 0 44px;
}

.cert-preamble {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 10px;
    font-style: italic;
}

.cert-name {
    font-family: 'Poppins', 'Arial', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #1A4B8C;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.cert-course-label {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 8px;
    font-style: italic;
}

.cert-course {
    font-size: 1.45rem;
    font-weight: 400;
    color: #1e293b;
    margin-bottom: 36px;
    font-family: 'Georgia', serif;
}

.cert-score {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #1A4B8C 0%, #2980B9 100%);
    color: #fff;
    padding: 18px 48px;
    border-radius: 48px;
}

.cert-score__value {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
}

.cert-score__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 2px;
}

/* ── Footer ────────────────────────────────────────────────────── */
.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.cert-sig__img {
    display: block;
    height: 48px;
    width: auto;
    margin-bottom: 2px;
}

.cert-sig__line {
    width: 200px;
    height: 2px;
    background: #1A4B8C;
    margin-bottom: 8px;
}

.cert-sig__name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #1A4B8C;
    font-size: 0.95rem;
}

.cert-sig__role {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

.cert-meta {
    text-align: right;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.9;
}

.cert-code {
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #1A4B8C;
}

.cert-disclaimer {
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: #94a3b8;
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

/* ── Print ─────────────────────────────────────────────────────── */
@media print {
    body.cert-page {
        background: white;
        padding: 0;
    }

    .cert-actions,
    .no-print {
        display: none !important;
    }

    .cert-paper {
        max-width: 100%;
        margin: 0;
        padding: 22px 44px;
        box-shadow: none;
        border: 2px solid #1A4B8C;
        page-break-inside: avoid;
    }

    .cert-header {
        margin-bottom: 22px;
        padding-bottom: 12px;
    }

    .cert-body {
        padding: 4px 0 22px;
    }

    .cert-name {
        font-size: 2.3rem;
        margin-bottom: 12px;
    }

    .cert-course {
        margin-bottom: 20px;
    }

    .cert-footer {
        margin-top: 22px;
        padding-top: 14px;
    }

    .cert-sig__img {
        height: 38px;
    }

    .cert-disclaimer {
        margin-top: 10px;
        padding-top: 8px;
    }

    @page {
        size: A4 landscape;
        margin: 6mm;
    }
}
