/**
 * Tenantivo Version history page (public)
 * Aligns with the Public.css design system used by Features / Pricing / About.
 */

/* --------------------------- Hero ---------------------------------------- */
.ver-hero {
    background:
        radial-gradient(1000px 400px at 12% -20%, rgba(59,130,246,0.38), transparent 60%),
        radial-gradient(800px 360px at 92% 0%, rgba(34,211,238,0.24), transparent 55%),
        linear-gradient(165deg, #0b1a2e 0%, #0f2140 45%, #1e3a5f 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}
.ver-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.09) 1px, transparent 0);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at top, black 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at top, black 35%, transparent 75%);
    pointer-events: none;
}
.ver-hero > .container { position: relative; z-index: 1; }

.ver-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.10);
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.1rem;
}

.ver-hero-title {
    font-size: clamp(2.1rem, 4.6vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #fff;
}

.public-main .ver-hero p,
.ver-hero-lead {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: rgba(255, 255, 255, 0.92) !important;
    max-width: 760px;
    margin: 0 auto 1.75rem;
    line-height: 1.65;
}

.ver-hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.ver-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
}
.ver-badge strong { color: #fff; }
.ver-badge-current {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(34, 211, 238, 0.55));
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.35);
}

/* --------------------------- Legend -------------------------------------- */
.ver-legend {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 5;
}
.ver-legend-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}
.ver-legend-title {
    font-weight: 700;
    color: #0f172a;
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

/* --------------------------- Chips --------------------------------------- */
.ver-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
    text-transform: uppercase;
}
.ver-chip i { font-size: 0.72rem; }
.ver-chip-new       { color: #065f46; background: #d1fae5; border-color: #a7f3d0; }
.ver-chip-improve   { color: #1e3a8a; background: #dbeafe; border-color: #bfdbfe; }
.ver-chip-fix       { color: #78350f; background: #fef3c7; border-color: #fde68a; }
.ver-chip-security  { color: #6b21a8; background: #ede9fe; border-color: #ddd6fe; }

/* --------------------------- Timeline ------------------------------------ */
.ver-timeline {
    padding: 3.5rem 0 4rem;
    background: #f8fafc;
}

.ver-year {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    padding: 2rem 0 1rem;
    margin: 0 0 1.25rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ver-year:first-of-type { padding-top: 0.5rem; }
.ver-year-sub {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0;
}

/* --------------------------- Version cards ------------------------------- */
.ver-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #3b82f6;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin: 0 0 1.25rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ver-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    border-left-color: #2563eb;
}

.ver-card-year { border-left-color: #94a3b8; }
.ver-card-year:hover { border-left-color: #64748b; }

.ver-card-current {
    border-left-color: #22d3ee;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdff 100%);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.18);
}
.ver-card-current:hover { border-left-color: #06b6d4; }

.ver-card-genesis {
    border-left-color: #10b981;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}
.ver-card-genesis:hover { border-left-color: #059669; }

.ver-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ver-version {
    font-family: 'JetBrains Mono', 'Consolas', 'Menlo', ui-monospace, monospace;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    letter-spacing: -0.01em;
}
.ver-card-current .ver-version {
    color: #0e7490;
    background: #ecfeff;
    border-color: #a5f3fc;
}
.ver-card-genesis .ver-version {
    color: #065f46;
    background: #d1fae5;
    border-color: #a7f3d0;
}
.ver-card-year .ver-version {
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.ver-date {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.ver-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
}
.ver-tag-current {
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.ver-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.25rem 0 1rem;
    letter-spacing: -0.01em;
}

/* --------------------------- Change list --------------------------------- */
.ver-changes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.ver-changes li {
    padding: 0.55rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    color: #1f2937;
    font-size: 0.97rem;
    line-height: 1.55;
}
.ver-changes li .ver-chip {
    margin-right: 0.7rem;
    vertical-align: middle;
}
.ver-changes li strong { color: #0f172a; }

/* --------------------------- CTA ----------------------------------------- */
.ver-cta {
    background:
        radial-gradient(900px 400px at 30% 0%, rgba(37, 99, 235, 0.35), transparent 60%),
        radial-gradient(700px 320px at 80% 100%, rgba(34, 211, 238, 0.22), transparent 60%),
        linear-gradient(165deg, #0b1a2e 0%, #0f2140 55%, #1e3a5f 100%);
    color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
}
.ver-cta-title {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}
.public-main .ver-cta p,
.ver-cta-lead {
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
}
.ver-cta-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}
.ver-cta-actions .btn { min-width: 170px; border-radius: 999px !important; }

/* --------------------------- Responsive ---------------------------------- */
@media (max-width: 640px) {
    .ver-legend { position: static; }
    .ver-card { padding: 1.15rem 1.15rem; }
    .ver-card-head { gap: 0.5rem; }
    .ver-version { font-size: 0.95rem; padding: 0.25rem 0.6rem; }
    .ver-card-title { font-size: 1.05rem; }
    .ver-changes li .ver-chip {
        display: inline-flex;
        margin: 0 0.45rem 0.3rem 0;
    }
}
