/* ===================================================================
   JBSAPS – Archives Page
   Premium academic journal design – Nature / Springer / Elsevier style
   =================================================================== */

/* ============================================================
   HERO
   ============================================================ */
.arc-hero {
    position: relative;
    background: linear-gradient(135deg, #0a1628 0%, #0c2a40 45%, #0e7490 100%);
    color: #fff;
    padding: 6rem 0 5rem;
    overflow: hidden;
}

.arc-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.arc-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.arc-orb-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    top: -180px;
    right: -100px;
}

.arc-orb-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #0891b2 0%, transparent 70%);
    bottom: -120px;
    left: -80px;
}

.arc-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

.arc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.arc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
    margin-bottom: 1.5rem;
}

.arc-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 8px #06b6d4;
    animation: arc-pulse 2s infinite;
}

@keyframes arc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

.arc-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1.25rem;
}

.arc-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 2.5rem;
}

/* Hero stats row */
.arc-hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    width: fit-content;
    gap: 0;
}

.arc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.75rem;
}

.arc-stat:first-child { padding-left: 0; }
.arc-stat:last-child  { padding-right: 0; }

.arc-stat-num {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 900;
    color: #67e8f9;
    line-height: 1;
}

.arc-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.55);
    margin-top: 0.3rem;
}

.arc-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
}

/* Hero wave */
.arc-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.arc-hero-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* ============================================================
   MAIN SECTION
   ============================================================ */
.arc-section {
    padding: 5rem 0 4rem;
    background: #f8fafc;
}

/* Intro bar */
.arc-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.arc-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.arc-section-sub {
    color: var(--text-muted);
    font-size: 0.975rem;
    max-width: 500px;
    line-height: 1.7;
    margin: 0;
}

.arc-legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.arc-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.arc-legend-dot.current { background: #0891b2; }
.arc-legend-dot.past    { background: #cbd5e1; }

/* ============================================================
   TIMELINE LAYOUT
   ============================================================ */
.arc-timeline-wrap {
    position: relative;
    padding-left: 80px;
}

.arc-rail {
    position: absolute;
    left: 20px;
    top: 28px;
    bottom: 28px;
    width: 2px;
}

.arc-rail-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #0891b2 0%, #e2e8f0 100%);
    border-radius: 2px;
}

/* Timeline node (year circle) */
.arc-rail-node {
    position: absolute;
    left: -68px;
    top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.arc-rail-node::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 3px solid #f8fafc;
    box-shadow: 0 0 0 2px #cbd5e1;
    flex-shrink: 0;
}

.arc-rail-node.active::before {
    background: #0891b2;
    box-shadow: 0 0 0 2px #0891b2, 0 0 12px rgba(8,145,178,0.35);
}

.arc-node-year {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}

.arc-rail-node.active .arc-node-year {
    color: #0891b2;
}

/* ============================================================
   VOLUME BLOCKS
   ============================================================ */
.arc-volume-block {
    position: relative;
    margin-bottom: 1.25rem;
}

/* ============================================================
   ACCORDION
   ============================================================ */
.arc-accordion {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(10,22,40,0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.arc-accordion:hover {
    box-shadow: 0 6px 24px rgba(10,22,40,0.09);
    border-color: rgba(8,145,178,0.2);
}

.arc-accordion.active {
    border-color: rgba(8,145,178,0.3);
    box-shadow: 0 8px 32px rgba(8,145,178,0.1);
}

/* Teal left accent on active */
.arc-accordion.active {
    border-left: 3px solid #0891b2;
}

.arc-acc-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.35rem 1.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    transition: background 0.2s ease;
    border-radius: 0;
    min-height: auto;
    min-width: auto;
}

.arc-acc-header:hover {
    background: rgba(8,145,178,0.04);
}

.arc-accordion.active .arc-acc-header {
    background: linear-gradient(135deg, rgba(8,145,178,0.06) 0%, rgba(6,182,212,0.04) 100%);
}

/* Volume identity */
.arc-vol-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.arc-vol-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(8,145,178,0.1) 0%, rgba(6,182,212,0.1) 100%);
    border: 1px solid rgba(8,145,178,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0891b2;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.arc-accordion.active .arc-vol-icon,
.arc-acc-header:hover .arc-vol-icon {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: #fff;
    border-color: #0891b2;
    box-shadow: 0 4px 12px rgba(8,145,178,0.3);
}

.arc-vol-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.arc-accordion.active .arc-vol-title {
    color: #0891b2;
}

.arc-vol-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-weight: 500;
}

/* Right side of header */
.arc-vol-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Badges */
.arc-badge-current {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(8,145,178,0.3);
}

.arc-badge-inaugural {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}

/* Chevron */
.arc-acc-chevron {
    display: flex;
    align-items: center;
    color: #94a3b8;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), color 0.2s;
}

.arc-accordion.active .arc-acc-chevron {
    transform: rotate(180deg);
    color: #0891b2;
}

/* Accordion body */
.arc-acc-body {
    overflow: hidden;
}

.arc-acc-body[hidden] {
    display: none;
}

/* ============================================================
   ISSUE CARDS GRID
   ============================================================ */
.arc-issues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1.75rem 1.75rem;
}

.arc-issues-single {
    grid-template-columns: 1fr;
    max-width: 380px;
}

.arc-issue-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(8,145,178,0.12);
    background: linear-gradient(135deg, rgba(8,145,178,0.04) 0%, rgba(248,250,252,0.8) 100%);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.arc-issue-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8,145,178,0.08) 0%, rgba(6,182,212,0.06) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.arc-issue-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(8,145,178,0.15);
    border-color: rgba(8,145,178,0.3);
}

.arc-issue-card:hover::before {
    opacity: 1;
}

.arc-issue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.arc-issue-badge {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0891b2;
}

.arc-issue-status {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    background: rgba(100,116,139,0.1);
    color: #64748b;
}

.arc-issue-status.open {
    background: rgba(5,150,105,0.1);
    color: #059669;
}

.arc-issue-date {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    font-family: var(--font-heading);
    position: relative;
    z-index: 1;
}

.arc-issue-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.arc-issue-footer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0891b2;
    margin-top: 0.5rem;
    transition: gap 0.2s ease;
    position: relative;
    z-index: 1;
}

.arc-issue-card:hover .arc-issue-footer {
    gap: 0.65rem;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.arc-cta {
    background: linear-gradient(135deg, #0a1628 0%, #0c2a40 60%, #0e7490 100%);
    padding: 3.5rem 0;
}

.arc-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.arc-cta-text h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.arc-cta-text p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    margin: 0;
}

.arc-cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .arc-hero         { padding: 5rem 0 4.5rem; }
    .arc-timeline-wrap{ padding-left: 64px; }
    .arc-rail         { left: 14px; }
    .arc-rail-node    { left: -58px; }
}

@media (max-width: 768px) {
    .arc-hero {
        padding: 4rem 0 4rem;
    }

    .arc-hero-title {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    .arc-hero-stats {
        padding: 1rem 1.25rem;
        border-radius: 12px;
        width: 100%;
    }

    .arc-stat          { padding: 0 1rem; }
    .arc-stat-num      { font-size: 1.5rem; }

    /* Collapse timeline on mobile — no rail, full width */
    .arc-timeline-wrap {
        padding-left: 0;
    }

    .arc-rail,
    .arc-rail-node {
        display: none;
    }

    .arc-intro {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2rem;
    }

    .arc-issues-grid {
        grid-template-columns: 1fr;
        padding: 0 1.25rem 1.25rem;
    }

    .arc-acc-header {
        padding: 1.1rem 1.25rem;
    }

    .arc-vol-title    { font-size: 1.05rem; }

    .arc-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .arc-cta-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .arc-hero {
        padding: 3rem 0 3.5rem;
    }

    .arc-hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .arc-stat-divider { display: none; }
    .arc-stat         { padding: 0 0.75rem; }

    .arc-vol-icon     { width: 38px; height: 38px; border-radius: 10px; }
    .arc-vol-title    { font-size: 1rem; }
    .arc-vol-meta     { font-size: 0.75rem; }

    .arc-badge-current,
    .arc-badge-inaugural { display: none; }
}
