/* ===== Projects Window ===== */
.projects-window {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.projects-featured {
    margin-bottom: 16px;
}

.projects-featured-head {
    margin-bottom: 12px;
}

.projects-featured-head h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.projects-featured-head p {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.featured-card {
    padding: 14px;
    background: rgba(74, 163, 255, 0.05);
    border: 1px solid rgba(74, 163, 255, 0.18);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.featured-card:hover {
    background: rgba(74, 163, 255, 0.09);
    border-color: rgba(74, 163, 255, 0.3);
}

.featured-card h4 {
    font-size: 0.92rem;
}

.featured-card p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.45;
}

.featured-actions {
    display: flex;
    gap: 8px;
}

.featured-btn {
    border: 1px solid var(--border);
    background: var(--bg-header);
    color: var(--text);
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 0.74rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.featured-btn:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.projects-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-header);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.search-box i {
    color: var(--text-muted);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    outline: none;
}

.sort-dropdown select {
    padding: 10px 16px;
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.projects-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-secondary);
}

.projects-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--bg-header);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.projects-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.repo-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.repo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    text-align: center;
    padding: 18px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
}

.repo-empty i {
    color: var(--accent);
    font-size: 1.4rem;
}

.repo-empty p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.repo-item:hover {
    border-color: rgba(74, 163, 255, 0.3);
    background: rgba(74, 163, 255, 0.05);
    transform: translateX(3px);
}

.repo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 10px;
    font-size: 1.2rem;
    color: var(--accent);
}

.repo-info {
    flex: 1;
}

.repo-info h4 {
    margin-bottom: 4px;
}

.repo-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repo-stats {
    display: flex;
    gap: 16px;
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.repo-stat i {
    font-size: 0.8rem;
}

.repo-stat.stars i { color: #f1c40f; }
.repo-stat.forks i { color: #3498db; }

.repo-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
