/* retoor <retoor@molodetz.nl> */

.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:hover {
    color: var(--text-primary);
}

.projects-tab.active {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: var(--glow-accent);
}

.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 {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 1.25rem 1.25rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.project-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

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

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.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.1875rem 0.5rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: var(--overlay-light);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
}

.project-status.released {
    color: var(--success);
    background: rgba(76, 175, 80, 0.14);
}

.project-status.dev {
    color: var(--warning);
    background: rgba(255, 152, 0, 0.14);
}

@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;
    }
}

.project-detail-page {
    max-width: 720px;
    margin: 0 auto;
}
.project-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.project-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.project-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
}
.project-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.project-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.project-detail-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.project-detail-author a {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}
.project-detail-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.project-detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.project-actions-overflow {
    display: none;
}
.project-star-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
}
.project-star-btn:hover {
    background: var(--bg-card-hover);
    color: var(--warning);
}
