/* Projects Section */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.projects-list.images-loading {
    opacity: 0;
}

.project-card {
    display: block;
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 16px 20px;
    transition: background-color 0.2s ease;
}

.project-card.empty-slot {
    min-height: 92px; /* 60px image + 16px top padding + 16px bottom padding */
    background-color: transparent;
}

.project-card:hover:not(.empty-slot) {
    background-color: #222222;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-title {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

.project-timestamp {
    font-size: 13px;
    color: #999999;
}

.project-image {
    width: 100px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #0a0a0a;
}

.project-image.image-loading-container {
    background-color: #1a1a1a;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.back-link {
  color: #999999;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 32px;
  display: inline-block;
  transition: color 0.2s;
}

.back-link:hover {
  color: #ffffff;
}

/* Project detail content uses shared .markdown-content styles from main.css */

/* Loading and Empty States */
.loading,
.no-projects,
.error {
    text-align: center;
    color: #b0b0b0;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.error {
    color: #ff6b6b;
}

/* Pagination Controls */
.projects-pagination-container {
    margin-top: 48px;
    padding-top: 32px;
}

.pagination-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination-numbers {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start !important;
}

.pagination-btn {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #444444;
    background-color: transparent;
    color: #999999;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.pagination-btn:hover:not(:disabled):not(.pagination-ellipsis) {
    border-color: #666666;
    color: #ffffff;
    background-color: #222222;
}

.pagination-btn.active {
    background-color: #444444;
    color: #ffffff;
    border-color: #555555;
    font-weight: 500;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-ellipsis {
    color: #666666;
    padding: 8px 4px;
    cursor: default;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-card {
        gap: 12px;
        padding: 12px 16px;
    }

    .project-title {
        font-size: 14px;
    }

    .project-timestamp {
        font-size: 12px;
    }

    .project-image {
        width: 80px;
        height: 50px;
    }

    .pagination-numbers {
        gap: 6px;
    }

    .pagination-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}
