/* FBC Bicentenary — Call for Papers Portal */
:root {
    --bcp-maroon: #6b1d2a;
    --bcp-maroon-dark: #4a0e1c;
    --bcp-gold: #c9a227;
    --bcp-cream: #faf7f2;
    --bcp-surface: #f5f0eb;
    --bcp-muted: #64748b;
    --bcp-border: #e2d8cf;
    --bcp-radius: 12px;
    --bcp-shadow: 0 4px 24px rgba(74, 14, 28, 0.08);
    --bcp-fs-eyebrow: 0.85rem;
    --bcp-fs-hero-title: clamp(1.75rem, 4vw, 2.5rem);
    --bcp-fs-hero-lead: 1.05rem;
    --bcp-fs-section-title: 1.75rem;
    --bcp-fs-body: 0.95rem;
    --bcp-fs-btn: 0.9rem;
}

.bcp-portal {
    background: var(--bcp-cream);
    min-height: 60vh;
}

.bcp-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Hero */
.bcp-hero {
    background: var(--bicent-portal-gradient, linear-gradient(135deg, var(--bcp-maroon-dark) 0%, var(--bcp-maroon) 55%, #7a2535 100%));
    color: #fff;
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.bcp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(201, 162, 39, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.bcp-hero__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
}

.bcp-hero__eyebrow {
    font-size: var(--bcp-fs-eyebrow);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bcp-gold);
    margin-bottom: 0.5rem;
}

.bcp-hero__title {
    font-size: var(--bcp-fs-hero-title);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.bcp-hero__lead {
    font-size: var(--bcp-fs-hero-lead);
    opacity: 0.92;
    max-width: 540px;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.bcp-hero__main {
    position: relative;
    z-index: 2;
}

.bcp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    z-index: 3;
}

.bcp-hero__actions .bcp-btn {
    position: relative;
    z-index: 10;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

.bcp-hero__actions .bcp-btn i {
    pointer-events: none;
}

.bcp-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.bcp-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: var(--bcp-radius);
    padding: 1rem 1.25rem;
    text-align: center;
    backdrop-filter: blur(4px);
}

.bcp-stat__val {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bcp-gold);
}

.bcp-stat__lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

/* Subnav */
.bcp-subnav {
    background: var(--bcp-subnav-bg, #fff);
    border-bottom: 1px solid var(--bcp-border);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bcp-subnav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1.25rem;
}

.bcp-subnav__tabs {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    min-width: 0;
    flex: 1 1 auto;
}

.bcp-subnav__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.bcp-subnav__user-name {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--bcp-muted);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bcp-subnav__logout {
    white-space: nowrap;
}

.bcp-subnav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    color: var(--bcp-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.bcp-subnav__link:hover {
    color: var(--bcp-maroon);
    background: var(--bcp-surface);
}

.bcp-subnav__link.is-active {
    color: var(--bcp-maroon);
    background: rgba(107, 29, 42, 0.08);
    font-weight: 600;
}

/* Body */
.bcp-body {
    padding: 2rem 1.25rem 4rem;
}

.bcp-alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--bcp-radius);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--bcp-fs-body);
}

.bcp-alert--success {
    background: var(--bcp-success-bg, #ecfdf5);
    color: var(--bcp-success-text, #065f46);
    border: 1px solid var(--bcp-success-border, #a7f3d0);
}

.bcp-alert--error {
    background: var(--bcp-error-bg, #fef2f2);
    color: var(--bcp-error-text, #991b1b);
    border: 1px solid var(--bcp-error-border, #fecaca);
}

/* Panels */
.bcp-panel {
    background: #fff;
    border-radius: var(--bcp-radius);
    padding: 1.75rem;
    box-shadow: var(--bcp-shadow);
    border: 1px solid var(--bcp-border);
    margin-bottom: 1.5rem;
}

.bcp-panel--cta {
    text-align: center;
    max-width: 560px;
    margin: 2rem auto;
}

.bcp-panel__icon {
    font-size: 2.5rem;
    color: var(--bcp-maroon);
    margin-bottom: 0.75rem;
}

.bcp-panel__title {
    font-size: var(--bcp-fs-section-title);
    font-weight: 700;
    color: var(--bcp-maroon-dark);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bcp-panel__head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.bcp-panel__head-row .bcp-panel__title {
    margin: 0;
}

.bcp-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.bcp-grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Lists & steps */
.bcp-list {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    line-height: 1.7;
    color: var(--bcp-muted);
}

.bcp-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bcp-steps li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--bcp-border);
    color: var(--bcp-muted);
}

.bcp-steps li:last-child {
    border-bottom: none;
}

.bcp-steps span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bcp-maroon);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Tracks */
.bcp-tracks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.bcp-track-card {
    background: var(--bcp-surface);
    border: 1px solid var(--bcp-border);
    border-radius: var(--bcp-radius);
    padding: 1.25rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.bcp-track-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bcp-shadow);
}

.bcp-track-card h3 {
    font-size: 1rem;
    color: var(--bcp-maroon);
    margin: 0 0 0.5rem;
}

.bcp-track-card p {
    font-size: 0.9rem;
    color: var(--bcp-muted);
    line-height: 1.55;
    margin: 0 0 0.75rem;
}

.bcp-track-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--bcp-muted);
}

.bcp-track-card__meta i {
    color: var(--bcp-gold);
    width: 1rem;
}

/* Paper list / dashboard */
.bcp-paper-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bcp-paper-card {
    border: 1px solid var(--bcp-border);
    border-radius: var(--bcp-radius);
    padding: 1.25rem;
    background: var(--bcp-surface);
    border-left: 4px solid var(--bcp-muted);
}

.bcp-paper-card--draft { border-left-color: var(--bcp-status-draft-accent, #94a3b8); }
.bcp-paper-card--under_review { border-left-color: var(--bcp-status-under-review-accent, #3b82f6); }
.bcp-paper-card--revision_requested { border-left-color: var(--bcp-status-revision-requested-accent, #f59e0b); }
.bcp-paper-card--accepted { border-left-color: var(--bcp-status-accepted-accent, #10b981); }
.bcp-paper-card--rejected { border-left-color: var(--bcp-status-rejected-accent, #ef4444); }
.bcp-paper-card--withdrawn { border-left-color: var(--bcp-status-withdrawn-accent, #64748b); opacity: 0.85; }

.bcp-paper-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.bcp-paper-card__ref {
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    color: var(--bcp-muted);
}

.bcp-paper-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
    color: var(--bcp-maroon-dark);
}

.bcp-paper-card__meta {
    font-size: 0.85rem;
    color: var(--bcp-muted);
    margin: 0 0 0.75rem;
}

.bcp-paper-card__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.bcp-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bcp-badge--draft { background: var(--bcp-status-draft-bg, #f1f5f9); color: var(--bcp-status-draft-text, #475569); }
.bcp-badge--under_review { background: var(--bcp-status-under-review-bg, #dbeafe); color: var(--bcp-status-under-review-text, #1d4ed8); }
.bcp-badge--revision_requested { background: var(--bcp-status-revision-requested-bg, #fef3c7); color: var(--bcp-status-revision-requested-text, #b45309); }
.bcp-badge--accepted { background: var(--bcp-status-accepted-bg, #d1fae5); color: var(--bcp-status-accepted-text, #047857); }
.bcp-badge--rejected { background: var(--bcp-status-rejected-bg, #fee2e2); color: var(--bcp-status-rejected-text, #b91c1c); }
.bcp-badge--withdrawn { background: var(--bcp-status-withdrawn-bg, #e2e8f0); color: var(--bcp-status-withdrawn-text, #64748b); }

.bcp-revision-box {
    background: var(--bcp-warning-bg, #fffbeb);
    border: 1px solid var(--bcp-warning-border, #fcd34d);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: var(--bcp-warning-text, #92400e);
}

.bcp-revision-box--reject {
    background: var(--bcp-error-bg, #fef2f2);
    border-color: var(--bcp-error-border, #fca5a5);
    color: var(--bcp-error-text, #991b1b);
}

.bcp-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--bcp-muted);
}

.bcp-empty i {
    font-size: 2.5rem;
    color: var(--bcp-border);
    margin-bottom: 0.75rem;
}

/* Buttons */
.bcp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: var(--bcp-fs-btn);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.3;
}

.bcp-btn--primary {
    background: var(--bcp-gold);
    color: var(--bcp-btn-primary-text, var(--bcp-maroon-dark));
    border-color: var(--bcp-gold);
}

.bcp-btn--primary:hover {
    background: var(--bcp-gold-hover, #d4ad2e);
    border-color: var(--bcp-gold-hover, #d4ad2e);
}

.bcp-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.bcp-panel .bcp-btn--outline,
.bcp-wizard .bcp-btn--outline {
    color: var(--bcp-maroon);
    border-color: var(--bcp-maroon);
    background: transparent;
}

.bcp-panel .bcp-btn--outline:hover,
.bcp-wizard .bcp-btn--outline:hover {
    background: rgba(107, 29, 42, 0.06);
}

.bcp-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: transparent;
}

.bcp-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bcp-btn--danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.bcp-btn--danger:hover {
    background: #fee2e2;
}

.bcp-btn--sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
}

.bcp-inline-form {
    display: inline;
}

/* Wizard */
.bcp-wizard {
    background: #fff;
    border-radius: var(--bcp-radius);
    padding: 1.75rem;
    box-shadow: var(--bcp-shadow);
    border: 1px solid var(--bcp-border);
}

.bcp-wizard__steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.bcp-wizard__step {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bcp-surface);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--bcp-muted);
    border: 2px solid transparent;
}

.bcp-wizard__step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bcp-border);
    color: var(--bcp-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.bcp-wizard__step.is-active {
    border-color: var(--bcp-maroon);
    color: var(--bcp-maroon);
    background: rgba(107, 29, 42, 0.05);
}

.bcp-wizard__step.is-active span {
    background: var(--bcp-maroon);
    color: #fff;
}

.bcp-wizard__panel {
    display: none;
}

.bcp-wizard__panel.is-active {
    display: block;
}

.bcp-wizard__nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--bcp-border);
}

/* Form fields */
.bcp-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.bcp-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bcp-field--full {
    grid-column: 1 / -1;
}

.bcp-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bcp-maroon-dark);
}

.bcp-input {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--bcp-border);
    border-radius: 8px;
    font-size: var(--bcp-fs-body);
    font-family: inherit;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bcp-input:focus {
    outline: none;
    border-color: var(--bcp-maroon);
    box-shadow: 0 0 0 3px rgba(107, 29, 42, 0.12);
}

.bcp-input--area {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

.bcp-wordcount {
    font-weight: 400;
    color: var(--bcp-muted);
    font-size: 0.8rem;
}

.bcp-radio-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.bcp-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    cursor: pointer;
}

.bcp-hint {
    font-size: 0.85rem;
    color: var(--bcp-muted);
    margin: 0 0 0.75rem;
}

/* Authors */
.bcp-authors {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bcp-author-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto auto;
    gap: 0.75rem;
    align-items: end;
    padding: 1rem;
    background: var(--bcp-surface);
    border-radius: 8px;
    border: 1px solid var(--bcp-border);
}

.bcp-radio-inline {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    white-space: nowrap;
    padding-bottom: 0.65rem;
    cursor: pointer;
}

.bcp-author-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 6px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    margin-bottom: 0.65rem;
}

.bcp-author-remove:hover {
    background: #fecaca;
}

/* Dropzone */
.bcp-dropzone {
    border: 2px dashed var(--bcp-border);
    border-radius: var(--bcp-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}

.bcp-dropzone:hover,
.bcp-dropzone.is-dragover {
    border-color: var(--bcp-maroon);
    background: rgba(107, 29, 42, 0.03);
}

.bcp-dropzone i {
    font-size: 2rem;
    color: var(--bcp-maroon);
    margin-bottom: 0.5rem;
}

.bcp-dropzone p {
    margin: 0;
    color: var(--bcp-muted);
    font-size: 0.9rem;
}

.bcp-dropzone__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.bcp-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bcp-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.bcp-check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .bcp-hero__grid {
        grid-template-columns: 1fr;
    }

    .bcp-hero__stats {
        max-width: 360px;
    }

    .bcp-author-row {
        grid-template-columns: 1fr;
    }

    .bcp-author-remove {
        margin-bottom: 0;
        justify-self: start;
    }

    .bcp-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .bcp-hero {
        padding: 2rem 0 1.75rem;
    }

    .bcp-hero__actions {
        flex-direction: column;
    }

    .bcp-hero__actions .bcp-btn {
        width: 100%;
        justify-content: center;
    }

    .bcp-wizard__steps {
        flex-direction: column;
    }

    .bcp-subnav__inner {
        flex-wrap: wrap;
    }

    .bcp-subnav__user {
        width: 100%;
        justify-content: space-between;
        padding-top: 0.35rem;
        border-top: 1px solid var(--bcp-border);
    }

    .bcp-subnav__user-name {
        max-width: none;
        flex: 1;
        min-width: 0;
    }
}
