/* GACR Website Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --deep-space: #0b2b6f;
    --midnight: #061a40;
    --nebula: #1b4d8f;
    --starlight: #e5ebff;
    --cosmic-white: #f8faff;
    --text-primary: #1a1f36;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent: #4f8fea;
    --accent-glow: rgba(79, 143, 234, 0.15);
    --border-subtle: rgba(11, 43, 111, 0.1);
    --border-light: rgba(11, 43, 111, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--cosmic-white);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: white;
    color: var(--text-primary);
    padding: 0;
    border-bottom: 1px solid var(--border-subtle);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.logo-text h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 2px;
    color: var(--deep-space);
}

.logo-text .tagline {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--deep-space);
    transition: width 0.2s ease;
}

nav a:hover,
nav a.active {
    color: var(--deep-space);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Main Content */
main {
    padding: 60px 0;
    min-height: calc(100vh - 280px);
}

section {
    margin-bottom: 56px;
}

section:last-child {
    margin-bottom: 0;
}

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--deep-space);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-space);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--deep-space);
    margin-bottom: 8px;
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

a {
    color: var(--nebula);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--deep-space);
}

ul, ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary);
}

li {
    margin-bottom: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--cosmic-white) 0%, white 100%);
    padding: 48px;
    margin-bottom: 48px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--deep-space) 0%, var(--nebula) 100%);
    border-radius: 4px 0 0 4px;
}

.hero h2 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* News Items */
.news-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
}

.news-item:first-child {
    padding-top: 0;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item .date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.news-item p {
    margin-bottom: 0;
}

/* Quick Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.link-card {
    display: block;
    padding: 28px;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.link-card:hover {
    border-color: var(--nebula);
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateY(-2px);
}

.link-card h4 {
    margin-bottom: 8px;
    color: var(--deep-space);
}

.link-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ePrint Specific Styles */
.eprint-list {
    margin-top: 24px;
}

.eprint-entry {
    padding: 28px;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    margin-bottom: 20px;
}

.eprint-entry h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.eprint-entry h4 a {
    color: var(--deep-space);
    text-decoration: none;
}

.eprint-entry h4 a:hover {
    color: var(--nebula);
}

.eprint-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.eprint-abstract {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.eprint-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* Paper Detail Page */
.paper-detail {
    max-width: 720px;
}

.paper-detail h2 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

.paper-authors {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.paper-affiliation {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.paper-section {
    margin-bottom: 36px;
}

.paper-section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.paper-section pre {
    background: white;
    padding: 20px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    line-height: 1.6;
}

.download-links {
    margin-top: 16px;
}

.download-links a {
    display: inline-block;
    padding: 12px 24px;
    background: var(--deep-space);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    margin-right: 12px;
    margin-bottom: 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.download-links a:hover {
    background: var(--nebula);
    color: white;
    transform: translateY(-1px);
}

/* About Page */
.about-content {
    max-width: 720px;
}

.about-content h3 {
    margin-top: 40px;
}

.about-content h3:first-of-type {
    margin-top: 0;
}

.board-list {
    list-style: none;
    padding-left: 0;
    margin-top: 16px;
}

.board-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.board-list li:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    background: var(--midnight);
    color: var(--starlight);
    padding: 40px 0;
    margin-top: 80px;
}

footer p {
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.8;
    color: var(--starlight);
}

footer a {
    color: var(--starlight);
    opacity: 0.9;
}

footer a:hover {
    opacity: 1;
    color: white;
}

.contact {
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .logo {
        flex-direction: column;
        gap: 12px;
    }

    .logo-img {
        width: 80px;
        height: 80px;
    }

    .logo-text {
        text-align: center;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    nav ul {
        justify-content: center;
        gap: 24px;
    }

    main {
        padding: 40px 0;
    }

    .hero {
        padding: 32px 24px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .eprint-entry,
    .link-card {
        padding: 20px;
    }
}

/* Print styles */
@media print {
    header, footer, nav {
        display: none;
    }

    main {
        padding: 0;
    }

    .hero::before {
        display: none;
    }
}
