/* certificate-demo.css — Demo certificate variant */
/* All shared styles are in certificate-shared.css */

/* ── DEMO BANNER ── */
.demo-banner {
    background: linear-gradient(90deg, rgba(245,158,11,0.12), rgba(245,158,11,0.06));
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 14px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.demo-banner-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(245,158,11,0.15); display: flex; align-items: center; justify-content: center; color: #f59e0b; font-size: 1rem; flex-shrink: 0; }
.demo-banner-text strong { display: block; font-size: 0.88rem; font-weight: 700; color: #fbbf24; }
.demo-banner-text span { font-size: 0.75rem; color: var(--clr-white-soft); }
.demo-cta-btn { margin-right: auto; background: linear-gradient(135deg, var(--clr-primary), #4f46e5); color: #fff; border: none; border-radius: 10px; font-size: 0.8rem; font-weight: 700; padding: 8px 18px; text-decoration: none; white-space: nowrap; font-family: 'Cairo', sans-serif; }
.demo-cta-btn:hover { color: #fff; transform: translateY(-1px); }

/* ── ACTION BAR OVERRIDES (disabled buttons for demo) ── */
.btn-action {
    cursor: not-allowed;
    opacity: 0.45; pointer-events: none;
}
.btn-demo-label { font-size: 0.7rem; font-weight: 700; background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); border-radius: 6px; padding: 2px 8px; }

/* ── THEME SELECTOR ── */
.theme-selector-wrap {
    display: flex; align-items: center; gap: 10px;
    background: var(--clr-surface-elevated); border: 1px solid var(--clr-border);
    border-radius: 14px; padding: 10px 18px; margin-bottom: 24px;
}
.theme-selector-label { font-size: 0.8rem; color: var(--clr-muted); font-weight: 600; white-space: nowrap; }
.theme-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-dot {
    width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.theme-dot.active { border-color: #fff; transform: scale(1.15); }
.theme-dot-classic { background: linear-gradient(135deg, #f8f6f0, #2563eb); }
.theme-dot-dark    { background: linear-gradient(135deg, #0d1117, #6366f1); }
.theme-dot-royal   { background: linear-gradient(135deg, #0a0a2e, #a855f7); }
.theme-dot-emerald { background: linear-gradient(135deg, #022c22, #10b981); }
.theme-dot-gold    { background: linear-gradient(135deg, #1c1400, #f59e0b); }
.theme-dot-label { font-size: 0.72rem; color: var(--clr-muted); }

/* ── FOOTER OVERRIDE ── */
.footer-dark { padding: 28px 0; }
.footer-bottom { gap: 12px; }

/* ── THEME TABS (CSS-only toggle using :target) ── */
#cert-classic, #cert-dark, #cert-royal, #cert-emerald, #cert-gold { display: none; }
#cert-dark { display: block; }

body:has(#anchor-classic:target) #cert-classic { display: block; }
body:has(#anchor-classic:target) #cert-dark    { display: none; }
body:has(#anchor-classic:target) #cert-royal   { display: none; }
body:has(#anchor-classic:target) #cert-emerald { display: none; }
body:has(#anchor-classic:target) #cert-gold    { display: none; }

body:has(#anchor-dark:target) #cert-classic { display: none; }
body:has(#anchor-dark:target) #cert-dark    { display: block; }
body:has(#anchor-dark:target) #cert-royal   { display: none; }
body:has(#anchor-dark:target) #cert-emerald { display: none; }
body:has(#anchor-dark:target) #cert-gold    { display: none; }

body:has(#anchor-royal:target) #cert-classic { display: none; }
body:has(#anchor-royal:target) #cert-dark    { display: none; }
body:has(#anchor-royal:target) #cert-royal   { display: block; }
body:has(#anchor-royal:target) #cert-emerald { display: none; }
body:has(#anchor-royal:target) #cert-gold    { display: none; }

body:has(#anchor-emerald:target) #cert-classic { display: none; }
body:has(#anchor-emerald:target) #cert-dark    { display: none; }
body:has(#anchor-emerald:target) #cert-royal   { display: none; }
body:has(#anchor-emerald:target) #cert-emerald { display: block; }
body:has(#anchor-emerald:target) #cert-gold    { display: none; }

body:has(#anchor-gold:target) #cert-classic { display: none; }
body:has(#anchor-gold:target) #cert-dark    { display: none; }
body:has(#anchor-gold:target) #cert-royal   { display: none; }
body:has(#anchor-gold:target) #cert-emerald { display: none; }
body:has(#anchor-gold:target) #cert-gold    { display: block; }

/* Active dot highlight */
body:has(#anchor-classic:target) .theme-dot-classic { border-color: #fff; transform: scale(1.15); }
body:has(#anchor-dark:target)    .theme-dot-dark    { border-color: #fff; transform: scale(1.15); }
body:has(#anchor-royal:target)   .theme-dot-royal   { border-color: #fff; transform: scale(1.15); }
body:has(#anchor-emerald:target) .theme-dot-emerald { border-color: #fff; transform: scale(1.15); }
body:has(#anchor-gold:target)    .theme-dot-gold    { border-color: #fff; transform: scale(1.15); }
/* Default active (dark) */
.theme-dot-dark { border-color: #fff; transform: scale(1.15); }
body:has(#anchor-classic:target) .theme-dot-dark,
body:has(#anchor-royal:target)   .theme-dot-dark,
body:has(#anchor-emerald:target) .theme-dot-dark,
body:has(#anchor-gold:target)    .theme-dot-dark { border-color: transparent; transform: scale(1); }

/* ── RESPONSIVE SCALE ── */
@media (max-width: 960px) {
    .cert-scale-inner {
        transform: scale(0.85);
        transform-origin: top center;
        margin-bottom: -80px;
    }
}
@media (max-width: 800px) {
    .cert-scale-inner {
        transform: scale(0.65);
        transform-origin: top center;
        margin-bottom: -200px;
    }
}
@media (max-width: 600px) {
    .cert-scale-inner {
        transform: scale(0.42);
        transform-origin: top center;
        margin-bottom: -360px;
    }
}
@media (max-width: 420px) {
    .cert-scale-inner {
        transform: scale(0.34);
        transform-origin: top center;
        margin-bottom: -420px;
    }
}
