/* Global Style */
@font-face {
  font-family: "OpenAI";
  font-style: normal;
  font-weight: 400;
  src: url("assets/openai-400.otf");
}

@font-face {
  font-family: "OpenAI";
  font-style: normal;
  font-weight: 600;
  src: url("assets/openai-500.otf");
}

/* Rest of the file remains unchanged */
body,
html {
    font-family: 'OpenAI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100vh;
    color: #333;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --border-color: #000;
    --background-grey: #f9f9f9;
    --brand-color: #452d6c;
}

/* Header styles */
header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    height: 36px;
    vertical-align: middle;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.menu-items {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-icons {
    font-size: 24px;
}

nav a:hover {
    color: #3498db;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    height: calc(100vh - 130px);
}

/* Paper list section */
#paper-list {
    background: #fff;
    padding: 1.5rem 1rem 0 0;
    border-radius: 8px;
    overflow-y: auto;
    height: 100%;
}

.papers-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

/* Reading area */
#reading-area {
    background: #fff;
    padding: 1.5rem 0 1.5rem 1.5rem;
    border-radius: 8px;
    overflow-y: auto;
    height: 100%;
}

.paper-viewer {
    min-height: min-content;
    background: #fff;
    border-radius: 4px;
    position: relative;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        grid-template-columns: 100%;
        grid-template-rows: auto 1fr;
        height: calc(100vh - 80px);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        display: flex;
        gap: 0;
    }

    #paper-list, #reading-area {
        min-width: 100%;
        height: 100%;
        scroll-snap-align: start;
        padding: 1rem;
    }

    #reading-area {
        padding: 1rem 0 1rem 1rem;
    }

    .paper-viewer {
        height: 100%;
        overflow-y: auto;
        padding-right: 1rem;
    }

    /* Update header navigation for mobile */
    nav {
        padding: 0.5rem 1rem;
        gap: 0;
        justify-content: space-between;
    }

    .menu-items {
        font-size: 0.9rem;
        gap: 1rem;
    }

    .logo {
        height: 36px;
        position: relative;
        left: auto;
        transform: none;
    }
} 

/* Paper card styles */
.paper-card {
    padding: 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.paper-card:hover {
    border-color: #ccc;
    background-color: #fafafa;
}

.paper-card.selected {
    border-color: #666;
    background-color: #f5f5f5;
}

.paper-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
}

.paper-topics {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.topic {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    color: #666;
}

.paper-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #666;
}

.paper-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.paper-authors {
    font-size: 0.875rem;
    color: #444;
    margin-bottom: 0.75rem;
}

.paper-abstract {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
} 

/* Paper viewer content styles */
.paper-content {
    max-width: 800px;
    margin: 0 auto;
}

.paper-header-content {
    margin-bottom: 2rem;
}

.paper-header-content h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.paper-header-content .paper-authors {
    font-size: 1rem;
    color: #444;
    margin-bottom: 0.5rem;
}

.paper-header-content .paper-metadata {
    font-size: 0.875rem;
    color: #666;
}

/* Consolidate paper-body styles */
.paper-body {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0;
}

.paper-body h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.paper-body p {
    margin-bottom: 1rem;
}

.paper-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.paper-body li {
    margin-bottom: 0.5rem;
} 

/* Filter Section Styles */
.filter-section {
    padding: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
} 