/* ==========================================================
   Research Papers Page — Singularity Ventures
   Cosmic dark, violet/cyan accents, glass cards.
   ========================================================== */

body.research-page {
    background: #05060a;
    min-height: 100vh;
    color: #e7eaf4;
}

.rp-main {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 160px;
}

/* Header ---------------------------------------------------- */
.rp-header {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
}
.rp-header .container { position: relative; z-index: 2; }

.rp-header__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    opacity: 0.55;
    z-index: 1;
}
.rp-header__glow--1 {
    width: 620px; height: 620px;
    top: -200px; left: 20%;
    background: radial-gradient(circle, rgba(0,212,255,0.35), transparent 70%);
}
.rp-header__glow--2 {
    width: 520px; height: 520px;
    bottom: -260px; right: 15%;
    background: radial-gradient(circle, rgba(124,58,237,0.40), transparent 70%);
}

.rp-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgba(180, 215, 255, 0.75);
    margin: 0 0 18px;
}

.rp-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin: 0 0 24px;
    background: linear-gradient(135deg, #ffffff 0%, #cfe8ff 45%, #a4c8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rp-intro {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.12rem;
    line-height: 1.75;
    color: rgba(210, 220, 240, 0.82);
}
.rp-accent {
    color: #6cd7ff;
    font-weight: 600;
}

/* Paper list ------------------------------------------------ */
.rp-section { padding: 40px 0 0; }

.rp-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
}

.rp-paper {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 28px;
    padding: 36px 40px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(18,22,38,0.72) 0%, rgba(10,14,28,0.86) 100%);
    border: 1px solid rgba(140, 180, 255, 0.09);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                border-color 0.4s ease,
                box-shadow 0.5s ease;
    overflow: hidden;
}

.rp-paper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(0,212,255,0.08), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(124,58,237,0.10), transparent 45%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.rp-paper:hover {
    transform: translateY(-4px);
    border-color: rgba(140, 200, 255, 0.22);
    box-shadow:
        0 20px 60px -20px rgba(0, 150, 255, 0.25),
        0 0 0 1px rgba(124, 58, 237, 0.14) inset;
}
.rp-paper:hover::before { opacity: 1; }

.rp-paper__rim {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,212,255,0.25), rgba(124,58,237,0.18), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.55;
    pointer-events: none;
}

.rp-paper__num {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: rgba(140, 180, 255, 0.38);
    letter-spacing: -0.02em;
    line-height: 1;
    padding-top: 4px;
}

.rp-paper__body { min-width: 0; }

.rp-paper__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.rp-tag {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.rp-tag--ai         { background: rgba(0,212,255,0.10);  color: #6cd7ff; border-color: rgba(0,212,255,0.25); }
.rp-tag--robotics   { background: rgba(124,58,237,0.12); color: #b49aff; border-color: rgba(124,58,237,0.30); }
.rp-tag--blockchain { background: rgba(255,0,110,0.10);  color: #ff7bb8; border-color: rgba(255,0,110,0.28); }
.rp-tag--convergence{ background: rgba(255,255,255,0.06); color: #e7eaf4; border-color: rgba(255,255,255,0.16); }

.rp-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: rgba(180, 195, 225, 0.55);
    letter-spacing: 0.04em;
}

.rp-paper__title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 12px;
    color: #f3f5fb;
}

.rp-paper__abstract {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(195, 205, 225, 0.78);
    margin: 0 0 22px;
    max-width: 720px;
}

/* Buttons --------------------------------------------------- */
.rp-paper__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}
.rp-btn svg { width: 16px; height: 16px; }

.rp-btn--primary {
    background: linear-gradient(135deg, rgba(0,212,255,0.20), rgba(124,58,237,0.22));
    color: #ffffff;
    border-color: rgba(140, 200, 255, 0.28);
    box-shadow: 0 0 0 1px rgba(0,212,255,0.12) inset, 0 8px 24px -10px rgba(0,150,255,0.35);
}
.rp-btn--primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(0,212,255,0.30), rgba(124,58,237,0.32));
    border-color: rgba(140, 200, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(0,212,255,0.22) inset, 0 14px 36px -12px rgba(0,150,255,0.55);
}

.rp-btn--ghost {
    background: transparent;
    color: rgba(200, 215, 240, 0.85);
    border-color: rgba(140, 180, 255, 0.20);
}
.rp-btn--ghost:hover {
    color: #ffffff;
    border-color: rgba(140, 200, 255, 0.45);
    background: rgba(140, 180, 255, 0.06);
}

/* Upload hint footer ---------------------------------------- */
.rp-upload-hint {
    text-align: center;
    margin: 70px auto 0;
    max-width: 600px;
    padding: 22px 26px;
    border-radius: 14px;
    background: rgba(18, 22, 38, 0.4);
    border: 1px dashed rgba(140, 180, 255, 0.20);
    color: rgba(190, 205, 230, 0.65);
    font-size: 0.9rem;
}
.rp-upload-hint code {
    background: rgba(0,212,255,0.10);
    padding: 2px 8px;
    border-radius: 6px;
    color: #6cd7ff;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-size: 0.85rem;
}

/* Active nav state ------------------------------------------ */
.nav-links a.active {
    color: #6cd7ff;
}

/* Responsive ------------------------------------------------ */
@media (max-width: 768px) {
    .rp-main { padding-top: 90px; }
    .rp-header { padding: 50px 0 30px; }
    .rp-paper {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 28px 22px;
    }
    .rp-paper__num {
        font-size: 1.6rem;
        padding: 0;
    }
    .rp-paper__title { font-size: 1.3rem; }
    .rp-btn { padding: 10px 16px; font-size: 0.85rem; }
}
