@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800;900&family=Orbitron:wght@600;700;800;900&display=swap');

/* ==========================================
   CERTIFICATE & VERIFY PAGES — AI Bootcamp Theme
   Matches Cydenium AI Developer Landing Page
   ========================================== */
:root {
    --gradient-cta: linear-gradient(135deg, #7C6AEF 0%, #C77DFF 100%);
    --bg-dark: #0A0A0E;
    --surface-dark: #131318;
    --surface-2: #17171E;
    --border-soft: #232330;
    --text-main: #F2F2F5;
    --text-dim: #A3A3B0;
    --accent: #7C6AEF;
    --magenta: #C77DFF;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.cert-page {
    min-height: 100vh;
    background: var(--bg-dark);
    padding: 64px 20px 80px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.cert-page-container {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Header ─────────────────────────────── */
.cert-page-header {
    text-align: center;
    margin-bottom: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-page-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.cert-page-logo-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.cert-page-logo-wordart {
    height: 26px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.cert-page-header h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.3rem;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: #FFFFFF;
    line-height: 1.2;
}

.cert-page-header h1 span {
    background: var(--gradient-cta);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cert-page-header p {
    font-family: 'Inter', sans-serif;
    color: var(--text-dim);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.65;
    max-width: 500px;
    font-weight: 400;
}

/* ── Form Card ───────────────────────────── */
.cert-form {
    width: 100%;
    max-width: 480px;
    background: var(--surface-dark);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 32px 28px;
    box-sizing: border-box;
    margin: 0 auto 52px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cert-form-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-form input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #F2F2F5;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cert-form input::placeholder {
    color: #6C6C7A;
}

.cert-form input:focus {
    border-color: var(--accent);
    background: rgba(124, 106, 239, 0.08);
}

.form-label {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.form-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Generate Button ─────────────────────── */
.btn-generate {
    width: 100%;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: var(--gradient-cta);
    color: #FFFFFF;
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.btn-generate:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── Certificate Preview Wrapper ─────────── */
.cert-preview-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    gap: 32px;
    animation: fadeIn 0.4s ease;
}

.cert-preview-container {
    width: 100%;
    max-width: 900px;
    display: block;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 10px;
}

/* === CERTIFICATE STYLING - MODERN LIGHT THEME === */
.cert-preview {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 1.5 / 1;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    position: relative;
    padding: 8px;
    background: linear-gradient(135deg, #7C6AEF 0%, #9D4EDD 50%, #C77DFF 100%);
    box-sizing: border-box;
}

.cert-inner {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(124, 106, 239, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(199, 125, 255, 0.05) 0%, transparent 50%);
}

/* Decorative Corners */
.cert-corner {
    position: absolute;
    width: 56px;
    height: 56px;
    pointer-events: none;
}

.cert-corner.top-left {
    top: 0;
    left: 0;
    border-top: 3px solid #7C6AEF;
    border-left: 3px solid #7C6AEF;
    border-top-left-radius: 16px;
    opacity: 0.6;
}

.cert-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid #C77DFF;
    border-right: 3px solid #C77DFF;
    border-bottom-right-radius: 16px;
    opacity: 0.6;
}

/* Header Section */
.cert-header-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 28px;
    margin-bottom: 2px;
    gap: 14px;
}

.cert-logo-icon-dark {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.cert-logo-wordart-dark {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: brightness(0);
    opacity: 0.9;
}

/* Title Section */
.cert-title-section {
    text-align: center;
    padding: 12px 40px 0;
}

.cert-badge {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 3.5px;
    font-weight: 800;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 12px;
    text-transform: uppercase;
    background: rgba(124, 106, 239, 0.08);
    color: #7C6AEF;
    border: 1px solid rgba(124, 106, 239, 0.3);
}

.cert-course-name {
    font-size: 2.2rem;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #7C6AEF 0%, #C77DFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cert-title-section::after {
    content: '';
    display: block;
    width: 54px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: var(--gradient-cta);
}

/* Body Section */
.cert-body-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px 70px;
}

.cert-label {
    font-size: 0.95rem;
    color: #64748B;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cert-name-wrapper {
    margin-bottom: 22px;
    width: 100%;
}

.cert-student-name {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.15;
    border-bottom: 3px solid #E2E8F0;
    display: inline-block;
    padding: 0 32px 10px;
    max-width: 90%;
    margin: 0;
}

.cert-description {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.65;
    max-width: 660px;
    margin: 0;
}

.cert-description strong {
    color: #0F172A;
    font-weight: 700;
}

/* Footer Section */
.cert-footer-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 60px 20px;
    margin-top: auto;
    position: relative;
}

.cert-footer-item {
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 185px;
}

.cert-footer-line {
    width: 100%;
    height: 1px;
    background-color: #CBD5E1;
    margin: 8px 0;
}

.cert-footer-item strong {
    display: flex;
    font-size: 1.05rem;
    color: #1e293b;
    font-weight: 700;
    min-height: 26px;
    align-items: flex-end;
    justify-content: center;
}

.cert-date-text,
.signature-text {
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.signature-text {
    margin-bottom: -5px;
}

.cert-footer-item span {
    font-size: 0.7rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
}

/* Stamp + Signature Overlay */
.cert-signature-block {
    position: relative;
    width: 170px;
    height: 26px;
    min-height: 26px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 0px;
}

.cert-stamp-img {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 155px;
    height: 115px;
    object-fit: contain;
    mix-blend-mode: multiply;
    opacity: 0.95;
    pointer-events: none;
    z-index: 2;
}

.cert-seal-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 3;
}

.cert-seal-qr {
    width: 82px;
    height: 82px;
    background: var(--gradient-cta);
    border-radius: 14px;
    padding: 3px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.cert-seal-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #ffffff;
    border-radius: 11px;
    padding: 4px;
    box-sizing: border-box;
}

.cert-seal-qr-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #7C6AEF;
    margin-bottom: 0;
}

.cert-seal-website {
    font-size: 0.58rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 1px;
    text-transform: lowercase;
}

/* Download & Action Buttons */
.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 44px;
    background: var(--gradient-cta);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(124, 106, 239, 0.35);
}

.btn-download:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(124, 106, 239, 0.45);
}

.btn-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    background: #0A66C2;
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 10px 25px rgba(10, 102, 194, 0.3);
}

.btn-linkedin:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}

.cert-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 12px;
    cursor: pointer;
    padding: 6px 0;
}

.rating-star {
    font-size: 2.5rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    user-select: none;
}

.rating-star.active {
    color: #FFD700;
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
}

/* Verify Status Banner */
.verify-status-banner {
    width: 100%;
    max-width: 900px;
    background: rgba(52, 199, 125, 0.12);
    border: 1px solid rgba(52, 199, 125, 0.4);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-sizing: border-box;
}

.verify-icon {
    width: 48px;
    height: 48px;
    background: #34C77D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(52, 199, 125, 0.5);
}

.verify-info h3 {
    margin: 0 0 4px;
    font-size: 1.3rem;
    color: #34C77D;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.verify-info p {
    margin: 0;
    color: #A3A3B0;
    font-size: 0.95rem;
}

/* Verify Metadata Grid */
.verify-meta-grid {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.verify-meta-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.verify-meta-label {
    font-size: 0.75rem;
    color: #6C6C7A;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.verify-meta-value {
    font-size: 1.05rem;
    color: #F2F2F5;
    font-weight: 700;
}

.verify-error-card {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    max-width: 520px;
    margin: 40px auto;
}

.verify-error-card h2 {
    color: #EF4444;
    margin: 0 0 12px;
    font-size: 1.6rem;
}

.verify-error-card p {
    color: #A3A3B0;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* ── Mobile Responsive ──────────────────── */
@media (max-width: 768px) {
    .cert-page {
        padding: 32px 16px 60px;
    }

    .cert-page-header h1 {
        font-size: 1.75rem;
    }

    .cert-form {
        padding: 24px 20px;
    }

    .btn-generate,
    .btn-download,
    .btn-linkedin {
        width: 100%;
        box-sizing: border-box;
    }

    .cert-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .cert-preview-container {
        width: 100%;
        overflow: hidden;
        padding: 0;
        display: block !important;
    }

    .cert-preview {
        border-radius: 12px;
    }

    .cert-body-section {
        padding: 4px 24px;
    }

    .cert-footer-section {
        padding: 0 24px 16px;
    }

    .verify-status-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ── EXACT VerifyPage Styles from Backup ───────────────── */
.verify-page {
    min-height: 100vh;
    background: var(--bg-dark);
    color: #EDEDED;
    padding: 56px 20px 80px;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.verify-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.verify-header {
    text-align: center;
    margin-bottom: 28px;
}

.verify-logo-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}

.verify-logo-icon {
    height: 38px;
    width: auto;
}

.verify-logo-wordart {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.verify-header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    margin-bottom: 8px;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.verify-header h1 span {
    background: var(--gradient-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.verify-header p {
    color: #A3A3B0;
    font-size: 0.95rem;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

.verify-cert-preview {
    width: 100%;
    max-width: 900px;
    display: block;
    margin: 0 auto 32px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.verify-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 24px 28px;
    margin: 0 auto 28px;
    width: 100%;
    max-width: 680px;
    box-sizing: border-box;
}

.verify-card-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7C6AEF;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
}

.verify-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
}

@media (max-width: 560px) {
    .verify-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.verify-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.verify-item-label {
    font-size: 0.72rem;
    color: #6C6C7A;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.verify-item-value {
    font-size: 1rem;
    color: #F2F2F5;
    font-weight: 600;
    line-height: 1.35;
}

.verify-item-value.highlight {
    color: #C77DFF;
    font-size: 1.1rem;
    font-weight: 700;
}

.verify-item-value.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #34C77D;
    font-size: 0.9rem;
    font-weight: 700;
}

.verify-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-verify-primary {
    padding: 13px 26px;
    background: var(--gradient-cta);
    color: white;
    border: none;
    border-radius: 11px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-verify-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-verify-secondary {
    padding: 13px 26px;
    background: transparent;
    color: #A3A3B0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-verify-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}
