/* Past Paper View Styles */
.past-paper-main {
    min-height: 100vh;
    background: rgb(var(--bg));
    color: rgb(var(--fg));
}

/* Hero Section */
.paper-hero {
    background: linear-gradient(135deg, rgb(var(--card)) 0%, rgb(var(--muted) / 0.1) 100%);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgb(var(--border));
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: rgb(var(--muted-fg));
}

.breadcrumb a {
    color: rgb(var(--accent));
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: rgb(var(--accent-fg));
}

.separator {
    color: rgb(var(--muted-fg));
}

.current {
    color: rgb(var(--fg));
    font-weight: 500;
}

.paper-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: rgb(var(--fg));
    line-height: 1.2;
}

.paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: rgb(var(--muted-fg));
}


.meta-item strong {
    color: rgb(var(--fg));
}

/* Content Layout */
.paper-content {
    padding: 3rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    min-width: 0;
}

/* Paper Sections */
.paper-section {
    margin-bottom: 4rem;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgb(var(--accent));
}

.section-title {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgb(var(--fg));
}

.section-desc {
    color: rgb(var(--muted-fg));
    font-size: 1rem;
}

/* Papers Grid */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.paper-item {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

iframe {
    height: 900px;
}


/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    padding: 1.5rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgb(var(--fg));
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgb(var(--border));
}

/* Paper Stats */
.paper-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.stat-label {
    color: rgb(var(--muted-fg));
    font-size: 0.875rem;
}

.stat-value {
    color: rgb(var(--accent));
    font-weight: 600;
    font-size: 1rem;
}

/* Related Subjects */
.related-subjects {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subject-link {
    color: rgb(var(--muted-fg));
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgb(var(--border) / 0.5);
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.subject-link:hover {
    color: rgb(var(--accent));
}


/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    iframe {
        height: 800px;
    }
}

@media (max-width: 1024px) {
    .content-layout {
        /* grid-template-columns: 1fr; */
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .sidebar {
        order: -1;
    }

    .papers-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    iframe {
        height: 95vw;
    }
}

@media (max-width: 768px) {
    .paper-hero {
        padding: 2rem 0 1.5rem;
    }

    .paper-title {
        font-size: 2rem;
    }

    .paper-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .papers-grid {
        grid-template-columns: 1fr;
    }

    iframe {
        height: 110vw;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-controls {
        gap: 0.5rem;
    }

    .control-btn {
        padding: 0.375rem;
    }
}

@media (max-width: 480px) {
    .paper-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }
}