/* Bookclub styles */
.bookclub-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.comic-info {
    margin-bottom: 3rem;
}

.preview-image {
    max-width: 100%;
    margin-bottom: 1rem;
}

.blurb.markdown-content {
    /* Reuse markdown styles */
}

.leaderboard {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--tile-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.leaderboard h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: center;
    font-size: 1.5rem;
}

.progress-timeline {
    margin: 2rem 0;
    position: relative;
}

.timeline-bar {
    position: relative;
    width: 100%;
    min-height: 70px;
    height: auto;
    background: linear-gradient(to bottom, var(--tile-background), var(--sidebar-bg));
    border: 3px solid var(--text-color);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    box-shadow: 
        inset 0 2px 4px var(--shadow-color),
        0 2px 8px var(--shadow-hover);
    overflow: visible;
    padding: 60px 0;
}

.timeline-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        color-mix(in srgb, var(--accent-color) 5%, transparent) 0%,
        color-mix(in srgb, var(--accent-color) 10%, transparent) 50%,
        color-mix(in srgb, var(--accent-color) 5%, transparent) 100%
    );
    border-radius: calc(var(--border-radius) - 2px);
    pointer-events: none;
}

.timeline-track {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.progress-marker {
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, top 0.3s ease;
    z-index: 10;
}

.progress-marker:hover {
    transform: translateX(-50%) translateY(-50%) scale(1.1);
    z-index: 100;
}

.progress-marker:hover .marker-pfp {
    box-shadow: 0 4px 12px var(--shadow-hover);
    border-color: var(--accent-color);
}

.progress-marker:hover .marker-label {
    background: color-mix(in srgb, var(--accent-color) 15%, var(--tile-background));
    border-color: var(--accent-color);
}

.marker-pfp {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--text-color);
    background: var(--tile-background);
    object-fit: cover;
    margin-bottom: 0.35rem;
    box-shadow: 
        0 2px 6px var(--shadow-color),
        inset 0 1px 2px color-mix(in srgb, var(--invert-text-color) 80%, transparent);
    transition: all 0.2s ease;
}

.marker-pfp.placeholder {
    background: linear-gradient(135deg, var(--sidebar-bg), var(--border-color));
    border: 3px solid var(--border-hover);
    position: relative;
}

.marker-pfp.placeholder::after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--border-hover);
    font-weight: bold;
    font-size: 1rem;
}

.marker-label {
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
    background: var(--tile-background);
    color: var(--text-color);
    padding: 0.15rem 0.4rem;
    border-radius: var(--border-radius-small);
    border: 2px solid var(--text-color);
    margin-bottom: 0.15rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: all 0.2s ease;
}

.marker-page {
    font-size: 0.65rem;
    color: var(--text-color);
    white-space: nowrap;
    font-weight: 500;
    background: color-mix(in srgb, var(--tile-background) 80%, transparent);
    padding: 0.1rem 0.3rem;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    position: relative;
    z-index: 1;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.progress-marker:hover .marker-page {
    opacity: 1;
    visibility: visible;
    z-index: 101;
    position: relative;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-color);
    margin-top: 0.5rem;
    font-weight: 600;
    padding: 0 0.5rem;
}

.timeline-start,
.timeline-end {
    background: var(--tile-background);
    color: var(--text-color);
    padding: 0.2rem 0.6rem;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px var(--shadow-color);
}

.update-progress {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--tile-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
}

.update-progress p {
    margin: 0 0 0.75rem 0;
    font-weight: bold;
    color: var(--text-color);
}

.update-progress form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.update-progress label {
    font-weight: bold;
    color: var(--text-color);
}

.update-progress input {
    padding: 0.5rem;
    border: 1px solid var(--text-color);
    border-radius: var(--border-radius-small);
    width: 150px;
    background: var(--tile-background);
    color: var(--text-color);
}

.update-progress button {
    padding: 0.5rem 1.5rem;
    background: var(--accent-color);
    color: var(--invert-text-color);
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: bold;
    width: fit-content;
    transition: background 0.2s ease;
}

.update-progress button:hover {
    background: var(--accent-hover);
}

.login-prompt {
    margin-top: 1rem;
    padding: 1rem;
    background: color-mix(in srgb, var(--accent-color) 10%, var(--tile-background));
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius-small);
    text-align: center;
    color: var(--text-color);
}

