.projects-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 1.5rem;
    align-items: start;
}

.projects-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 0.25rem;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.projects-tab {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.projects-tab:hover {
    color: var(--text-primary);
}

.projects-tab.active {
    background: var(--accent);
    color: #fff;
}

.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.projects-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.projects-header .subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.projects-count {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: border-color 0.2s;
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--border-light);
}

.project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.project-card-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.project-card-star {
    padding: 0.25rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.project-card-star:hover {
    color: var(--warning);
}

.project-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-card-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.platform-tag {
    display: inline-flex;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: var(--border);
    color: var(--text-muted);
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-status.released {
    color: var(--success);
}

.project-status.dev {
    color: var(--warning);
}

@media (max-width: 1024px) {
    .projects-layout {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
}

@media (max-width: 480px) {
    .projects-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 0.125rem;
    }

    .projects-tab {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .projects-count {
        font-size: 0.75rem;
    }

    .project-card {
        padding: 1rem;
    }

    .project-card-title {
        font-size: 1rem;
    }
}
