/* Projects Page Styles - Table Layout */

/* Footer spacing for projects page */
.footer {
    margin-top: 40px !important;
    transform: none !important;
}

/* Projects Header */
.projects-header {
    text-align: left;
    margin-bottom: 60px;
    padding-top: 40px;
}

.projects-title {
    font-size: 100px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    color: #000;
    margin-bottom: 16px;
    line-height: 1.2;
    padding-left: 40px;
}

.projects-subtitle {
    font-size: 30px;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.08em;
    padding-left: 40px;
    margin: 0;
}

/* Projects Table */
.projects-table {
    width: calc(100% - 120px);
    max-width: none;
    margin: 0 60px;
    padding: 0 0 120px 0;
    border-collapse: collapse;
    border-spacing: 0;
}

.projects-table thead {
    border-bottom: 1px solid #e0e0e0;
}

.projects-table-header {
    display: none; /* Legacy, replaced by thead */
}

.table-column {
    padding: 20px 15px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: top;
    white-space: nowrap;
}

.table-column:nth-child(1) {
    padding-left: 0;
}

.table-column:nth-child(2) {
    padding-right: 75px;
}

.table-column:nth-child(3) {
    padding-left: 5px;
}

.filter-btn:hover {
    background-color: #f8f9fa;
    color: #000;
}

.filter-btn.active {
    color: #000;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.projects-table-body {
    display: table-row-group;
}

.project-row {
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.project-row.hidden {
    display: none;
}

.empty-message {
    text-align: center;
    padding: 96px 40px;
    color: #999;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    font-style: italic;
    letter-spacing: -0.02em;
    opacity: 0.8;
}

.empty-message-row {
    display: table-row;
}

.empty-message-row td {
    display: table-cell;
    padding: 96px 40px;
    text-align: center;
    color: #999;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.4;
    font-style: italic;
    letter-spacing: -0.02em;
    opacity: 0.8;
}

.project-cell {
    padding: 20px 15px;
    display: table-cell;
    vertical-align: top;
    text-align: left;
    width: auto;
}

/* Column widths for header */
.projects-table th:nth-child(1) {
    width: 10%;
    padding-left: 0;
    min-width: 80px;
}

.projects-table th:nth-child(2) {
    width: 14%;
    padding-right: 75px;
    min-width: 120px;
}

.projects-table th:nth-child(3) {
    width: 10%;
    padding-left: 5px;
    min-width: 80px;
}

.projects-table th:nth-child(4) {
    width: 12%;
    min-width: 100px;
}

.projects-table th:nth-child(5) {
    width: 10%;
    min-width: 80px;
}

.projects-table th:nth-child(6) {
    width: 14%;
    min-width: 120px;
}

.projects-table th:nth-child(7) {
    width: 30%;
}

/* Column widths for body rows (3 columns with colspan) */
.projects-table td:nth-child(1) {
    padding-left: 0;
}

.projects-table td:nth-child(2) {
    padding-right: 75px;
    padding-left: 5px;
}

.projects-table td:nth-child(3) {
    padding-left: 5px;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.3;
    text-align: left;
    width: 100%;
}

.project-tags {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    margin-bottom: 0;
    text-align: left;
    width: 100%;
}

.project-stack {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-align: left;
    width: 100%;
    white-space: nowrap;
}

.project-description {
    font-size: 14px;
    color: #000;
    line-height: 1.5;
    margin: 0;
    text-align: left;
    width: 100%;
}

.project-description a {
    color: #007bff;
    text-decoration: underline;
}

.project-description a:hover {
    color: #0056b3;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .footer {
        margin-top: 30px !important;
    }
    
    .projects-header {
        margin-bottom: 40px;
        padding-top: 20px;
        padding: 0 20px;
    }
    
    .projects-title {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .projects-subtitle {
        font-size: 20px;
        letter-spacing: -0.05em;
    }
    
    .projects-table {
        width: calc(100% - 40px);
        margin: 0 20px;
        padding: 0 0 100px 0;
        display: block;
    }
    
    .projects-table thead {
        display: none;
    }
    
    .projects-table tbody {
        display: block;
    }
    
    .project-row {
        display: block;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 20px;
        padding: 20px;
        background: #fff;
    }
    
    .project-cell {
        display: block;
        padding: 0;
        margin-bottom: 15px;
        width: 100% !important;
    }
    
    .project-cell:last-child {
        margin-bottom: 0;
    }
    
    .empty-message-row td {
        padding: 64px 20px;
        font-size: 20px;
        min-height: 160px;
        display: block;
    }
    
    .project-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .project-tags {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .project-stack {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .project-description {
        font-size: 13px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-table {
        width: calc(100% - 80px);
        margin: 0 40px;
        padding: 0 0 100px 0;
    }
    
    .table-column,
    .project-cell {
        padding: 15px 10px;
    }
    
    .project-title {
        font-size: 16px;
    }
    
    .project-tags,
    .project-stack,
    .project-description {
        font-size: 13px;
    }
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .projects-table {
        width: calc(100% - 120px);
        margin: 0 60px;
        padding: 0 0 120px 0;
    }
    
    .table-column,
    .project-cell {
        padding: 20px 15px;
    }
    
    .project-title {
        font-size: 18px;
    }
    
    .project-tags,
    .project-stack,
    .project-description {
        font-size: 14px;
    }
}

/* Active link styles */
.nav-link.active,
.glass-nav-link.active,
.mobile-menu-link.active {
    font-weight: 600;
}

/* Hover effects */
.project-row:hover {
    background-color: #f8f9fa;
}

.project-description a:hover {
    text-decoration: none;
}

/* Focus states for accessibility */
.project-description a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Animation for page load */
.projects-header {
    animation: fadeInUp 0.6s ease-out;
}

.projects-table {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
