/* =====================================================================
   SIMLITABMAS — Public Repository Catalog
   ===================================================================== */

.repo-page { background: #f7fafc; }

.repo-page .lp-header.is-scrolled {
    position: sticky;
    top: 0;
    background: rgba(7, 21, 35, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.repo-page .lp-menu a.active { color: #5eead4; }

.repo-hero {
    position: relative;
    overflow: hidden;
    padding: 104px 0 72px;
    background:
        radial-gradient(ellipse 60% 60% at 82% 20%, rgba(20, 184, 166, .22), transparent 60%),
        radial-gradient(ellipse 50% 50% at 10% 90%, rgba(37, 99, 235, .18), transparent 60%),
        linear-gradient(135deg, #071523 0%, #0b2032 52%, #0e2b3f 100%);
    color: #dbe7f1;
}

.repo-hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 88%);
    pointer-events: none;
}

.repo-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 56px;
    align-items: center;
}

.repo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid rgba(94, 234, 212, .24);
    border-radius: 999px;
    background: rgba(20, 184, 166, .1);
    color: #5eead4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.repo-hero h1 {
    max-width: 760px;
    margin: 20px 0 16px;
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.repo-hero-copy > p {
    max-width: 720px;
    margin: 0;
    color: #a9c3d4;
    font-size: 15.5px;
    line-height: 1.75;
}

.repo-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.repo-hero-panel {
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 24px;
    background: rgba(8, 21, 36, .46);
    box-shadow: 0 30px 80px -45px rgba(0, 0, 0, .85);
    backdrop-filter: blur(12px);
}

.repo-stat {
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 184, 166, .16), rgba(15, 118, 110, .06));
    border: 1px solid rgba(94, 234, 212, .18);
}

.repo-stat-label {
    display: block;
    color: #8fb3c8;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.repo-stat strong {
    display: block;
    margin: 6px 0 4px;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -.04em;
}

.repo-stat-meta { color: #a9c3d4; font-size: 12px; }

.repo-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.repo-stat-sm { padding: 15px 16px; }
.repo-stat-sm strong { font-size: 20px; margin: 5px 0 0; overflow-wrap: anywhere; }

.repo-content { padding: 64px 0 76px; }

.repo-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 22px;
}

.repo-section-head h2 { margin: 8px 0 4px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.repo-section-head p { margin: 0; color: var(--lp-ink-500); font-size: 13.5px; }
.repo-reset { font-size: 12.5px; font-weight: 700; color: var(--lp-teal-600); white-space: nowrap; }

.repo-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    border: 1px solid var(--lp-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px -34px rgba(15, 23, 42, .35);
    margin-bottom: 16px;
}

.repo-search label, .repo-filter label {
    display: block;
    margin-bottom: 6px;
    color: var(--lp-ink-500);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.repo-search-input { position: relative; }
.repo-search-input .icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #94a3b8;
}

.repo-search-input input,
.repo-filter select {
    width: 100%;
    height: 43px;
    border: 1px solid #dbe4ee;
    border-radius: 11px;
    background: #fbfdff;
    color: var(--lp-ink-900);
    font: inherit;
    font-size: 13.5px;
    outline: none;
}

.repo-search-input input { padding: 0 13px 0 40px; }
.repo-filter select { padding: 0 12px; }
.repo-search-input input:focus,
.repo-filter select:focus { border-color: var(--lp-teal-500); box-shadow: 0 0 0 3px rgba(20, 184, 166, .13); }

.repo-submit { height: 43px; padding: 0 20px; white-space: nowrap; }

.repo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 2px 20px;
    color: var(--lp-ink-500);
    font-size: 12.5px;
}

.repo-meta strong { color: var(--lp-ink-900); }
.repo-chip { padding: 4px 10px; border-radius: 999px; background: #ccfbf1; color: #0f766e; font-size: 11px; font-weight: 700; }

.repo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.repo-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 20px;
    border: 1px solid var(--lp-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px -36px rgba(15, 23, 42, .4);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    animation: repoCardIn .45s both;
    animation-delay: var(--delay, 0s);
}

.repo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 184, 166, .38);
    box-shadow: 0 26px 55px -34px rgba(15, 23, 42, .42);
}

@keyframes repoCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.repo-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.repo-cat {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 7px;
    background: #f0fdfa;
    color: #0f766e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.repo-date { color: #94a3b8; font-size: 11px; white-space: nowrap; }
.repo-card h3 { margin: 14px 0 8px; color: var(--lp-ink-900); font-size: 16px; line-height: 1.35; letter-spacing: -.02em; }
.repo-card p { margin: 0 0 18px; color: var(--lp-ink-500); font-size: 12.5px; line-height: 1.65; }
.repo-card .repo-muted { color: #94a3b8; font-style: italic; }

.repo-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eef3f8;
}

.repo-author { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 11.5px; min-width: 0; }
.repo-author .icon { width: 14px; height: 14px; }
.repo-open { display: inline-flex; align-items: center; gap: 5px; color: var(--lp-teal-600); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.repo-open .icon { width: 14px; height: 14px; transition: transform .18s ease; }
.repo-open:hover .icon { transform: translateX(3px); }
.repo-no-file { color: #94a3b8; font-size: 10.5px; }

.repo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 64px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}
.repo-empty .icon { width: 42px; height: 42px; color: #94a3b8; }
.repo-empty h3 { margin: 4px 0 0; font-size: 18px; }
.repo-empty p { margin: 0 0 10px; color: var(--lp-ink-500); font-size: 13px; }

.repo-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; }
.repo-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--lp-line);
    border-radius: 9px;
    background: #fff;
    color: var(--lp-ink-700);
    font-size: 12.5px;
    font-weight: 700;
}
.repo-page-btn:hover { border-color: #99f6e4; color: #0f766e; }
.repo-page-btn.active { background: var(--lp-teal-600); border-color: var(--lp-teal-600); color: #fff; }
.repo-page-btn.disabled { pointer-events: none; opacity: .4; }
.repo-page-btn .icon { width: 15px; height: 15px; }

.repo-cta { padding: 0 0 76px; }
.repo-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 34px 38px;
    border-radius: 22px;
    background: linear-gradient(135deg, #071523, #0e2b3f);
    color: #dbe7f1;
    box-shadow: var(--lp-shadow);
}
.repo-cta-inner h2 { margin: 8px 0 8px; color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
.repo-cta-inner p { margin: 0; max-width: 620px; color: #a9c3d4; font-size: 13.5px; }

@media (max-width: 980px) {
    .repo-hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .repo-hero-panel { max-width: 520px; }
    .repo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .repo-toolbar { grid-template-columns: 1fr 1fr; }
    .repo-submit { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .repo-hero { padding: 76px 0 54px; }
    .repo-content { padding: 44px 0 56px; }
    .repo-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .repo-toolbar { grid-template-columns: 1fr; }
    .repo-grid { grid-template-columns: 1fr; }
    .repo-meta { flex-direction: column; align-items: flex-start; }
    .repo-cta-inner { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
    .repo-stat-row { grid-template-columns: 1fr; }
}
