/* Securitix Forge - local_progress page styles */

.forge-progress-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px 48px;
    font-family: "Geist", system-ui, -apple-system, sans-serif;
}

/* HERO */
.fpg-hero {
    position: relative;
    padding: 32px 0 28px;
    border-bottom: 1px solid var(--forge-border, #e5e5ea);
    margin-bottom: 36px;
}

.fpg-hero-inner { max-width: 900px; }

.fpg-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--forge-fg-muted, #6b7280);
    margin-bottom: 14px;
}

.fpg-kicker .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16,185,129,0.5);
    animation: fpg-pulse 2.4s ease-in-out infinite;
}

@keyframes fpg-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    50% { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
}

.fpg-heading {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(36px, 4.5vw, 54px);
    font-weight: 500;
    letter-spacing: -0.024em;
    line-height: 1.05;
    margin: 0 0 14px 0;
    color: var(--forge-fg-0, #0a0a0c);
}

.fpg-heading em {
    font-style: italic;
    font-variation-settings: "SOFT" 100, "opsz" 144;
    background: linear-gradient(120deg, #6d28d9, #a07cc8 60%, #6d28d9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.fpg-sub {
    font-size: 16px;
    line-height: 1.55;
    color: var(--forge-fg-muted, #6b7280);
    max-width: 640px;
    margin: 0;
}

/* GRID */
.fpg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.fpg-card {
    background: var(--forge-bg-1, #ffffff);
    border: 1px solid var(--forge-border, #e5e5ea);
    border-radius: 16px;
    padding: 26px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.fpg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

html[data-forge-theme="dark"] .fpg-card {
    background: var(--forge-bg-1, #131316);
    border-color: var(--forge-border, #2a2a30);
}

html[data-forge-theme="dark"] .fpg-card:hover {
    box-shadow: 0 14px 36px rgba(0,0,0,0.4);
}

.fpg-card-kicker {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--forge-fg-muted, #6b7280);
    margin-bottom: 16px;
}

/* Top-stripe accents per card type */
.fpg-xp::before,
.fpg-certs::before,
.fpg-badges::before,
.fpg-courses::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.fpg-xp::before { background: linear-gradient(90deg, #6d28d9, #a07cc8); }
.fpg-certs::before { background: linear-gradient(90deg, #a07cc8, #06b6d4); }
.fpg-badges::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.fpg-courses::before { background: linear-gradient(90deg, #06b6d4, #6d28d9); }

/* XP card */
.fpg-xp-level {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.fpg-xp-badge {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6d28d9, #a07cc8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fraunces", Georgia, serif;
    font-size: 30px;
    font-weight: 600;
    font-style: italic;
    font-variation-settings: "SOFT" 80, "opsz" 144;
    box-shadow: 0 8px 24px rgba(109,40,217,0.32);
}

.fpg-xp-level-label {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--forge-fg-muted, #6b7280);
}

.fpg-xp-current {
    font-family: "Fraunces", Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--forge-fg-0, #0a0a0c);
    margin-bottom: 4px;
}

.fpg-xp-next {
    font-size: 13px;
    color: var(--forge-fg-muted, #6b7280);
    margin-bottom: 14px;
}

/* Progress bar */
.fpg-progress {
    width: 100%;
    height: 6px;
    background: var(--forge-border-soft, #f1f1f4);
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0;
}

.fpg-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6d28d9, #a07cc8);
    border-radius: 999px;
    transition: width 600ms ease;
}

html[data-forge-theme="dark"] .fpg-progress {
    background: var(--forge-border, #2a2a30);
}

/* Links */
.fpg-link {
    display: inline-block;
    font-size: 13px;
    color: var(--forge-brand, #6d28d9);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--forge-brand-soft, #a07cc8);
    padding-bottom: 1px;
    margin-top: 12px;
    transition: border-color 140ms ease;
}

.fpg-link:hover {
    border-bottom-color: var(--forge-brand, #6d28d9);
    color: var(--forge-brand, #6d28d9);
}

/* Cert list */
.fpg-cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fpg-cert-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--forge-border-soft, #f1f1f4);
}

.fpg-cert-item:last-child { border-bottom: 0; }

.fpg-cert-title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.012em;
    margin-bottom: 4px;
}

.fpg-cert-meta {
    font-size: 12.5px;
    color: var(--forge-fg-muted, #6b7280);
    margin-bottom: 10px;
}

.fpg-mono {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11.5px;
}

.fpg-sep {
    margin: 0 6px;
    opacity: 0.5;
}

.fpg-cert-actions {
    display: flex;
    gap: 8px;
}

.fpg-btn-sm {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.fpg-btn-solid {
    background: var(--forge-fg-0, #0a0a0c);
    color: var(--forge-bg-0, #ffffff);
}

.fpg-btn-solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    color: var(--forge-bg-0, #ffffff);
    text-decoration: none;
}

.fpg-btn-ghost {
    background: transparent;
    color: var(--forge-brand, #6d28d9);
    border: 1px solid var(--forge-border, #e5e5ea);
}

.fpg-btn-ghost:hover {
    border-color: var(--forge-brand, #6d28d9);
    color: var(--forge-brand, #6d28d9);
    text-decoration: none;
}

/* Badges */
.fpg-badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.fpg-badge-item {
    text-align: center;
    padding: 12px;
    background: var(--forge-bg-0, #fafafa);
    border-radius: 12px;
}

.fpg-badge-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
}

.fpg-badge-placeholder {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-radius: 50%;
    opacity: 0.2;
}

.fpg-badge-name {
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 2px;
}

.fpg-badge-date {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 10.5px;
    color: var(--forge-fg-muted, #6b7280);
}

/* Courses progress */
.fpg-course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fpg-course-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--forge-border-soft, #f1f1f4);
}

.fpg-course-item:last-child { border-bottom: 0; }

.fpg-course-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.fpg-course-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--forge-fg-0, #0a0a0c);
    text-decoration: none;
    flex: 1;
}

.fpg-course-title:hover {
    color: var(--forge-brand, #6d28d9);
    text-decoration: none;
}

.fpg-course-pct {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--forge-brand, #6d28d9);
}

/* Empty states */
.fpg-empty {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--forge-fg-muted, #6b7280);
    margin: 0;
    padding: 14px 0;
}

/* Responsive */
@media (max-width: 899px) {
    .fpg-grid { grid-template-columns: 1fr; }
    .fpg-heading { font-size: 32px; }
    .fpg-badge-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 559px) {
    .fpg-hero { padding: 24px 0 20px; }
    .fpg-card { padding: 20px 20px; }
    .fpg-heading { font-size: 28px; }
    .fpg-badge-grid { grid-template-columns: 1fr; }
    .fpg-xp-badge { width: 52px; height: 52px; font-size: 24px; }
    .fpg-xp-current { font-size: 26px; }
}
