/* Core Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Title */
header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eaeaea;
}

header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
}

/* Bookmark Navigation */

.bookmark-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.bookmark-nav a {
    text-decoration: none;
    color: #0056b3;
    background: #fff;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.bookmark-nav a:hover {
    background: #0056b3;
    color: #fff;
}

/* Sections */
.bookmark-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    /* This padding ensures the sticky nav doesn't cover the title when clicked */
    scroll-margin-top: 70px; 
}

.bookmark-section h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* File & Comment Containers */
.file-item {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #0056b3;
    padding: 15px;
    margin-top: 15px;
    border-radius: 0 4px 4px 0;
}

.file-item a {
    display: inline-block;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 8px;
    text-decoration: none;
}

.file-item a:hover {
    text-decoration: underline;
}

.file-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}
/* Card Layout for Main Hub */
.bookmark-nav .bookmark-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.bookmark-nav .bookmark-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: #0056b3;
    color: #fff;
}

.bookmark-nav .bookmark-card:hover h2 {
    color: #fff;
}

.bookmark-card h2 {
    color: #0056b3;
    margin-bottom: 5px;
    border: none;
    padding: 0;
}

.back-link {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
}

.back-link:hover {
    color: #0056b3;
}