/* Abstracts page — extends main site theme */
body.abstracts-page {
    cursor: auto;
}

body.abstracts-page .cursor-dot,
body.abstracts-page .cursor-outline {
    display: none;
}

body.abstracts-page a {
    cursor: pointer;
}

.abs-page-header {
    padding: 8rem 5% 3rem;
    text-align: center;
    position: relative;
}

.abs-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(102, 252, 241, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.abs-page-header .section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 0.75rem;
}

.abs-lead {
    max-width: 720px;
    margin: 0 auto 2rem;
    color: rgba(237, 237, 237, 0.7);
    font-size: 1.05rem;
    line-height: 1.6;
}

.abs-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.abs-stat {
    text-align: center;
}

.abs-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

.abs-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(237, 237, 237, 0.5);
}

.abs-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 0 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.abs-search {
    flex: 1;
    min-width: 220px;
    max-width: 420px;
    position: relative;
}

.abs-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--surface);
    border: 1px solid rgba(69, 162, 158, 0.3);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.abs-search input:focus {
    border-color: var(--accent);
}

.abs-search i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-dark);
    pointer-events: none;
}

.abs-filter select {
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid rgba(69, 162, 158, 0.3);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
}

.abs-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 5rem;
}

.abs-section {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(69, 162, 158, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(31, 40, 51, 0.4);
    transition: border-color 0.2s;
}

.abs-section:hover {
    border-color: rgba(102, 252, 241, 0.35);
}

.abs-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
}

.abs-section-header:hover {
    background: rgba(102, 252, 241, 0.04);
}

.abs-section-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(102, 252, 241, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.abs-section-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.abs-section-count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(237, 237, 237, 0.5);
    flex-shrink: 0;
}

.abs-section-toggle {
    color: var(--accent);
    transition: transform 0.25s var(--ease);
    flex-shrink: 0;
}

.abs-section.open .abs-section-toggle {
    transform: rotate(180deg);
}

.abs-section-body {
    display: none;
    border-top: 1px solid rgba(69, 162, 158, 0.15);
}

.abs-section.open .abs-section-body {
    display: block;
}

.abs-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(69, 162, 158, 0.08);
    transition: background 0.15s;
}

.abs-item:last-child {
    border-bottom: none;
}

.abs-item:hover {
    background: rgba(102, 252, 241, 0.03);
}

.abs-item-highlight {
    background: rgba(102, 252, 241, 0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(102, 252, 241, 0.45);
}

.abs-item-info {
    min-width: 0;
}

.abs-item-authors {
    font-size: 0.85rem;
    color: var(--accent-dark);
    margin-bottom: 0.3rem;
}

.abs-item-title {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

.abs-item-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.abs-lang-badge {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    background: rgba(69, 162, 158, 0.15);
    color: var(--accent);
    letter-spacing: 0.05em;
}

.abs-cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    background: transparent;
    border: 1px solid var(--accent-dark);
    border-radius: 6px;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.abs-cert-btn:hover {
    background: rgba(102, 252, 241, 0.1);
    border-color: var(--accent);
    color: #fff;
}

.abs-cert-btn i {
    font-size: 0.9rem;
}

.abs-loading,
.abs-empty,
.abs-error {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(237, 237, 237, 0.5);
}

.abs-loading i {
    font-size: 2rem;
    color: var(--accent);
    animation: abs-spin 1s linear infinite;
    display: block;
    margin-bottom: 1rem;
}

@keyframes abs-spin {
    to { transform: rotate(360deg); }
}

.abs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-dark);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.abs-back-link:hover {
    color: var(--accent);
}

@media (max-width: 700px) {
    .abs-item {
        grid-template-columns: 1fr;
    }

    .abs-cert-btn {
        justify-content: center;
        width: 100%;
    }

    .abs-section-header {
        padding: 1rem;
    }

    .abs-item {
        padding: 1rem;
    }
}
