/* ==========================================================================
   List View
   Project list layout, rows, and transitions
   ========================================================================== */

.list-view {
    display: none;
    background-color: var(--color-bg);
    transition: background-color 0.3s ease;
    min-height: 100vh;
}

/* Top Fade Gradient Overlay
   ========================================================================== */

.list-fade-overlay {
    position: sticky;
    margin-bottom: -90px;
    z-index: 1;
}

/* List Container
   ========================================================================== */

.list-container {
    padding-top: 173px;
}

/* Project Row
   ========================================================================== */

.project-row {
    position: relative;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.project-row-inner {
    display: flex;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 65px;
}

.project-row:hover {
    opacity: 0.8;
}

/* Full-width separator lines using pseudo-elements */
.project-row::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background-color: var(--color-separator);
    transition: background-color 0.3s ease;
}

.project-row:last-child::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background-color: var(--color-separator);
    transition: background-color 0.3s ease;
}

/* Project Thumbnail
   ========================================================================== */

.project-thumbnail {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-thumbnail img.loaded {
    opacity: 1;
}

/* Project Content
   ========================================================================== */

.project-content {
    margin-left: 60px;
    flex: 1;
}

.project-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--color-text-primary);
    letter-spacing: -0.42px;
    line-height: 1.2;
    margin: 0;
    transition: color 0.3s ease;
}

.project-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: -0.42px;
    line-height: 1.2;
    margin: 0;
    transition: color 0.3s ease;
}

.project-tags {
    display: flex;
    gap: 9px;
    margin-top: 16px;
}

/* ==========================================================================
   Responsive - List View
   ========================================================================== */

@media (max-width: 768px) {
    .list-container {
        padding-top: 130px;
    }

    .project-row-inner {
        padding: 30px;
    }

    .project-thumbnail {
        width: 110px;
        height: 110px;
    }

    .project-content {
        margin-left: 30px;
    }

    .project-title,
    .project-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .list-container {
        padding-top: 100px;
    }

    .project-row-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 20px;
    }

    .project-thumbnail {
        width: 100%;
        height: auto;
        overflow: hidden;
        margin-bottom: 16px;
    }

    .project-thumbnail img {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .project-content {
        margin-left: 0;
    }

    .project-title,
    .project-subtitle {
        font-size: 18px;
    }

    .project-tags {
        margin-top: 12px;
    }
}
